flux-pro/v1.1-ultraGeneration type:
text_to_imageEndpoint:
POST /api/asset_generator/
Pricing
1.0 credits per output. Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.Quick start
Input parameters
Send these fields ininput_params.
string
required
The prompt to generate an image from.Minimum characters:
1.
Maximum characters: 2000.integer
The same seed and the same prompt given to the same version of the model will output the same image every time.
integer
default:1
The number of images to generate.Minimum:
1.
Maximum: 4.string
default:"1:1"
The aspect ratio of the generated image.Allowed values:
"21:9", "16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16", "9:21".string
default:"jpeg"
The format of the generated image.Allowed values:
"jpeg", "png".boolean
default:false
Whether to enhance the prompt for better results.
Complete JSON schema
Complete JSON schema
Response
The request returns the task withstatus: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.
