DeepSeek V4.1 Flash Preview supports native Responses, Chat Completions, streaming, and none/high/max reasoning settings.
Provider: DeepSeek
Category: text generation
Endpoint: /v1/responses
Status: Available
Cost: --
DeepSeek V4.1 Flash Preview supports native Responses, Chat Completions, streaming, and none/high/max reasoning settings.
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
-
context window
Max output
-
output tokens
Ask a question to stream the answer and inspect token usage, latency, and estimated cost.
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.
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 is based on actual input, output, and cached token 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 Preview supports native Responses, Chat Completions, streaming, and none/high/max reasoning settings.
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 V4.1 Flash is a preview model from DeepSeek. HiAPI currently provides text conversations, streaming, and verified reasoning settings. Context length, maximum output, and additional capabilities must follow confirmed model specifications.
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; high and max enable it. The Playground and default examples use high. Chat Completions uses thinking.type=enabled/disabled with reasoning_effort=high/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.
This integration covers text, streaming, and reasoning. Image input, tool calls, and structured JSON are not currently enabled on this page. An undisplayed capability does not prove the model lacks it; follow the capabilities verified and enabled by HiAPI.
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.