Flux-1.1 Pro Ultra
Create stunning visuals effortlessly with Flux 1.1 Pro Ultra. Experience unparalleled image quality and speed.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/flux-1.1-pro-ultra"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "raw": false,
12 "seed": 1234,
13 "prompt": "A luxurious, modern living room with a grand fireplace as the centerpiece. Large windows look out onto a dark, rainy night, where wet tree branches glisten under the night sky. The room is decorated with plush, dark blue sofas and warm amber lighting that casts a cozy glow, contrasting with the cool, moody weather outside. The floor is a polished dark wood, and raindrops gently streak down the windows, enhancing the atmosphere of comfort and serenity.",
14 "aspect_ratio": "1:1",
15 "output_format": "jpg",
16 "safety_tolerance": 2
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/flux-1.1-pro-ultra"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "raw": false,
12 "seed": 1234,
13 "prompt": "A luxurious, modern living room with a grand fireplace as the centerpiece. Large windows look out onto a dark, rainy night, where wet tree branches glisten under the night sky. The room is decorated with plush, dark blue sofas and warm amber lighting that casts a cozy glow, contrasting with the cool, moody weather outside. The floor is a polished dark wood, and raindrops gently streak down the windows, enhancing the atmosphere of comfort and serenity.",
14 "aspect_ratio": "1:1",
15 "output_format": "jpg",
16 "safety_tolerance": 2
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/flux-1.1-pro-ultraParameters
promptrequiredstringText prompt for image generation
"A luxurious, modern living room with a grand fireplace as the centerpiece. Large windows look out onto a dark, rainy night, where wet tree branches glisten under the night sky. The room is decorated with plush, dark blue sofas and warm amber lighting that casts a cozy glow, contrasting with the cool, moody weather outside. The floor is a polished dark wood, and raindrops gently streak down the windows, enhancing the atmosphere of comfort and serenity."aspect_ratiooptionalstringAspect ratio for the generated image.
"1:1""21:9""16:9""3:2""4:3""5:4""1:1""4:5""3:4""2:3""9:16"+1 moreimage_promptoptionalstring (uri)Provide the URL of the image to be relit. Use a URL from cloud storage like S3.
output_formatoptionalstringFormat of the output images.
"jpg""jpg""png"rawoptionalbooleanGenerate less processed, more natural-looking images
falsesafety_toleranceoptionalintegerSafety tolerance, 1 is most strict and 6 is most permissive
2Range: 1 - 6seedoptionalintegerRandom seed. Set for reproducible generation
1234Response 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