BlockRun
Back to Models

DeepSeek Chat (V4.1 Flash) API

deepseek/deepseek-chat

deepseek

Compatibility id for DeepSeek V4.1 Flash in non-thinking mode ($0.14 in / $0.28 out) — same model, price and routing as deepseek/deepseek-v4.1-flash. Production-grade reliability and 5MB request bodies.

Code Examples

from blockrun_llm import LLMClient

client = LLMClient()  # Uses BLOCKRUN_WALLET_KEY (never sent to server)
response = client.chat("deepseek/deepseek-chat", "Hello!")
import { LLMClient } from '@blockrun/llm';

const client = new LLMClient();  // Uses BLOCKRUN_WALLET_KEY (never sent to server)
const response = await client.chat('deepseek/deepseek-chat', 'Hello!');
curl -X POST https://blockrun.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "PAYMENT-SIGNATURE: <payment_header>" \
  -d '{
    "model": "deepseek/deepseek-chat",
    "messages": [{"role": "user", "content": "Hello!"}],
    "max_tokens": 1024
  }'
2.23 s
median latency
5.25 s
p95 latency
100.00%
success rate
1,000+
calls, last 7 days

On BlockRun since 2026-02-21. Measured on BlockRun over the last 7 days, end to end, successful calls only. Not a vendor benchmark.

Pricing

Input$0.14 / 1M tokens
Output$0.28 / 1M tokens
Context1M tokens
Max Output66K tokens

No markup on official DeepSeek rates; $0.001 fee per call.

Payment

Network
Base
Currency
USDC
Protocol
x402

Pay per request with USDC on Base. No subscription required.

Try It

Send a message to try DeepSeek Chat (V4.1 Flash)

Connect your wallet to enable payments

About DeepSeek Chat (V4.1 Flash)

DeepSeek Chat (V4.1 Flash) is a coding and vision model from DeepSeek with a 1.05M-token context window and up to 66K tokens of output per call. It is billed per token at the provider's list rate, with no markup on chat tokens. It is served through BlockRun's OpenAI-compatible API, so it can be called without an account, an API key, or a subscription.

Use DeepSeek Chat (V4.1 Flash) for

  • Coding agents: writing, reviewing and refactoring code across a repository
  • Reading screenshots, charts, scans and photos alongside text
  • Long documents and whole codebases in a single prompt
  • Chat assistants and agents that answer, summarise and draft

What it costs

DeepSeek Chat (V4.1 Flash) is billed per token. The underlying rates are $0.14 per million input tokens and $0.28 per million output tokens with no platform margin on chat tokens; only a small per-transaction fee covering on-chain settlement is added on top, and the resulting price is quoted in the 402 before you pay. You are charged for the tokens a request actually consumes — there is no monthly commitment and no unused balance to forfeit. With a context window of 1,048,576 tokens and up to 65,536 tokens of output, a single call can carry a substantial working set.

Specifications

Context window
1,048,576 tokens
Maximum output
65,536 tokens
API compatibility
OpenAI-compatible
Payment
USDC via x402
Categories
chat, coding, vision

Calling it from your code

Pass deepseek/deepseek-chat as the model field. Because the endpoint mirrors the OpenAI chat completions schema, any existing OpenAI client works by changing the base URL — streaming, tool use, and multi-turn messages all behave the same way.

The first request returns a 402 carrying the exact price; a signed retry runs it, and client libraries fold the two into one call — how the payment works. See the documentation for request and response shapes, the LLM API page for every model on this endpoint, or browse the full catalog of 90 chat models to compare alternatives.

DeepSeek Chat (V4.1 Flash) or another model

The closest alternatives by price that do the same kind of work. Each is called on the same endpoint with the same request, so comparing two is a one-line change.

ModelPriceContext
DeepSeek Chat (V4.1 Flash) (this page)$0.14 in / $0.28 out per 1M1.05M context
DeepSeek Reasoner (V4.1 Flash)$0.14 in / $0.28 out per 1M1.05M context
DeepSeek V4.1 Flash$0.14 in / $0.28 out per 1M1.05M context
Xiaomi MiMo V2.5$0.14 in / $0.28 out per 1M1.05M context

DeepSeek Chat (V4.1 Flash) API questions

How much does the DeepSeek Chat (V4.1 Flash) API cost?

$0.14 per million input tokens and $0.28 per million output tokens, with cached input at $0.0060 per million. There is no markup on chat tokens; a small per-call transaction fee is added, and the price is quoted in the 402 before the call runs.

What is DeepSeek Chat (V4.1 Flash)'s context window?

1,048,576 tokens of context, with up to 65,536 tokens of output per call.

Is the DeepSeek Chat (V4.1 Flash) API OpenAI-compatible?

Yes. Send an OpenAI chat-completions request with "model": "deepseek/deepseek-chat" to the BlockRun endpoint. An existing OpenAI client works by changing the base URL; streaming and multi-turn messages behave the same way.

Do I need an API key to use DeepSeek Chat (V4.1 Flash)?

No. Each request carries its own payment, so an agent or script can call DeepSeek Chat (V4.1 Flash) with no account and no key. Teams that prefer one can use an API key with card or invoice billing instead.

Can DeepSeek Chat (V4.1 Flash) read images?

Yes. Send images in the message content alongside text, in the OpenAI image_url format, and DeepSeek Chat (V4.1 Flash) reads them with the prompt.

What happens if DeepSeek Chat (V4.1 Flash) is unavailable?

A request that fails is not charged.

Related models

Every model on BlockRun is reached through the same endpoint and the same payment flow, so switching is a one-line change to the model field. These are the closest alternatives to DeepSeek Chat (V4.1 Flash):

Two ways to run this

Get an API key

Sign in, get a key, and call the same endpoints with usage billed to your account. For teams that want one invoice instead of one wallet.

Get an API key 

Or let your agent pay per call, in USDC

No account, no API key. Three steps, and the last one is the request this page is about.

  1. 01
    Point your agent at BlockRun

    Install ClawRouter, or add the BlockRun MCP server to Claude Code, Cursor, Codex or OpenClaw. Any OpenAI-compatible client works too — change the base URL, nothing else.

    curl -fsSL https://blockrun.ai/ClawRouter-update | bash
  2. 02
    Fund a wallet with USDC

    Send USDC to a wallet on Base, Solana or Arc. There is no account to create and no API key to issue: the wallet is the account, and it pays per call.

  3. 03
    Call DeepSeek Chat (V4.1 Flash)

    The first call returns HTTP 402 with the exact price, your agent signs it, and the answer comes back. Payment settles on-chain; nothing is charged if the call fails.

    curl -X POST https://blockrun.ai/api/v1/chat/completions \
      -H "Content-Type: application/json" \
      -d '{"model": "deepseek/deepseek-chat", "messages": [{"role": "user", "content": "Hello!"}]}'