GET
/v1/schemas/fal/image/minimax/h3-image/text-to-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracea6955b62b9574966c688cf47a1816673017a94af4f56d9a4a51853aee7a02ca1{
"fetchedAt": 1794373202,
"extractorVersion": "2",
"verifiedAt": null
} |
Request body
6 properties · 1 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | The prompt to generate an image from. With prompt expansion on, it is rewritten into the long, complete description the model works best with; with it off, it is used verbatim. | length ≥ 1 · length ≤ 32000 |
| enable_prompt_expansion | boolean | Rewrite the prompt with a language model into a detailed image description before generation. If expansion fails, the request fails instead of generating from the unexpanded prompt. | default: true |
| num_images | integer | The number of images to generate, all from one expanded prompt. | 1 ≤ n ≤ 10 · default: 1 |
| output_format | enum | The format of the generated image. | jpeg | png | webp | jpg · default: "png" |
| image_size | ImageSize | enum | The exact output size. Output area must be 655360 to 20000000 pixels, inclusive, with aspect ratio between 1:3 and 3:1, inclusive. | default: {"height":2048,"width":2048} |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. | default: false |
Types
1 $defsImageSizeobject
| height | integer | The height of the generated image. | 0 < n ≤ 14142 · default: 512 |
| width | integer | The width of the generated image. | 0 < n ≤ 14142 · default: 512 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"minimax/h3-image/text-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}