GLM 4.7 technical docs
Endpoint, auth header, parameters, prices, and tested request examples for GLM 4.7 Flash.
Endpoint and pricing
Request headers
Bearer Imole API key.
Use application/json for JSON requests.
Request parameters
Text model id.
Preferred request shape for this model on Imole. Send a simple string input for the most reliable path.
Legacy chat-style array. The router converts it to Responses input.
System or developer instruction inserted ahead of the user task.
Optional provider output control. Imole does not require it or impose its own token ceiling.
Optional reasoning controls when supported, including effort and Pro mode.
Sampling randomness when the model supports it.
Nucleus sampling control.
Return server-sent events when supported.
true, falseTool definitions for tool-enabled Responses calls.
Tool selection policy.
auto, none, requiredAllow multiple tool calls in one turn.
true, falseStructured text format controls for Responses.
Compatibility field for JSON-style output requests.
Optional request metadata.
Tested request examples
curl -X POST "https://api.imole.app/v1/responses" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7-flash",
"input": "Explain Imole API in one short sentence.",
"max_output_tokens": 64
}'curl -X POST "https://api.imole.app/v1/responses" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7-flash",
"input": "List two uses of a text model in an app.",
"max_output_tokens": 64
}'curl -X POST "https://api.imole.app/v1/responses" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7-flash",
"input": "Name one reason to use a fast text model in production.",
"max_output_tokens": 64
}'