Loading…
Loading…
GLM-4.7-Flash is a fast and efficient multilingual text generation model with a 131,072 token context window. Optimized for dialogue, instruction-following, and multi-turn tool calling across 100+ languages. By Z.ai, on GridPup at $0.073 per million input tokens and $0.48 per million output tokens, paid from your GridPup balance per request. No subscription.
| A 1,000-word answer to a 200-word question | $0.00066 |
|---|---|
| 1,000 such answers | $0.66 |
| Summarising a 50-page document (25,000 words) in 500 words | $0.0028 |
GridPup's API speaks OpenAI's format: use any OpenAI SDK with the base URL https://api.gridpup.com/v1/ai and a GridPup API key with Also use AI models. The answer tells you what it cost. More in the API docs.
from openai import OpenAI
client = OpenAI(base_url="https://api.gridpup.com/v1/ai", api_key="gp_live_…")
r = client.chat.completions.create(
model="@cf/zai-org/glm-4.7-flash",
messages=[{"role": "user", "content": "Explain a KV cache in two sentences."}],
)
print(r.choices[0].message.content)
print("cost:", r.usage.cost_usd, "USD")base_url to https://api.gridpup.com/v1/ai and the model to @cf/zai-org/glm-4.7-flash.