GET
/v1/schemas/fal/image/minimax/h3-image/text-to-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source traceb864ccca0b678b2ab43aba6caeb3fb594476dcdab6fb38c6be5fa79e86f74e70{
"fetchedAt": 1794978001,
"extractorVersion": "2",
"verifiedAt": null
} |
Request body
7 properties · 1 required · 2 $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 |
| loras | LoRAInput[] | Up to 4 LoRA adapters to apply. Requests with LoRAs bill a surcharge. With prompt expansion on, trigger words named in a LoRA's safetensors metadata (`trigger_phrase`, `modelspec.trigger_phrase` or kohya/ai-toolkit tags) are kept in the expanded prompt and nev… | items ≤ 4 |
| 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 |
| 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 |
| 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} |
| 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" |
Types
2 $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 |
LoRAInputobject
A MiniMax H3-Image LoRA adapter.
| weight_name | string | Name of the LoRA weight file. Only used when `path` is a HuggingFace repo and it holds more than one LoRA. | nullable |
| path* | string | HTTPS URL or HuggingFace repo id (owner/repo) of the LoRA safetensors file, at most 2.5 GB. Keys are `diffusion_model.<module>.lora_A.weight` / `.lora_B.weight` for the `attn.qkv_proj`, `attn.out_proj`, `mlp.fc1` and `mlp.fc2` projections of `blocks.0`-`blocks… | |
| scale | number | Strength of the LoRA (0.0 to 4.0). | 0 ≤ n ≤ 4 · default: 1 |
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", …}]}