GET

/v1/schemas/zai/image/paas/v4/async/images/generations

kind inputactivity imagehash 725c1dae…extracted Oct 5, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
8741c036978cc6491c52c1cee16e10c2a87a8fb675a757e1a9644ebbd4c4d7af
{
  "fetchedAt": 1791178309,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

5 properties · 2 required · 0 $defs
propertytypedescriptionconstraints
model*enumModel codeglm-image
prompt*stringThe text description of the image to be generated.
qualityenumThe quality of the generated image. `hd`: Generates a more detailed and rich image with higher overall consistency, takes about `20` seconds.hd · default: "hd"
sizestringImage size, recommended enum values: `1280x1280` (default), `1568x1056`, `1056x1568`, `1472x1088`, `1088x1472`, `1728x960`, `960x1728`. Custom parameter: Both width and height must be between `1024px-2048px`, and must be divisible by `32`, and the maximum pixe…default: "1280x1280"
user_idstringUnique ID of the end user, helping the platform intervene in illegal activities, inappropriate content generation, or other abuses. ID length: 6 to 128 characters.length ≥ 6 · length ≤ 128

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"zai","endpointId":"paas/v4/async/images/generations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}