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-imageInput parameters
| Key | Type | Default | Allowed / notes |
|---|---|---|---|
| promptrequired | string | — | Free text describing the output. |
| aspect_ratio | enum | 1:1 | 1:1 | 16:9 | 9:16 | 4:3 | 3:4 | 3:2 | 2:3 | 21:9 |
| num_images | number | 1 | 1 to 4, step 1 |
| enable_prompt_enhancer | enum | true | true | false |
| num_inference_steps | number | 50 | 8 to 50, step 1 |
| seed | number | 0 | 0 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}'