falImage to imageComing soon
fal-ai/hidream-o1-image/dev/edit
fal-ai/hidream-o1-image/dev/edit is an image to image tool from fal 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.0065 per megapixel. Each image_size preset counts as 1 MP, and a custom width × height rounds up to whole megapixels. Default 4 MP per image. Billed on num_images, default 1. The final charge comes from usage.
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 prompt for image generation, editing, or subject-driven personalization. |
reference_image_urls required | URLs or files | — | Reference images for image editing or subject-driven personalization. |
image_size | JSON | {"width":2048,"height":2048} | Requested output image size. Reference-image outputs use the nearest model-supported resolution up to about 2048x2048 pixels. |
num_inference_steps | number (whole) 1 to 28 | 28 | Number of denoising steps. The dev model is distilled for 28 steps. |
guidance_scale | number 0 to 20 | 0 | Classifier-free guidance scale. The dev model uses 0.0 by default. |
seed | number (whole) | — | Random seed for reproducible generation. |
num_images | number (whole) 1 to 4 | 1 | Number of images to generate. |
output_format | one of jpeg, png, webp | png | The format of the generated image. |
keep_original_aspect | true or false | false | When exactly one reference image is provided, preserve its aspect ratio for the output image. |
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": "fal",
"model": "fal-ai/hidream-o1-image/dev/edit",
"input": {
"prompt": "A cinematic product photo of a ceramic mug on a marble counter, soft window light, shallow depth of field.",
"reference_image_urls": [
"<reference_image_urls>"
]
}
}'