
Szenenillustration, keine Ausgabe dieses Modells
Modell:
Preis: 0.28 credits per 1K input tokens · ≈ $0.0001 · 0.98 credits per 1K output tokens · ≈ $0.0005Hohe Stabilität, mit detaillierten Nutzungsprotokollen auf der APIAny-Plattform.
Vorlage ohne generiertes Ergebnis
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-Schätzung ≈ $0.0165: Stufe $999: 1 USD = 2,000 Credits.

Verlauf
Lokal in diesem Browser gespeichert
0 läuft · 0 abgeschlossen
Input
≈ $0.0001
Output
≈ $0.0005
Cache Read
≈ $0.000041
Kontext
Max. Output
Authentifizierung
Jede Anfrage muss im Authorization Header ein Bearer Token enthalten. Erstelle deinen API Key in der Konsole.
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/chat/completionsRequest-Parameter
| Parameter | Typ | Erforderlich | Hinweise |
|---|---|---|---|
model | String | Erforderlich | Die Modellkennung für den Aufruf; verwende die ID dieses Modells. |
messages | Array | Erforderlich | Nachrichtenverlauf im OpenAI-Chatformat (role + content). |
stream | Boolean | Optional | Wenn true, wird die Antwort als SSE-Stream zurückgegeben. |
Request-Beispiel
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-Beispiel
{
"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
}
}