Segmind-VegaRT
Segmind-VegaRT a distilled consistency adapter for Segmind-Vega that allows to reduce the number of inference steps to only between 2 - 8 steps.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/segmind-vega-rt-v1"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "backlight, wilderness woman hunting in jungle hiding behind leaves, face paintings closeup face portrait, detailed eyes, nature documentary, dry skin, fuzzy skin, lens flare",
12 "num_inference_steps": 4,
13 "seed": 758143278,
14 "img_width": 1024,
15 "img_height": 1024,
16 "base64": false
17}
18
19response = requests.post(url, headers=headers, json=data)
20
21if response.status_code == 200:
22 result = response.json()
23 print(json.dumps(result, indent=2))
24else:
25 print(f"Error: {response.status_code}")
26 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/segmind-vega-rt-v1"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "backlight, wilderness woman hunting in jungle hiding behind leaves, face paintings closeup face portrait, detailed eyes, nature documentary, dry skin, fuzzy skin, lens flare",
12 "num_inference_steps": 4,
13 "seed": 758143278,
14 "img_width": 1024,
15 "img_height": 1024,
16 "base64": false
17}
18
19response = requests.post(url, headers=headers, json=data)
20
21if response.status_code == 200:
22 result = response.json()
23 print(json.dumps(result, indent=2))
24else:
25 print(f"Error: {response.status_code}")
26 print(response.text)API Endpoint
https://api.segmind.com/v1/segmind-vega-rt-v1Parameters
promptrequiredstringPrompt to render
base64optionalbooleanBase64 encoding of the output image.
falseimg_heightoptionalintegerCan only be 1024 for SDXL
10241024img_widthoptionalintegerCan only be 1024 for SDXL
10241024num_inference_stepsoptionalintegerNumber of denoising steps.
4Range: 4 - 10seedoptionalintegerSeed for image generation.
-1Range: -1 - 999999999999999Response Type
Returns: Text/JSON
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out