GET

/v1/schemas/fal/image/fal-ai/hunyuan-image/v2.1/text-to-image

kind inputactivity imagehash 32860965…extracted Aug 10, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.
Source trace
1c7031c2e2c52a949028d4d27c68c46e35f444e1137dcd73c1aad5eaebcf4893
{
  "fetchedAt": 1786338105,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

12 properties · 1 required · 1 $defs
propertytypedescriptionconstraints
prompt*stringThe text prompt to generate an image from.
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.default: false
output_formatenumThe format of the generated image.jpeg | png · default: "png"
use_repromptbooleanEnable prompt enhancement for potentially better results.default: true
use_refinerbooleanEnable the refiner model for improved image quality.default: false
num_inference_stepsintegerNumber of denoising steps.1 ≤ n ≤ 50 · default: 28
seedintegerRandom seed for reproducible results. If None, a random seed is used.nullable
negative_promptstringThe negative prompt to guide the image generation away from certain concepts.default: ""
enable_safety_checkerbooleanIf set to true, the safety checker will be enabled. Disabling it requires account authorization; unauthorized requests are always checked.default: true
num_imagesintegerThe number of images to generate.1 ≤ n ≤ 4 · default: 1
guidance_scalenumberControls how much the model adheres to the prompt. Higher values mean stricter adherence.1 ≤ n ≤ 20 · default: 3.5
image_sizeImageSize | enumThe desired size of the generated image.default: "square_hd"

Types

1 $defs

ImageSizeobject

heightintegerThe height of the generated image.0 < n ≤ 14142 · default: 512
widthintegerThe width of the generated image.0 < n ≤ 14142 · default: 512

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"fal","endpointId":"fal-ai/hunyuan-image/v2.1/text-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}