
Scene illustration, not an output of this model
Model:
Price: 0.28 credits per 1K input tokens · ≈ $0.0001 · 0.98 credits per 1K output tokens · ≈ $0.0005High stability with detailed usage records on the APIAny platform.
Prompt preset — no generated result yet
Sampling temperature.
Output budget includes reasoning and final answer tokens.
Optional reasoning effort. Leave unset to use the model default. Higher effort can use more tokens and time.
USD estimate ≈ $0.0165: $999 tier: $1 = 2,000 credits.

History
Saved locally in this browser
0 running · 0 completed
Input
≈ $0.0001
Output
≈ $0.0005
Cache
≈ $0.000041
Context
Max output
Authentication
Every request needs a Bearer token in the Authorization header. Create an API key in the console.
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/chat/completionsRequest parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
model | string | Required | Model identifier to invoke. Use this model's ID. |
messages | array | Required | Conversation history in OpenAI chat format (role + content). |
stream | boolean | Optional | When true, the response streams back as server-sent events. |
Request example
curl "https://apiany.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3-flash",
"messages": [
{
"role": "user",
"content": "Rewrite the following fictional Chinese refund policy as a polite concise English customer-support reply, then provide a Chinese back-translation. Policy: 未使用的积分包可在购买后7天内申请退款;已使用的积分不退款;审核一般需要2个工作日。 Customer purchased 3 days ago and has used no credits. Do not promise approval or invent a refund arrival time."
}
],
"temperature": 1,
"max_tokens": 32768,
"reasoning_effort": "max"
}'Response example
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "glm-5.3-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 18,
"total_tokens": 30
}
}