DeepSeek V4.1 Flash
Cents per million tokens.
- Input
- $0.04
- Output
- $0.30
- Cached
- $0.004
$ per 1M tokens
deepseek-v4.1-flash-1017deepseek-v4.1-flash-1017-uncensoredThe low-cost option for volume. Classification, synthetic data and everyday chat that should not stall on a refusal.
By using Libremodel you accept our terms of use.
Set it up in your coding agent: copy the instructions and your agent gets it ready, or do it by hand.
Paste it into any coding agent: it sets up OpenCode for you and tells you how to save the key, without writing it in the file.
Or do it by hand
~/.config/opencode/opencode.json%USERPROFILE%\.config\opencode\opencode.json{ "$schema": "https://opencode.ai/config.json", "model": "libremodel/deepseek-v4.1-flash-1017-uncensored", "provider": { "libremodel": { "npm": "@ai-sdk/openai-compatible", "name": "Libremodel", "options": { "baseURL": "https://api.libremodel.ai/v1", "apiKey": "{env:LIBREMODEL_API_KEY}" }, "models": { "kimi-k3.1-pro-uncensored": { "name": "Kimi K3.1 Pro Uncensored", "tool_call": true, "interleaved": { "field": "reasoning_content" }, "modalities": { "input": [ "text", "image" ], "output": [ "text" ] }, "limit": { "context": 1048576, "output": 131072 }, "cost": { "input": 3, "output": 9, "cache_read": 0.3 }, "variants": { "low": { "reasoningEffort": "low" }, "high": { "reasoningEffort": "high" }, "max": { "reasoningEffort": "max" } } }, "deepseek-v4.1-flash-1017-uncensored": { "name": "DeepSeek V4.1 Flash Uncensored", "tool_call": true, "interleaved": { "field": "reasoning_content" }, "modalities": { "input": [ "text", "image" ], "output": [ "text" ] }, "limit": { "context": 1048576, "output": 131072 }, "cost": { "input": 0.25, "output": 0.9, "cache_read": 0.04 }, "variants": { "off": { "reasoningEffort": "off" }, "low": { "reasoningEffort": "low" }, "high": { "reasoningEffort": "high" }, "max": { "reasoningEffort": "max" } } }, "glm-5.3-flash-uncensored": { "name": "GLM 5.3 Flash Uncensored", "tool_call": true, "interleaved": { "field": "reasoning_content" }, "modalities": { "input": [ "text", "image" ], "output": [ "text" ] }, "limit": { "context": 1048576, "output": 131072 }, "cost": { "input": 0.3, "output": 1.2, "cache_read": 0.06 }, "variants": { "low": { "reasoningEffort": "low" }, "high": { "reasoningEffort": "high" }, "max": { "reasoningEffort": "max" } } }, "kimi-k3.1-pro": { "name": "Kimi K3.1 Pro", "tool_call": true, "interleaved": { "field": "reasoning_content" }, "modalities": { "input": [ "text", "image" ], "output": [ "text" ] }, "limit": { "context": 1048576, "output": 131072 }, "cost": { "input": 1, "output": 6, "cache_read": 0.25 }, "variants": { "low": { "reasoningEffort": "low" }, "high": { "reasoningEffort": "high" }, "max": { "reasoningEffort": "max" } } }, "deepseek-v4.1-flash-1017": { "name": "DeepSeek V4.1 Flash", "tool_call": true, "interleaved": { "field": "reasoning_content" }, "modalities": { "input": [ "text", "image" ], "output": [ "text" ] }, "limit": { "context": 1048576, "output": 262144 }, "cost": { "input": 0.04, "output": 0.3, "cache_read": 0.004 }, "variants": { "off": { "reasoningEffort": "off" }, "low": { "reasoningEffort": "low" }, "high": { "reasoningEffort": "high" }, "max": { "reasoningEffort": "max" } } }, "minimax-m3.1-flash": { "name": "MiniMax M3.1 Flash", "tool_call": true, "interleaved": { "field": "reasoning_content" }, "modalities": { "input": [ "text", "image" ], "output": [ "text" ] }, "limit": { "context": 1048576, "output": 131072 }, "cost": { "input": 0.05, "output": 0.2, "cache_read": 0.005 }, "variants": { "low": { "reasoningEffort": "low" }, "high": { "reasoningEffort": "high" }, "max": { "reasoningEffort": "max" } } } } } }}New file: copy the whole file. Already have one: copy only the highlighted block and paste it in the same place of yours, keeping everything else.
The config reads the key from LIBREMODEL_API_KEY, so it never sits in the file. Use a key from your API keys page (it starts with sk-libremodel-) and open a new terminal.
export LIBREMODEL_API_KEY="sk-libremodel-..."opencode --model libremodel/deepseek-v4.1-flash-1017-uncensoredSend “Say ok.” to check it works. All 6 models are in the config, so you can switch any time.
from openai import OpenAI
client = OpenAI(
base_url="https://api.libremodel.ai/v1",
api_key="sk-libremodel-...",
)
response = client.chat.completions.create(
model="deepseek-v4.1-flash-1017-uncensored",
messages=[
{"role": "user", "content": "Hello, Libremodel"},
],
)
print(response.choices[0].message.content)import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://api.libremodel.ai/v1',
apiKey: process.env.LIBREMODEL_API_KEY,
})
const response = await client.chat.completions.create({
model: 'deepseek-v4.1-flash-1017-uncensored',
messages: [
{ role: 'user', content: 'Hello, Libremodel' },
],
})
console.log(response.choices[0].message.content)curl https://api.libremodel.ai/v1/chat/completions \
-H "Authorization: Bearer $LIBREMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash-1017-uncensored",
"messages": [{"role": "user", "content": "Hello, Libremodel"}]
}'Median over the last 24 hours.
Latency · Time to first token
3.06 s
Requests answered without errors over the last 24 hours.
100.00 %
The low-cost option for volume. Classification, synthetic data and everyday chat that should not stall on a refusal.
DeepSeek V4.1 Flash Uncensored costs $0.25 per million input tokens and $0.90 per million output tokens, with cached input at $0.04.
DeepSeek V4.1 Flash Uncensored has a context window of 1M tokens and writes up to 131K tokens per response.
Yes. Pass your functions in tools, as with the OpenAI SDK, and DeepSeek V4.1 Flash Uncensored answers with the calls to make. The tool calling guide has an example.
DeepSeek V4.1 Flash Uncensored takes text and images, and answers with text.
Yes. Set the reasoning effort to off, low, high, max. If the request doesn't set one, it uses high.
Create an account, add credit by card, and call it with your own key. You pay per token.
Cents per million tokens.
$ per 1M tokens
deepseek-v4.1-flash-1017The heavy lifter, without the refusals.
$ per 1M tokens
kimi-k3.1-pro-uncensoredGLM for a fraction of the price.
$ per 1M tokens
glm-5.3-flash-uncensoredThe flagship, as its makers shipped it.
$ per 1M tokens
kimi-k3.1-proAgents and code, for cents.
$ per 1M tokens
minimax-m3.1-flash