
Szenenillustration, keine Ausgabe dieses Modells
Modell:
Preis: 1.2 credits per 1K input tokens · ≈ $0.0006 · 2.4 credits per 1K output tokens · ≈ $0.0012Hohe Stabilität, mit detaillierten Nutzungsprotokollen auf der APIAny-Plattform.
Vorlage ohne generiertes Ergebnis
Sampling temperature.
Maximum output tokens.
Optional reasoning effort. Leave unset to use the model default. Higher effort can use more tokens and time.
Web search
Search the web before answering when current information is needed.
USD-Schätzung ≈ $0.005: Stufe $999: 1 USD = 2,000 Credits.

Verlauf
Lokal in diesem Browser gespeichert
0 läuft · 0 abgeschlossen
Input
≈ $0.0006
Output
≈ $0.0012
Cache Read
≈ $0.0006
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": "grok-4.7",
"messages": [
{
"role": "user",
"content": "Write a short decision memo using these fictional constraints: a two-person studio needs shared file review in 10 days; first-year budget 600 USD. Option A costs 20 USD/month and is ready now but lacks custom branding. Option B takes 15 engineering days plus 100 USD/year hosting and supports branding. Branding is desirable, not required; neither option has verified backup recovery. Recommend an option, show budget arithmetic and state the verification still needed."
}
],
"temperature": 0.7,
"max_tokens": 4096,
"reasoning_effort": "high",
"web_search": false
}'Response-Beispiel
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "grok-4.7",
"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
}
}