Reference

API reference

Complete input parameter surface for ERNIE-Image. The canonical schema lives at the model's llms.txt; the table below is derived from it.

Endpoint

Submit a job to the queue endpoint:

POST https://queue.fal.run/fal-ai/ernie-image

Input parameters

KeyTypeDefaultAllowed / notes
promptrequiredstringFree text describing the output.
aspect_ratioenum1:11:1 | 16:9 | 9:16 | 4:3 | 3:4 | 3:2 | 2:3 | 21:9
num_imagesnumber11 to 4, step 1
enable_prompt_enhancerenumtruetrue | false
num_inference_stepsnumber508 to 50, step 1
seednumber00 to +∞, step 1

Canonical schema: fal.ai/models/fal-ai/ernie-image/llms.txt. Anything new shipped by the model vendor appears there first.

Worked example

Minimal request using the defaults above. Swap the prompt for your own; everything else stays optional.

BASH
1curl -X POST "https://queue.fal.run/fal-ai/ernie-image" \
2 -H "Authorization: Key $FAL_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"prompt":"A vertical coffee shop poster. Large centered headline reads 'MORNING POUR' i...","aspect_ratio":"1:1","num_images":1,"enable_prompt_enhancer":true,"num_inference_steps":50,"seed":0}'
Also reading