HiAPI
OverviewModel MarketplaceAPI KeysUsage StatisticsCall LogsBillingReferralPlaygroundStorageChangelogContact UsSettings
Display unit
N
Powered by hiapi
Settings

Welcome

Contact Us

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

Back to models
DeepSeekText APIOnline

DeepSeek V4.1 Flash

DeepSeek V4.1 Flash GA supports Responses and Chat Completions with text and image understanding.

Use in your agent

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

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

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.

Image understanding example

Combine input_text and input_image in one input message. Use a public HTTPS image URL; Playground uploads automatically provide a temporary reviewed URL.

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

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, low, 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.

DeepSeek V4.1 Flash full API documentationManage API keysUse the same HiAPI key across all available models.

DeepSeek V4.1 Flash API Pricing

Billing follows the input, output, and cache token categories actually reported in 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

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 supported
Structured JSON
Not supported
Reasoning
Supported
Input modalities
text · image
Output modalities
text
Reasoning efforts
none · low · high · max
Max output
393.2K

About DeepSeek V4.1 Flash

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.

Provider
DeepSeek
Endpoint
/v1/responses
Context window
1.05M
Released
2026-09-10

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.

Need to compare models and billing tiers?View live pricing for all models

Frequently asked questions

How do the official name and the HiAPI model ID differ?

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.

What is DeepSeek V4.1 Flash?

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.

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

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?

DeepSeek's official documentation supports image URLs and base64 image input. Tool calls and structured JSON are not advertised for this integration.

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.