Model Library/GLM 4.7 Flash
GLM 4.7 Flash

GLM 4.7 Flash

zai-org/glm-4.7-flash
by Z.ai
Input price
$0.07/ M tokens
Output price
$0.4/ M tokens
Context window
195Ktokens
Max output
125Ktokens

GLM-4.7-Flash, a state-of-the-art model in the 30B class, delivers a compelling balance of high performance and efficiency. Tailored for Agentic Coding, it strengthens coding proficiency, long-horizon planning, and tool synergy, securing top-tier results on public benchmarks among similarly sized open-source models. It excels in complex agent tasks with superior instruction following for tool use, while significantly elevating the frontend aesthetics and completion efficiency of long-range workflows in Artifacts and Agentic Coding.

Características

API serverless

Documentación

zai-org/glm-4.7-flash is available via Novita's serverless API, where you pay per token. There are several ways to call the API, including OpenAI-compatible endpoints with exceptional reasoning performance.

Serverless disponible

Ejecuta consultas de inmediato, paga solo por el uso

Entrada$0.07 / M Tokens
Lectura de caché$0.01 / M Tokens
Salida$0.4 / M Tokens
  1. Obtén tu clave de API

    Regístrate y crea una clave para ejecutar el código de abajo. La API es compatible con OpenAI.

  2. Make your first request

    The API is OpenAI-compatible: point any OpenAI SDK at the base URL and pass this model ID.

    Base URL
    https://api.novita.ai/openai
    Model ID
    zai-org/glm-4.7-flash
    API Endpoint
    chat/completions
    1from openai import OpenAI
    2
    3client = OpenAI(
    4    api_key="<Your API Key>",
    5    base_url="https://api.novita.ai/openai"
    6)
    7
    8response = client.chat.completions.create(
    9    model="zai-org/glm-4.7-flash",
    10    messages=[
    11        {"role": "system", "content": "You are a helpful assistant."},
    12        {"role": "user", "content": "Hello, how are you?"}
    13    ],
    14    max_tokens=128000,
    15    temperature=0.7
    16)
    17
    18print(response.choices[0].message.content)