NeuralBridge
Zaloguj się Pobierz IDE
DeepSeek

DeepSeek V4.1 Flash 1017

czat

DeepSeek V4.1 Flash, a fast multimodal model (October 17, 2026 snapshot): a one-million-token context, tools, image input, JSON schema output and adjustable reasoning depth.

characteristics

Okno kontekstowe
1.0M
Maks. tokenów w odpowiedzi
384 000
Dostawca
DeepSeek
Wydanie
2026-10-17
Logowanie
tekst, obrazy
Wyjście
tekst

Co potrafi

visiontoolsreasoningstreamingide

Opis

What it does

  • Text and images in (data URI or https link), text out.
  • Tool calling: tool_choice is auto, none, required or a specific function; the model can call several tools in one response.
  • Output that follows a JSON schema (response_format json_schema) or plain JSON (json_object: mention the word json and give an example in the prompt).
  • Adjustable reasoning: reasoning_effort is none (no reasoning, faster and cheaper), low, high (default) or max. Other values are rejected with a 400 error.
  • Stop sequences (stop) and seed. Repeating a request with the same seed is not guaranteed to return the same answer.
  • Streaming: text, reasoning and tool calls arrive as they are generated; token usage comes in the last chunk.

Limits

  • Context: 1,048,576 tokens; response: up to 384,000 tokens.
  • If max_tokens is not set, the platform uses the largest value your request allows.

Sampling parameters

The model accepts temperature (0–2) and top_p (0–1). According to the model author, temperature has no effect while reasoning. The author recommends temperature 1.0 and top_p 0.95.

Pricing

  • Reasoning tokens are billed as output tokens, so answers at the none level cost less.
  • A repeated request prefix (system prompt, conversation history) is cached automatically, and cached input tokens cost less. Rates are on this page.

Good for

Agentic tasks and coding with long context, tool use, reading screenshots and diagrams, fast answers without reasoning.

Parametry

temperaturedomyślnie: 1
Wpływa na różnorodność odpowiedzi: im wyższa wartość, tym bardziej losowy wynik, im niższa — tym bardziej przewidywalny.
top_pdomyślnie: 1
Ogranicza wybór części najbardziej prawdopodobnych tokenów: brane pod uwagę są tylko te, których sumaryczne prawdopodobieństwo daje P.
max_tokens
Górny limit liczby tokenów, które model może wygenerować w odpowiedzi.
stop
Lista ciągów ograniczających: generowanie jest przerywane, gdy model wyemituje którykolwiek z nich.
seed
Ustala losowość: ponowne żądanie z tym samym seed i tymi samymi parametrami daje ten sam wynik.
response_format
Format odpowiedzi: zwykły tekst lub ścisły JSON według określonego schematu.
streamdomyślnie: false
Zwracać odpowiedź strumieniowo w miarę generowania, a nie jednorazowo na końcu.
tools
tool_choice
reasoning_effortdomyślnie: high · none · low · high · max
Poziom myślenia: ile wysiłku model poświęca na rozumowanie przed odpowiedzią. Wyższy poziom — głębsza analiza, więcej czasu i tokenów.

Endpointy

POSThttps://api.neuralbridge.ru/v1/chat/completionsgłówny
Chat Completions — Podstawowy endpoint czatu: przyjmuje historię wiadomości i zwraca odpowiedź modelu. Obsługuje tryby strumieniowy i zwykły. Okres przechowywania pamięci podręcznej promptu dla pojedynczego żądania określa nagłówek X-NB-Prompt-Cache: 5m, 1h lub off.
POSThttps://api.neuralbridge.ru/v1/responses
Responses — Alternatywny format czatu ze stanem i strukturalnym wyjściem. Okres przechowywania pamięci podręcznej promptu dla pojedynczego żądania określa nagłówek X-NB-Prompt-Cache: 5m, 1h lub off.
POSThttps://api.neuralbridge.ru/v1/messages
Messages — Format Anthropic: ten sam czat dla klientów i SDK napisanych pod Claude. Okres przechowywania pamięci podręcznej promptu dla pojedynczego żądania określa nagłówek X-NB-Prompt-Cache: 5m, 1h lub off.
POSThttps://api.neuralbridge.ru/v1/converse
Converse — Format Amazon Bedrock Converse — dla klientów napisanych pod niego.
POSThttps://api.neuralbridge.ru/v1/converse-stream
Converse Stream — Strumieniowa wersja formatu Bedrock Converse.
POSThttps://api.neuralbridge.ru/v1/generateContent
Generate Content — Format Google Gemini — dla klientów i SDK napisanych pod niego.
POSThttps://api.neuralbridge.ru/v1/streamGenerateContent
Stream Generate Content — Strumieniowa wersja formatu Gemini.

Przykłady kodu

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-1017-16406",
    messages=[{"role": "user", "content": "Привет! Расскажи о себе."}],
)

print(response.choices[0].message.content)

Inne modele DeepSeek

Dla OpenAI SDK podaj /v1 w base_url. Dla Anthropic SDK — bez /v1.
prices
Logowanie / 1M tokenów25,32 ₽
Wyjście / 1M tokenów101,28 ₽
Logowanie z pamięci podręcznej / 1M tokenów0,5275 ₽
Koszt zapytania w rublach — w odpowiedzi, pole usage.cost
Identyfikator
deepseek/deepseek-v4.1-flash-1017-16406
Uzyskaj klucz API