DeepSeek V4.1 Flash GA supports Responses and Chat Completions with text and image understanding.
Provider: DeepSeek
Category: text generation
Endpoint: /v1/responses
Status: Available
Cost: --
DeepSeek V4.1 Flash GA supports Responses and Chat Completions with text and image understanding.
API access
Endpoint
POST /v1/responses
Base URL
https://api.hiapi.ai
Uses the OpenAI Responses format. One HiAPI key works across all available models.
Input price
880 Credits
/ 1M tokens
Output price
2,640 Credits
/ 1M tokens
Context
1.05M
context window
Max output
393.2K
output tokens
Ask a question, upload images, or paste from clipboard. Then inspect the streamed answer, token usage, latency, and estimated cost.
Upload or paste up to 4 images, 10 MB each. Images are safety reviewed.
Call DeepSeek V4.1 Flash with the streaming OpenAI Responses format. Copy a ready-to-use cURL, Python, or Node.js example below.
/v1/responsescurl -N -X POST "https://api.hiapi.ai/v1/responses" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"input": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "用三句话解释 API 缓存的作用。"
}
]
}
],
"stream": true,
"max_output_tokens": 1024,
"reasoning": {
"effort": "high"
}
}'Tip: Replace YOUR_API_KEY with your actual API key from the API Keys page.
Uses the OpenAI Responses format. Keep stream: true, send input as a message array, and set reasoning effort with reasoning.effort.
The example defaults to reasoning.effort=high. Use max for maximum effort or none to disable reasoning.
Combine input_text and input_image in one input message. Use a public HTTPS image URL; Playground uploads automatically provide a temporary reviewed URL.
/v1/responsescurl -N -X POST "https://api.hiapi.ai/v1/responses" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"input": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "Describe the main subject, setting, and important visual details."
},
{
"type": "input_image",
"image_url": "https://static.hiapi.ai/example/subject-1.jpg",
"detail": "low"
}
]
}
],
"stream": true,
"max_output_tokens": 1024,
"reasoning": {
"effort": "high"
}
}'Tip: Replace YOUR_API_KEY with your actual API key from the API Keys page.
Uses the OpenAI Responses format. Keep stream: true, send input as a message array, and set reasoning effort with reasoning.effort.
The example defaults to reasoning.effort=high. Use max for maximum effort or none to disable reasoning.
Responses API
Start with core fields, then enable advanced capabilities as needed.
The fields that form a valid request
Set verified reasoning effort and output limits
DeepSeek Responses is stateless and does not support previous_response_id or conversation. Replay required context in the next input and omit store.
Billing follows the input, output, and cache token categories actually reported in usage. All prices below are shown per 1 million tokens.
Prompts and context sent to the model
Responses and reasoning generated by the model
These specifications reflect the current public HiAPI text request contract. Undisclosed capabilities are not inferred by the page.
DeepSeek V4.1 Flash GA supports Responses and Chat Completions with text and image understanding.
HiAPI exposes this model through /v1/responses. Test prompts and parameters in the Playground, then use the same HiAPI API key in your server application.
The Playground and API share the same model ID, so three steps take a tested prompt into production.
Step 1
Test instructions, input, and reasoning.effort in the Playground.
Step 2
View an existing key or create another after signing in; one key works across all available models.
Step 3
Send requests to /v1/responses and track cost with the usage object.
DeepSeek's official model name is deepseek-flash. HiAPI's public model ID for this integration remains deepseek-v4.1-flash. Continue using deepseek-v4.1-flash in requests and examples.
DeepSeek V4.1 Flash is a production model for text and image input. According to DeepSeek's official documentation, it supports a 1M-token context window, up to 384K output tokens, and none, low, high, and max reasoning efforts, with high as the default.
Set model to deepseek-v4.1-flash. Use POST /v1/responses or the compatible POST /v1/chat/completions endpoint. Responses uses input; Chat Completions uses messages. Do not mix their request shapes.
Responses uses reasoning.effort: none disables reasoning; low, high, and max enable it, with high as the default. Chat Completions uses thinking.type=enabled/disabled with reasoning_effort=low, high, or max when enabled.
This endpoint is stateless. Send the required conversation history in input on every request. Do not send previous_response_id, conversation, background, or context_management, and omit store.
Read text increments from response.output_text.delta and final usage from response.completed. response.incomplete and response.failed indicate incomplete generation and failure. Responses does not end with [DONE]; Chat Completions streams still use [DONE].
Input, output, and cached input tokens are billed separately. Reasoning tokens count as output. Check usage.input_tokens, usage.output_tokens, and input_tokens_details.cached_tokens against the API log. Refer to the live pricing section for current rates.
DeepSeek's official documentation supports image URLs and base64 image input. Tool calls and structured JSON are not advertised for this integration.
Yes, if it has access to the model and available balance. With the OpenAI SDK, set base_url to https://api.hiapi.ai/v1. Use client.responses.create for Responses or client.chat.completions.create for Chat Completions.