DeepSeek V4.1 Flash
Model Overview
DeepSeek V4.1 Flash is the current DeepSeek Flash build: a 1M-context chat and reasoning model with thinking mode enabled by default, image understanding, and up to 384K output tokens. DeepSeek reports it surpasses V4 Pro on performance, cost and speed.
API Schema
post
Body
or
Responses
200
Successful response.
idstringRequiredExample:
A unique identifier for the chat completion.
chatcmpl-CQ9FPg3osank0dx0k46Z53LTqtXMlobjectstring · enumRequiredExample:
The object type.
chat.completionPossible values: creatednumberRequiredExample:
The Unix timestamp (in seconds) of when the chat completion was created.
1762343744modelstringRequiredExample:
The model used for the chat completion.
deepseek/deepseek-v4.1-flashpost/v1/chat/completions
curl --request POST \
--url 'https://api.aimlapi.com/v1/chat/completions' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{"model": "deepseek/deepseek-v4.1-flash", "messages": [{"role": "user", "content": "Hi! What do you think about mankind?"}]}'200
Successful response.
{
"id": "chatcmpl-CQ9FPg3osank0dx0k46Z53LTqtXMl",
"object": "chat.completion",
"created": 1762343744,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm just a program, so I don't have feelings, but I'm here and ready to help you. How can I assist you today?",
"refusal": null,
"annotations": null,
"audio": null,
"tool_calls": null
},
"finish_reason": "stop",
"logprobs": null
}
],
"model": "deepseek/deepseek-v4.1-flash",
"usage": {
"prompt_tokens": 137,
"completion_tokens": 914,
"total_tokens": 1051,
"completion_tokens_details": null,
"prompt_tokens_details": null
},
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Code Example
Last updated
Was this helpful?