GET
/v1/schemas/zai/image/paas/v4/async/images/generations
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace8741c036978cc6491c52c1cee16e10c2a87a8fb675a757e1a9644ebbd4c4d7af{
"fetchedAt": 1791178309,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
5 properties · 2 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| model* | enum | Model code | glm-image |
| prompt* | string | The text description of the image to be generated. | |
| quality | enum | The quality of the generated image. `hd`: Generates a more detailed and rich image with higher overall consistency, takes about `20` seconds. | hd · default: "hd" |
| size | string | Image 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_id | string | Unique 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 tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"zai","endpointId":"paas/v4/async/images/generations","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}