70% off Wan3.0 Standard and 50% off Wan3.0 Prime. Try Wan3.0

DeepSeek-V4.1-Flash-1017 API

Multimodal 1M-context MoE checkpoint for coding, reasoning, and tool-using agents

Get an API key
Input per 1M
$0.15
Cached input per 1M
$0.01
Output per 1M
$0.60
Context window
1M

Call DeepSeek-V4.1-Flash-1017 in one request

Runware's endpoint takes the OpenAI Chat Completions format, so the OpenAI SDK works as it is. Change the base URL, key, and model ID.

Model ID:deepseek:v4.1@flash-1017
DeepSeek-V4.1-Flash-1017 API docs
Request
import os

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["RUNWARE_API_KEY"],
    base_url="https://api.runware.ai/v1",
)

stream = client.chat.completions.create(
    model="deepseek:v4.1@flash-1017",
    messages=[
        {"role": "user", "content": "What is the capital of France?"},
    ],
    stream=True,
    stream_options={"include_usage": True},
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
    if chunk.usage:
        print("\n", chunk.usage)

Usage and cost come back with the response. The stream ends with the request's token counts and its cost, so there is no second call to make.

About DeepSeek-V4.1-Flash-1017

DeepSeek-V4.1-Flash-1017 is the October 2026 checkpoint of DeepSeek-V4.1-Flash, a multimodal mixture-of-experts model for coding, reasoning, visual understanding, and tool-using agents. It reads text and images, writes text, and combines a 1M-token context window and up to 1M output tokens with continuously adjustable reasoning effort and tool calls. It suits large-codebase work, document analysis, research, and long-running agentic tasks.

Developer
DeepSeek
Released
17 Oct, 2026
Input
Text, Image
Context window
1M tokens
Max output
384K tokens
API
OpenAI Chat Completions
Hosting
Runware hardware
Data retention
Zero retention

Already on another provider?

Code that uses the OpenAI SDK moves over with three changes: the base URL, the API key and the model ID. Moving production traffic? We'll help you plan the switch.

Read the docs

Start on demand. Scale on dedicated.

Call your first model in minutes, or tell us about your workload and we will size dedicated capacity for it.

Get an API key