falText to imageComing soon

fal-ai/hidream-o1-image/dev

fal-ai/hidream-o1-image/dev is a text 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 usage

Pricing

$0.0065 per megapixel. Each image_size preset counts as 1 MP, and a custom width × height rounds up to whole megapixels. 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

FieldKindDefaultDescription
prompt requiredtext—Text prompt for image generation, editing, or subject-driven personalization.
reference_image_urlsURLs or files[]Optional reference images. Use none for text-to-image, one for image editing, or multiple for subject-driven personalization.
image_sizeJSON{"width":1024,"height":1024}Requested output image size. Dimensions are rounded down to a multiple of 32, up to about 2048x2048 pixels.
num_inference_stepsnumber (whole)
1 to 28
28Number of denoising steps. The dev model is distilled for 28 steps.
guidance_scalenumber
0 to 20
0Classifier-free guidance scale. The dev model uses 0.0 by default.
seednumber (whole)—Random seed for reproducible generation.
num_imagesnumber (whole)
1 to 4
1Number of images to generate.
output_formatone of
jpeg, png, webp
pngThe format of the generated image.
keep_original_aspecttrue or falsefalseWhen 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",
    "input": {
      "prompt": "A cinematic product photo of a ceramic mug on a marble counter, soft window light, shallow depth of field."
    }
  }'