ReplicateImage to imageComing soon
black-forest-labs/flux-kontext-dev
black-forest-labs/flux-kontext-dev is an image to 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.
Priced by usagePricing
$0.0325 per image.
Limits
- Runs
- In the background
- Returns
- image
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
prompt required | text | — | Text description of what you want to generate, or the instruction on how to edit the given image. |
input_image required | text | — | Image to use as reference. Must be jpeg, png, gif, or webp. |
seed | number (whole) | — | Random seed for reproducible generation. Leave blank for random. |
guidance | number 0 to 10 | 2.5 | Guidance scale for generation |
aspect_ratio | JSON | match_input_image | Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image. |
output_format | JSON | webp | Output image format |
output_quality | number (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_steps | number (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>"
}
}'