HiAPI
OverviewModels MarketAPI KeysUsage StatisticsCall LogsBillingReferralPlaygroundStorageChangelogContact UsSettings
Display unit
N
Powered by hiapi
Settings

Welcome

Contact Us

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: --

Back to models
DeepSeekText APIOnline

DeepSeek V4.1 Flash

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

PlaygroundAPIPricingCapabilitiesOverview

Run settings

The Playground charges the signed-in account balance without requiring an extra API key. Server-side API calls still require a HiAPI API key.

Try DeepSeek V4.1 Flash

Ask a question to stream the answer and inspect token usage, latency, and estimated cost.

DeepSeek V4.1 Flash API Quickstart

Call DeepSeek V4.1 Flash with the streaming OpenAI Responses format. Copy a ready-to-use cURL, Python, or Node.js example below.

Code Example
API Endpoint:/v1/responses
curl -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

Request fields at a glance

Start with core fields, then enable advanced capabilities as needed.

2 required3 capability details

Core fields

The fields that form a valid request

model
Required
Use deepseek-v4.1-flash.
input
Required
Send a message array or text input.
stream
Optional
Supports streaming and non-streaming responses; examples use true.
instructions
Optional
Define the model role and response requirements.

Capability fields

Set verified reasoning effort and output limits

reasoning.effort
Optional
Supports none, high, and max; defaults to high. none disables reasoning.
max_output_tokens
Optional
Limit the maximum output tokens for this response.
State and storage
Optional
This endpoint is stateless; omit store, previous_response_id, and conversation.
i

DeepSeek Responses is stateless and does not support previous_response_id or conversation. Replay required context in the next input and omit store.

Manage API keysUse the same HiAPI key across all available models.

DeepSeek V4.1 Flash API Pricing

Billing is based on actual input, output, and cached token usage. All prices below are shown per 1 million tokens.

Input tokens
880 Credits/ 1M tokens

Prompts and context sent to the model

Output tokens
2,640 Credits/ 1M tokens

Responses and reasoning generated by the model

Cache read
28 Credits/ 1M tokens
Cache write
-

DeepSeek V4.1 Flash Model Specifications

These specifications reflect the current public HiAPI text request contract. Undisclosed capabilities are not inferred by the page.

Streaming
Supported
Tool calling
Not disclosed
Structured JSON
Not disclosed
Reasoning
Supported
Input modalities
text
Output modalities
text
Reasoning efforts
none · high · max
Max output
-

About DeepSeek V4.1 Flash

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.

Provider
DeepSeek
Endpoint
/v1/responses
Context window
-
Released
Not disclosed

How to Use DeepSeek V4.1 Flash

The Playground and API share the same model ID, so three steps take a tested prompt into production.

  1. Step 1

    Validate online

    Test instructions, input, and reasoning.effort in the Playground.

  2. Step 2

    Manage API keys

    View an existing key or create another after signing in; one key works across all available models.

  3. Step 3

    Integrate your server

    Send requests to /v1/responses and track cost with the usage object.

Frequently asked questions

What is DeepSeek V4.1 Flash?

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.

Which model ID and endpoint should I use?

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.

How do I enable or disable reasoning?

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.

How do multi-turn Responses conversations work?

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.

How does a streamed response end?

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].

How are tokens and reasoning billed?

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.

Are image input, tool calls, and structured JSON enabled?

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.

Can I reuse an existing HiAPI API key?

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.