Flux-1.1 Pro Ultra

Create stunning visuals effortlessly with Flux 1.1 Pro Ultra. Experience unparalleled image quality and speed.

~13.96s
$0.075 per generation
 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

POSThttps://api.segmind.com/v1/flux-1.1-pro-ultra

Parameters

promptrequired
string

Text prompt for image generation

Default: "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_ratiooptional
string

Aspect ratio for the generated image.

Default: "1:1"
Allowed values (11 total):
"21:9""16:9""3:2""4:3""5:4""1:1""4:5""3:4""2:3""9:16"+1 more
image_promptoptional
string (uri)

Provide the URL of the image to be relit. Use a URL from cloud storage like S3.

output_formatoptional
string

Format of the output images.

Default: "jpg"
Allowed values :
"jpg""png"
rawoptional
boolean

Generate less processed, more natural-looking images

Default: false
safety_toleranceoptional
integer

Safety tolerance, 1 is most strict and 6 is most permissive

Default: 2Range: 1 - 6
seedoptional
integer

Random seed. Set for reproducible generation

Default: 1234

Response 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