ReplicateImageComing soon

black-forest-labs/flux-kontext-dev

black-forest-labs/flux-kontext-dev is an image tool from Replicate that runs in the background and returns images. Coming soon: listed with its price, not yet open to runs.

This tool is listed but not yet available to run.

Pricing

Coming soon

$0.0325 per image.

Limits

Runs
In the background
Returns
image
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
500 MB
Largest output
5 GB
Outputs per run
16

Input

FieldKindDefaultDescription
prompt requiredtext—

Text description of what you want to generate, or the instruction on how to edit the given image.

input_image requiredtext—

Image to use as reference. Must be jpeg, png, gif, or webp.

seednumber (whole)—

Random seed for reproducible generation. Leave blank for random.

guidancenumber
0 to 10
2.5

Guidance scale for generation

aspect_ratioJSONmatch_input_image

Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.

output_formatJSONwebp

Output image format

output_qualitynumber (whole)
0 to 100
80

Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs

num_inference_stepsnumber (whole)
4 to 50
30

Number of inference steps

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "replicate",
    "model": "black-forest-labs/flux-kontext-dev",
    "input": {
      "prompt": "<prompt>",
      "input_image": "<input_image>"
    }
  }'