← All models
Online

DeepSeek V4.1 Flash

DeepSeek · OpenAI-compatible API

deepseek/deepseek-v4.1-flash

USD / 1M tokens

Input$0.29
Cached Input$0.0058
Output$1.16
Context
1M
Tool Calling
✓
Reasoning
✓
Vision
✗
Streaming
✓
OpenAI-compatible API
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.iteracompute.com/v1",
    api_key=os.environ["ITERACOMPUTE_API_KEY"],
)
response = client.chat.completions.create(
    model="deepseek/deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Catalog snapshot: 2026-10-09. Live prices have not been verified yet.

Overview

Text input, streaming and structured outputs; up to 393,216 output tokens.

Tasks and selection tradeoffs

Frequent small code edits

Use focused source context, review each diff and run fast unit tests.

Repeated-prefix text workflows

Reuse stable instructions and inspect reported cached tokens rather than assuming a hit.

Task suggestions based on catalog features and price, not model quality benchmarks.

Choose your tool

Choose a model and tool for your task →

Pricing

Prices in USD per 1M tokens.

Input$0.29
Cached Input$0.0058
Output$1.16

Example task: Apply and verify a focused patch

Assume 20,000 aggregate input tokens and 2,000 billable output tokens across all calls. No cache hit.

20,000 × $0.29 / 1M + 2,000 × $1.16 / 1M = $0.008120

If usage actually reports 15,000 of those input tokens as cached, replace that portion at the cached-input rate ($0.0058/1M): $0.003857. Cached tokens are part of total input, never added on top.

Illustrative calculation using the October 9, 2026 catalog snapshot, not a measured bill or promised task size. Live rates above may differ. Include every agent call and retry, repeated history and billable reasoning output; settle against actual usage and Console records.

Known limits and verification scope

  • Text-only. Cached input has a separate $0.0058 snapshot rate, but a repeated prompt is not a guaranteed cache hit. Choose Pro only if your acceptance results justify its extra cost.
  • Catalog context: 1,048,576 tokens. Input and requested output share the context budget; this is not a measured usable boundary.
  • The context and capability flags describe the public catalog. They do not establish a particular tool workflow or a quality score.
  • Start with one representative task. Check correctness, actual usage and response time before increasing traffic.
  • This page has no recorded end-to-end tool validation for this model. The integration examples let you run and record your own check.

Verified parameters and open questions

Parameter / protocol fieldEvidence status
model / messagesRequest example only; not live-verified for this model
tools / tool_calls / tool messagesCatalog lists tool calling; argument and result cycle unverified
chat_template_kwargs.enable_thinking=falseQwen-specific option; do not copy to this model
stream / temperature / top_p / max_tokens / response_format / reasoning_effortNo verified values recorded for this exact model ID

A catalog capability flag is not a tested parameter value. Omit optional controls until checked with your exact model ID; an HTTP 200 alone does not prove the option took effect.

API

Base URL
https://api.iteracompute.com/v1
Endpoint
POST /v1/chat/completions
Model ID
deepseek/deepseek-v4.1-flash
Authentication
Authorization: Bearer ITERACOMPUTE_API_KEY

View Docs

FAQ

How do I use DeepSeek V4.1 Flash with the OpenAI SDK?

Set base_url to https://api.iteracompute.com/v1 and model to deepseek/deepseek-v4.1-flash. Authenticate with your IteraCompute API key.

What does DeepSeek V4.1 Flash cost?

See the pricing section for current input, cached-input and output rates in USD per 1M tokens. Check the refresh time before use.

What context length is available?

1,048,576 tokens.

Ready for your first request?

Create your key, choose a tool and get a non-empty first reply.