Simple Vector Flux Lora
Flux is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions
~36.46s
~$0.034
1import requests
2import json
3
4url = "https://api.segmind.com/v1/Simple_Vector_Flux"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "v3ct0r style, simple vector art, salesman giving a thumbs up in front of a car, character asset, clip art",
12 "steps": 25,
13 "seed": 6652105,
14 "scheduler": "simple",
15 "sampler_name": "euler",
16 "aspect_ratio": "1:1",
17 "lora_strength": 1
18}
19
20response = requests.post(url, headers=headers, json=data)
21
22if response.status_code == 200:
23 result = response.json()
24 print(json.dumps(result, indent=2))
25else:
26 print(f"Error: {response.status_code}")
27 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/Simple_Vector_Flux"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "v3ct0r style, simple vector art, salesman giving a thumbs up in front of a car, character asset, clip art",
12 "steps": 25,
13 "seed": 6652105,
14 "scheduler": "simple",
15 "sampler_name": "euler",
16 "aspect_ratio": "1:1",
17 "lora_strength": 1
18}
19
20response = requests.post(url, headers=headers, json=data)
21
22if response.status_code == 200:
23 result = response.json()
24 print(json.dumps(result, indent=2))
25else:
26 print(f"Error: {response.status_code}")
27 print(response.text)API Endpoint
POST
https://api.segmind.com/v1/Simple_Vector_FluxParameters
promptrequiredstringText prompt for generating the image
Default:
"v3ct0r style, simple vector art, salesman giving a thumbs up in front of a car, character asset, clip art"aspect_ratiooptionalstringAspect ratio for the generated image
Default:
"2:3"Allowed values (13 total):
"1:1""2:3""3:4""5:8""9:16""9:19""9:21""3:2""4:3""8:5"+3 morelora_strengthoptionalnumberStrength of the LoRA (Low-Rank Adaptation) for fine-tuning
Default:
1Range: -10 - 10sampler_nameoptionalstringSampler type for image generation
Default:
"euler"Allowed values (26 total):
"euler""euler_pp""euler_ancestral""euler_ancestral_pp""heun""heunpp2""dpm_2""dpm_2_ancestral""lms""dpm_fast"+16 morescheduleroptionalstringScheduler type for image generation
Default:
"simple"Allowed values :
"normal""karras""exponential""sgm_uniform""simple""ddim_uniform""beta"seedoptionalintegerSeed for random number generation
Default:
6652105stepsoptionalintegerNumber of steps for generating the image
Default:
20Range: 1 - 100Response Type
Returns: Text/JSON
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
400
Bad Request
Invalid parameters or request format
401
Unauthorized
Missing or invalid API key
403
Forbidden
Insufficient permissions
404
Not Found
Model or endpoint not found
406
Insufficient Credits
Not enough credits to process request
429
Rate Limited
Too many requests
500
Server Error
Internal server error
502
Bad Gateway
Service temporarily unavailable
504
Timeout
Request timed out