
Scene illustration, not an output of this model
Model:
Price: 0.75 credits per 1K input tokens · ≈ $0.0004 · 3 credits per 1K output tokens · ≈ $0.0015High 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.0495: $999 tier: $1 = 2,000 credits.

History
Saved locally in this browser
0 running · 0 completed
Input
≈ $0.0004
Output
≈ $0.0015
Cache
≈ $0.000007
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": "deepseek-v4.1-flash",
"messages": [
{
"role": "user",
"content": "Calculate this fictional order in USD and give a concise calculation summary, not private internal reasoning. Items: 2 notebooks at $12 each, 1 lamp at $45, 3 pens at $4 each. Apply 10% off merchandise first, then a $5 coupon if the discounted subtotal is at least $60. Shipping is $6 unless the post-coupon subtotal is at least $75. No tax. Show intermediate totals and final amount rounded to cents."
}
],
"temperature": 1,
"max_tokens": 32768,
"reasoning_effort": "high"
}'Response example
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "deepseek-v4.1-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
}
}