Flux Pro

flux-pro-v1.1-ultra-text-to-image

post

FLUX1.1 [pro] ultra is the newest version of FLUX1.1 [pro], maintaining professional-grade image quality while delivering up to 2K resolution with improved photo realism.

Header parameters
AuthorizationstringRequiredExample: sk-Qp03mnjjNqXKxpnw5qQ4IqVABNfad5YOk1axUhp7pJbokFmu
Body
modelstringRequired

model is the model name

Example: flux-pro-v1.1-ultra-text-to-image
promptstringRequired

prompt is the prompt.

Example: A cute baby sea otter.
sizestring · enumOptional

The size of the generated image. Default value: 16:9

Possible enum values: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21

Default: 16:9Example: 16:9Possible values:
image_urlstringOptional

The image URL to generate an image from.

image_prompt_strengthnumberOptional

The strength of the image prompt, between 0 and 1. Default value: 0.1

Default: 0.1Example: 0.1
enhance_promptbooleanOptional

Whether to enhance the prompt for better results.

rawbooleanOptional

Generate less processed, more natural-looking images.

seedintegerOptional

The same seed and the same prompt given to the same version of the model will output the same image every time.

enable_safety_checkerbooleanOptional

If set to true, the safety checker will be enabled. Default value: false

Default: false
safety_tolerancestring · enumOptional

The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. Default value: "2"

Possible enum values: 1, 2, 3, 4, 5, 6

Default: 2Example: 2Possible values:
nintegerOptional

n is the number of images to generate, default value is 1.

Default: 1Example: 1
output_formatstring · enumOptional

output_format indicate the output format, default value is url.

Default: urlExample: urlPossible values:
Responses
200Success
application/json
post
/v1/images/generations
POST /v1/images/generations HTTP/1.1
Host: image.onerouter.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 316

{
  "model": "flux-pro-v1.1-ultra-text-to-image",
  "prompt": "A cute baby sea otter.",
  "size": "16:9",
  "image_url": "https://resource.onerouter.pro/image/generated%2Fonerouter_a829820a-3533-4fed-b8f2-2415179c3ea2.png",
  "image_prompt_strength": 0.1,
  "enable_safety_checker": false,
  "safety_tolerance": "2",
  "n": 1,
  "output_format": "url"
}
200Success
{
  "data": [
    {
      "url": "https://resource.onerouter.pro/image/generated%2Fonerouter_c99eeb01-2e0a-4900-a7e6-5e02bc5c6473.png",
      "b64_json": "",
      "revised_prompt": ""
    }
  ],
  "created": 1760502425
}