Aller au contenu
ZhipuVérification

glm-5v-turbo

glm/glm-5v-turbo

chat completionsContext: 205KOutilsVisionReasoning
Chargement du prix…
Official price$0.736 / $3.236 / 1 M de jetons

Request

POST https://api.hermes-ai.net/api/v1/chat/completions · API key with the chat:create scope, or your signed-in session.

ChampTypeRemarques
modelstringglm/glm-5v-turbo
messagesarrayOpenAI chat messages: system, user, assistant and tool roles; text and image_url parts.
streambooleanServer-sent events with a final usage chunk.
max_tokensintegerOutput cap; also sizes the credit reservation.
tools / tool_choicearray / objectFunction tools only.
response_formatobjectJSON mode and JSON schema where the model supports it.
temperature, top_p, stop, seed, reasoning_effortPassed through unchanged.

Réponse

ChampRemarques
choices[].message / deltaThe OpenAI chat completion shape.
usageprompt_tokens, completion_tokens and prompt_tokens_details.cached_tokens as reported by the model.
hermes.charged_microsExact charge in USD micro-units (JSON responses). Streams expose it on GET /api/v1/chat/requests.
x-hermes-requestRequest id header, also used in the billing ledger.
error.codeDocumented Hermes error code; branch on it, not on the message.