# Z.ai: GLM 4.7 FlashX

> Z.ai: GLM 4.7 FlashX on Clonvo: 200K context, $0.07 input and $0.40 output per 1M tokens.

GLM-4.7-FlashX is a fast, low-cost GLM-4.7 model with a 200K context window, switchable thinking and function calling.

-   Model id: `z-ai/glm-4.7-flashx`
-   Provider: Z.ai
-   Released: Not published
-   Context: 200K tokens
-   Max output: 128K tokens

## Pricing

The provider’s list price in USD. Requests on credits are charged exactly this; each response reports its cost in usage.cost.

| Charge | Price | Unit |
| --- | --- | --- |
| Input (prompt) | $0.07 | per 1M tokens |
| Output (completion) | $0.40 | per 1M tokens |
| Cache read | $0.01 | per 1M tokens |

## Capabilities

-   Tools
-   Reasoning

### Supported parameters

Upstream parameters this model honours. Others may be ignored.

-   `temperature`
-   `top_p`
-   `max_tokens`
-   `stop`
-   `tools`
-   `tool_choice`
-   `response_format`
-   `reasoning`

## Quick start

Use the OpenAI SDK with Clonvo’s base URL and this model id.

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.clonvo.com/v1",
    api_key=os.environ["CLONVO_API_KEY"],
)

completion = client.chat.completions.create(
    model="z-ai/glm-4.7-flashx",
    messages=[{"role": "user", "content": "Summarise the plot of Hamlet in one sentence."}],
)
print(completion.choices[0].message.content)
```

## Data policy

Requests to this model are sent to Z.ai, whose API terms govern how they handle your data: [Z.ai data policy](https://docs.z.ai/legal-agreement/privacy-policy). Clonvo doesn’t store prompts or responses unless your organization turns on retention.

## Bring your own key

From Pay as you go up, a Z.ai key added under Provider keys is used for this model before your credits: $25,000 a month free, then 4% of list price. [How bring-your-own-key works](https://clonvo.com/docs/byok.md).
