v2

latestOpenAPI 3.1.02026-07-26262762.2 KB
Models

Generate an image with FLUX 1.1 [pro] finetune with ultra mode.

Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.

post/v1/flux-pro-1.1-ultra-finetuned

Request body

finetune_idstring required

Name of the LoRA to use. For LoRAs from other organizations (public or shared), use the format 'org-id/lora-name'.

finetune_strengthnumber

Strength of the fine-tuned model. 0.0 means no influence, 1.0 means full influence. Allowed values up to 2.0

promptstring nullable

The prompt to use for image generation.

seedinteger nullable

Optional seed for reproducibility. If not provided, a random seed will be used.

aspect_ratiostring

Aspect ratio of the image between 21:9 and 9:21

safety_toleranceinteger

Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.

output_format'jpeg' | 'png' | 'webp'
image_promptstring nullable

Optional image to remix in base64 format

image_prompt_strengthnumber

Blend between the prompt and the image prompt

prompt_upsamplingboolean

Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation

webhook_urlstring uri nullable

URL to receive webhook notifications

webhook_secretstring nullable

Optional secret for webhook signature verification

Example request

{
  "finetune_id": "my-finetune",
  "prompt": "A beautiful landscape with mountains and a lake",
  "seed": 42,
  "safety_tolerance": 2
}

Response

Successful Response

OR