DeepSeek: DeepSeek V4 Flash — AI Model

Created by DeepSeek Verified
This model is no longer free. See free alternatives.
openrouter/deepseek-deepseek-v4-flash
🛠️ Function Calling JSON Mode chat

What is DeepSeek: DeepSeek V4 Flash?

DeepSeek V4 Flash is a Mixture-of-Experts model with 284B total parameters (13B active per token), available free on OpenRouter. It features a 1M context window with hybrid attention for efficient long-context processing. Supports configurable reasoning effort (high/xhigh levels). Strong performance on coding, reasoning, and agent workflows. Model weights available on Hugging Face. Text-only. OpenAI-compatible via OpenRouter. Free tier: 200 RPD (or 1,000 with $10 lifetime credit).

Model ID
deepseek/deepseek-v4-flash
Base URL
https://openrouter.ai/api/v1

DeepSeek: DeepSeek V4 Flash API Code Example

Paste your API key and run. See the config generator for Claude Code, Cursor, and more tools.

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="deepseek/deepseek-v4-flash",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://openrouter.ai/api/v1",
  apiKey: "YOUR_API_KEY",
});

const completion = await openai.chat.completions.create({
  model: "deepseek/deepseek-v4-flash",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "deepseek/deepseek-v4-flash",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Other Free Models from OpenRouter

More About OpenRouter

How to get an API key, rate limits, platform limitations, and tool configuration — everything you need to set up OpenRouter as a free LLM API backend.

View OpenRouter full guide →