
Szenenillustration, keine Ausgabe dieses Modells
Modell:
Preis: 1.05 credits per 1K input tokens · ≈ $0.0005 · 3.15 credits per 1K output tokens · ≈ $0.0016Hohe 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.052: Stufe $999: 1 USD = 2,000 Credits.

Verlauf
Lokal in diesem Browser gespeichert
0 läuft · 0 abgeschlossen
Input
≈ $0.0005
Output
≈ $0.0016
Cache Read
≈ $0.000018
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": "deepseek-v4-flash",
"messages": [
{
"role": "user",
"content": "Prioritize replenishment from this fictional inventory. SKU A: stock 12, average daily sales 4, lead time 5 days. SKU B: stock 30, sales 3/day, lead time 2 days. SKU C: stock 4, sales 2/day, lead time 4 days. Assume steady demand, no incoming stock and no safety stock. Compute days of cover, identify lead-time shortfalls and explain the ordering priority in a short table."
}
],
"temperature": 1,
"max_tokens": 32768,
"reasoning_effort": "high"
}'Response-Beispiel
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "deepseek-v4-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
}
}