ImageBlack Forest LabsNew

FLUX.1 Dev

High-quality image generation with fine control

model: "flux-dev"

API docsDocs for agents

Modes

One model id, every mode below. The fields you send pick the mode, and the price follows the mode.

ModeSelected byTypical price
Text to imageprompt
Example request
{
  "model": "flux-dev",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.025
Image editimage_url
Example request
{
  "model": "flux-dev",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.030
Structure controlmodecontrol_lora_image_url
Example request
{
  "model": "flux-dev",
  "input": {
    "prompt": "a lighthouse at dusk",
    "mode": "structure",
    "control_lora_image_url": "https://example.com/image.jpg"
  }
}
$0.040

Input

Required

Prompt

Optional

Image Size

Optional
1

Number of Images

Optional

Source image to edit or vary (https URL, or an upload URL from POST /v1/uploads). Leave it out to generate from the prompt alone.

Optional

Control image (https URL), with mode "structure".

Optional
3.5

Guidance Scale

Optional
28

Steps

Optional

Seed

Optional

Selects a mode that the other fields cannot: "structure" follows the edges or depth of a control image.

Optional

Follow the control image's edges (canny) or its depth.

Advanced options (2)

Provider settings beyond the main controls. Leave them empty to use the model's defaults.

Optional

Faster inference at a small cost in detail.

Optional

File format of the result.

Result

FLUX.1 DevExample output

A real result from this model. Run it to see yours here.

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-dev",
  "input": {
    "prompt": "Professional portrait of a woman, soft natural lighting, shallow depth of field, photorealistic"
  }
}'
FLUX.1 Dev 1FLUX.1 Dev 2FLUX.1 Dev 3FLUX.1 Dev 4FLUX.1 Dev 5FLUX.1 Dev 6