NeuralBridge
Sign in Download IDE
DeepSeek

deepseek-v4.1-flash

chat

Fast multimodal model DeepSeek with a context of one million tokens: tools, images as input, reasoning with depth selection.

Specifications

Context window
1.0M
Max tokens in response
393 216
Vendor
DeepSeek
Release
2026-10-17
Login
text, images
Output
text

Capabilities

visiontoolsreasoningstreamingide

Description

What it can do

  • Input: text and images, output: text.
  • Function calling: tool_choice — auto, none, required or a specific function; multiple calls in one response (parallel_tool_calls).
  • Reasoning with depth selection: reasoning_effort — none, low, high or max. By default the model reasons at the high level. none disables reasoning: response is faster and cheaper, but accuracy is lower for counting and multi-step tasks. max — deepest reasoning for complex tasks.
  • The reasoning step arrives separately from the answer, in the reasoning_content field (in stream — in delta.reasoning_content fragments).
  • Response must be strictly in JSON: response_format {"type": "json_object"}.
  • Streaming response (stream): token usage arrives in the last fragment.

Limits

  • Context — 1,048,576 tokens, answer — up to 393,216 tokens.
  • If max_tokens is not set, the platform uses the maximum possible for your request.

Sampling parameters

The model accepts temperature (0–2), top_p (0–1), stop, seed, frequency_penalty and presence_penalty (from −2 to 2). If a parameter is not set, the model's default value is used.

Cost

  • Reasoning tokens are billed the same as answer tokens: at the none level the answer is cheaper.
  • Repeated request prefix (system prompt, dialogue history) is cached automatically, cached input tokens cost 50 times less than regular tokens.
  • Price does not depend on request length.

Suitable for

Agent tasks and programming with long context: an entire repository or a batch of documents in one request, tool usage, screenshot and diagram analysis, fast answers without reasoning where speed matters.

Parameters

temperaturedefault: 1
Controls how varied the answer is: higher values make the output more random, lower values more predictable.
top_pdefault: 1
Nucleus sampling: only the most probable tokens whose probabilities add up to P are considered.
max_tokens
Upper limit on the number of tokens the model may generate in its answer.
presence_penaltydefault: 0
Penalizes tokens that already appeared in the text, nudging the model toward new topics.
frequency_penaltydefault: 0
Penalizes tokens in proportion to how often they already appeared — fights repetition.
stop
List of stop strings: generation halts as soon as the model produces any of them.
seed
Pins randomness: repeating a request with the same seed and parameters returns the same result.
response_format
Response format: plain text or strict JSON following a given schema.
streamdefault: false
Deliver the answer as a stream while it is generated instead of one chunk at the end.
tools
tool_choice
parallel_tool_calls
reasoning_effortdefault: high · none · low · high · max
Thinking level: how much effort the model spends reasoning before answering. Higher means deeper analysis, more time and more tokens.

Endpoints

POSThttps://api.neuralbridge.ru/v1/chat/completionsprimary
Chat Completions — The main chat endpoint: takes a message history and returns the model reply. Supports streaming and regular modes. The X-NB-Prompt-Cache header sets prompt caching for a single request: 5m, 1h or off.
POSThttps://api.neuralbridge.ru/v1/responses
Responses — Alternative chat format with state and structured output. The X-NB-Prompt-Cache header sets prompt caching for a single request: 5m, 1h or off.
POSThttps://api.neuralbridge.ru/v1/messages
Messages — Anthropic format: the same chat for clients and SDKs written for Claude. The X-NB-Prompt-Cache header sets prompt caching for a single request: 5m, 1h or off.
POSThttps://api.neuralbridge.ru/v1/converse
Converse — Amazon Bedrock Converse format, for clients written against it.
POSThttps://api.neuralbridge.ru/v1/converse-stream
Converse Stream — Streaming variant of the Bedrock Converse format.
POSThttps://api.neuralbridge.ru/v1/generateContent
Generate Content — Google Gemini format, for clients and SDKs written against it.
POSThttps://api.neuralbridge.ru/v1/streamGenerateContent
Stream Generate Content — Streaming variant of the Gemini format.

Code examples

python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.neuralbridge.ru/v1",
)

response = client.chat.completions.create(
    model="deepseek/deepseek-v4.1-flash-08130",
    messages=[{"role": "user", "content": "Привет! Расскажи о себе."}],
)

print(response.choices[0].message.content)
For OpenAI SDK, specify /v1 in base_url. For Anthropic SDK — without /v1.
Prices
Login / 1M tokens39,00 ₽
Output / 1M tokens156,00 ₽
Cache hit / 1M tokens0,78 ₽
The request cost in rubles — in the response, field usage.cost
Identifier
deepseek/deepseek-v4.1-flash-08130
Get API key