GLM 5v Turbo

glm-5v-turbo

Use the GLM 5v Turbo API for chat, coding, and reasoning. Send conversation messages and include tool definitions on supported routes. Use it to work through multi-step coding tasks or review longer technical material. Compare the available provider routes, request examples, and usage prices on OpenAny.

Published price
From $0.974 / 1M tokens
Billing unit
/ 1M tokens
Context / Max output
200K / 128K
Listed routes
2
Base URL
https://api.openany.si/v1
POST
/v1/chat/completions
Authentication
Authorization: Bearer $OPENANY_API_KEY

Provider

Published price $0.974 / 1M tokens

Request parameters

ParameterType / rangeDefault valueRequiredDescription
messagesarray—YesThe conversation messages
modelstring—YesThe model to use
do_samplebooleantrueNoWhether to enable sampling. When true, the model uses sampling-based generation.
frequency_penaltynumber · -2 ~ 20NoPenalty for repeated tokens
max_completion_tokensinteger · >= 1—NoMaximum visible completion tokens
max_tokensinteger · >= 1—NoMaximum completion tokens
ninteger · 1 ~ 1281NoNumber of choices to generate
presence_penaltynumber · -2 ~ 20NoPenalty for previously used tokens
reasoning_effortstring · max | xhigh | high | medium | low | minimal | none—NoControls the reasoning effort level used by the model.
request_idstring—NoClient-provided request identifier for tracing and idempotency.
response_formatobject—NoFormat constraint for the response
routeobject—NoOpenAny route configuration, including provider and other routing parameters
route_modestring—NoThe mode for routing the request
seedinteger—NoSeed for deterministic sampling
stopstring | array—NoSequences that stop generation
streambooleanfalseNoWhether to stream the response
temperaturenumber · 0 ~ 21NoSampling temperature
thinkingobject—NoThinking configuration object for GLM reasoning behavior. eg: {"type": "disabled" }
tool_choicestring | object · none | auto | required—NoTool selection policy: string modes none, auto, or required, or an object selecting a specific tool
tool_streambooleanfalseNoWhether to enable streaming output for tool calls.
toolsarray—NoTools available to the model
top_pnumber · 0 ~ 11NoNucleus sampling probability
user_idstring—NoEnd-user identifier associated with the request.

Request example

curl 'https://api.openany.si/v1/chat/completions' \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "messages": [
    {
      "content": "Hello!",
      "role": "user"
    }
  ],
  "model": "glm-5v-turbo",
  "route_mode": "balanced",
  "do_sample": true,
  "frequency_penalty": 0,
  "n": 1,
  "presence_penalty": 0,
  "stream": false,
  "temperature": 1,
  "tool_stream": false,
  "top_p": 1
}'

Response example

Configured response example · not a live result

No response example is configured for this endpoint. Run a request in Playground to see a live response.

Error handling

400Check the model ID and request fields.
429Retry with exponential backoff.
5xxRetry only temporary provider failures.

JSON Schema

{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "model",
    "messages"
  ],
  "properties": {
    "n": {
      "type": "integer",
      "default": 1,
      "maximum": 128,
      "minimum": 1,
      "description": "Number of choices to generate"
    },
    "seed": {
      "type": "integer",
      "description": "Seed for deterministic sampling"
    },
    "stop": {
      "type": [
        "string",
        "array"
      ],
      "items": {
        "type": "string"
      },
      "description": "Sequences that stop generation"
    },
    "model": {
      "type": "string",
      "description": "The model to use"
    },
    "route": {
      "type": "object",
      "description": "OpenAny route configuration, including provider and other routing parameters"
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "Tools available to the model"
    },
    "top_p": {
      "type": "number",
      "default": 1,
      "maximum": 1,
      "minimum": 0,
      "description": "Nucleus sampling probability"
    },
    "stream": {
      "type": "boolean",
      "default": false,
      "description": "Whether to stream the response"
    },
    "user_id": {
      "type": "string",
      "description": "End-user identifier associated with the request."
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "The conversation messages"
    },
    "thinking": {
      "type": "object",
      "description": "Thinking configuration object for GLM reasoning behavior. eg: {\"type\": \"disabled\" }"
    },
    "do_sample": {
      "type": "boolean",
      "default": true,
      "description": "Whether to enable sampling. When true, the model uses sampling-based generation."
    },
    "max_tokens": {
      "type": "integer",
      "minimum": 1,
      "description": "Maximum completion tokens"
    },
    "request_id": {
      "type": "string",
      "description": "Client-provided request identifier for tracing and idempotency."
    },
    "route_mode": {
      "type": "string",
      "description": "The mode for routing the request"
    },
    "temperature": {
      "type": "number",
      "default": 1,
      "maximum": 2,
      "minimum": 0,
      "description": "Sampling temperature"
    },
    "tool_choice": {
      "enum": [
        "none",
        "auto",
        "required"
      ],
      "type": [
        "string",
        "object"
      ],
      "description": "Tool selection policy: string modes none, auto, or required, or an object selecting a specific tool"
    },
    "tool_stream": {
      "type": "boolean",
      "default": false,
      "description": "Whether to enable streaming output for tool calls."
    },
    "response_format": {
      "type": "object",
      "description": "Format constraint for the response"
    },
    "presence_penalty": {
      "type": "number",
      "default": 0,
      "maximum": 2,
      "minimum": -2,
      "description": "Penalty for previously used tokens"
    },
    "reasoning_effort": {
      "enum": [
        "max",
        "xhigh",
        "high",
        "medium",
        "low",
        "minimal",
        "none"
      ],
      "type": "string",
      "description": "Controls the reasoning effort level used by the model."
    },
    "frequency_penalty": {
      "type": "number",
      "default": 0,
      "maximum": 2,
      "minimum": -2,
      "description": "Penalty for repeated tokens"
    },
    "max_completion_tokens": {
      "type": "integer",
      "minimum": 1,
      "description": "Maximum visible completion tokens"
    }
  }
}

Model API questions

How do I call GLM 5v Turbo through OpenAny?

Use model ID glm-5v-turbo with an OpenAny key and the operation published in this model's API tab. The model API base is https://api.openany.si/v1. Confirm the protocol and request schema; model availability does not imply every OpenAI API operation is supported.

How is GLM 5v Turbo billed?

Compare the published rate and billing unit of the selected provider route. Input, output and cache token rates may differ. Image, audio and video models can use other units. Recorded usage determines the charge under that route's billing contract.

Are Community and Verified routes the same as an official publisher API?

No. Inspect the provider name and supply classification for the specific route. A marketplace listing or a supply label is not a claim of publisher endorsement, identical service or measured uptime. Different route prices may reflect different supply and conditions.

Where do these prices come from, and when were they updated?

Rates come from the provider routes in OpenAny's public model catalog, not an independent quote from the model publisher. The catalog does not supply a price update timestamp. A page or catalog snapshot date is not a price revision date. Compare supply, billing units, tiers and conditions; a lower listed rate alone does not establish equivalent service or explain the price difference.

Use GLM 5v Turbo with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.