
Szenenillustration, keine Ausgabe dieses Modells
Modell:
Preis: 7.5 credits per 1K input tokens · ≈ $0.0037 · 37.5 credits per 1K output tokens · ≈ $0.0187Hohe 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.
USD-Schätzung ≈ $0.077: Stufe $999: 1 USD = 2,000 Credits.

Verlauf
Lokal in diesem Browser gespeichert
0 läuft · 0 abgeschlossen
Input
≈ $0.0037
Output
≈ $0.0187
Cache Read
≈ $0.0004
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": "claude-opus-5",
"messages": [
{
"role": "user",
"content": "Review this fictional payment callback design. A signed event contains event_id and order_id. Handler verifies signature, reads order, sends a confirmation email, adds 100 credits, then marks order paid. Retries and simultaneous duplicate events are possible; database transactions are available. Identify idempotency and failure boundaries, recommend a minimal safe sequence and list tests. Do not assume email participates in a database transaction."
}
],
"temperature": 0.7,
"max_tokens": 4096,
"reasoning_effort": "high"
}'Response-Beispiel
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "claude-opus-5",
"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
}
}