DeepSeek · Minima API

DeepSeek-V4.1-Flash

DeepSeek's mixture-of-experts model for million-token contexts, built to keep input-heavy agent workloads cheap by activating few parameters per token.

On Minima API

Price per 1M tokens
$0.30 now $0.255 in · $1.20 now $1.02 out
Context window
1M tokens
Reasoning
On by default · can be turned off
Reasoning effort
low · high · xhigh
Tool calling
Supported
JSON schema output
Supported
Image input
Not supported
Prompt caching
Automatic
Embeddings
Not supported

Pricing

Priced per million tokens

Plans and free credits are on the pricing page.

−15% Every rate is 15% off until December 31.

$0.30 now $0.255input per 1M tokens
$0.006 now $0.0051cached input per 1M tokens
$1.20 now $1.02output per 1M tokens
510 tokens/sgeneration speed

All prices are in USD per 1 million tokens. Speeds are indicative and may vary by workload and configuration.

Model details

IDs, limits and the base model

Model ID
deepseek/deepseek-v4.1-flash
Earlier ID, still accepted
deepseek-v4.1-flash
Developer
DeepSeek
Context window
1,048,576 tokens
Maximum output
1,048,576 tokens
API formats
Chat Completions · Responses · Messages
Base model
deepseek-ai/DeepSeek-V4.1-Flash (opens in a new tab)
Base model license
MIT (opens in a new tab)

Prompt and output share the context window. Minima serves the developer's open weights, optimized for inference.

Quick start

Chat Completions · curl
BASE_URL=https://direct.api.mnma.ai/v1

curl $BASE_URL/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4.1-flash",
    "messages": [
      {"role": "user", "content": "Hi"}
    ]
  }'

FAQ

DeepSeek-V4.1-Flash on Minima API

What model ID do I send for DeepSeek-V4.1-Flash?

Send deepseek/deepseek-v4.1-flash as the model. The earlier name deepseek-v4.1-flash is still accepted. Every model runs on the same endpoint, https://direct.api.mnma.ai/v1, with the same key, as long as the key includes the model: a key reaches only the models chosen when it was created, so a model added later needs a new key.

Can I turn reasoning off?

Yes. Reasoning is on by default and can be turned off per request; its effort can be set to low, high, xhigh.

How is cached input billed?

Repeated prompt prefixes are cached automatically, with no request parameter. Tokens served from cache are billed at $0.006 per 1M instead of $0.30, and each response reports the cached tokens.

Which clients work with it?

Any client that speaks Chat Completions, Responses or the Messages format, so it plugs into whatever harness you already work with. The console has the request in curl, Python and JavaScript.

Try Minima API

Get $20 to try Minima API

Sign up on the platform and get $20 in credits to run Minima-optimized models through an OpenAI-compatible API.

Get an API key (opens in a new tab)