Endpoint coverage
Exposes 2 public endpoint(s): chat_completion, message.
DeepSeek documents the official direct API as DeepSeek-V4.1-Flash-1017, updated on 2026-10-17. Third-party service options may use older versions; their 1017 status is unverified. DeepSeek officially lists image input, a 1M-token context and up to 384K output tokens for V4.1 Flash. On RunAPI, use deepseek-flash; image input and these context and output limits have not been tested across all service options.
# Base URL
https://runapi.ai
# Endpoints
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages
POST /v1beta/models/deepseek-flash:generateContent
POST /v1beta/models/deepseek-flash:streamGenerateContent
curl https://runapi.ai/v1/chat/completions \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-flash",
"messages": [
{
"role": "user",
"content": "Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."
}
]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://runapi.ai/v1",
api_key="your-runapi-key"
)
response = client.chat.completions.create(
model="deepseek-flash",
messages=[{"role": "user", "content": "Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."}]
)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://runapi.ai/v1",
apiKey: "your-runapi-key"
});
const response = await client.chat.completions.create({
model: "deepseek-flash",
messages: [{ role: "user", content: "Refactor this Python module for readability, explain each change, then add unit tests for the edge cases." }]
});
4 versions available
Full model reference: endpoints, parameters and pricing →
DeepSeek put V4.1 Flash on its API on September 10, 2026. It is the smallest model in a new architecture family: a 552B-parameter Mixture-of-Experts built as a causal encoder-decoder, with 8B parameters active while it reads input and 16B while it writes output. V4 Flash kept the V4 Preview architecture through its July update, and image input needed a separate experimental model. DeepSeek documents the official direct API as DeepSeek-V4.1-Flash-1017, updated on 2026-10-17. Third-party service options may use older versions; their 1017 status is unverified. DeepSeek officially lists image input, a 1M-token context and up to 384K output tokens for V4.1 Flash. On RunAPI, use deepseek-flash; image input and these context and output limits have not been tested across all service options.
The KV cache also got smaller. DeepSeek says it needs a quarter of the HBM and an eighth of the SSD storage of the previous generation, and links that to lower cache-hit charges in agent workloads. DeepSeek credits new pre-training methods and larger-scale RL post-training for benchmark scores above its own V4-Pro.
The release kept the old model name. DeepSeek serves V4.1 Flash as deepseek-flash, an ID that moves to each new Flash release, and there is no deepseek-v4.1-flash ID. RunAPI uses the same ID on its OpenAI-compatible and Anthropic-compatible endpoints.
Pick any model and generate in seconds.
| Provider | DeepSeek |
| Model ID | deepseek-flash |
| Modality | Text |
| Task types | Synchronous |
| API endpoint | /v1/chat/completions |
| /v1/responses |
| /v1/messages | |
| /v1beta/models/deepseek-flash:generateContent | |
| /v1beta/models/deepseek-flash:streamGenerateContent | |
| Billing unit | 1K tokens |
| Catalog status | Operational |
Sign up for free and create an API key for deepseek-flash from the dashboard.
POST to /v1/chat/completions with the deepseek-flash model slug and your parameters.
Read the completed deepseek-flash response directly from the endpoint.
Exposes 2 public endpoint(s): chat_completion, message.
Metered by 1K tokens with no subscription requirement.
No request parameters are published for this endpoint.
Answer customer questions from a private knowledge base, reducing ticket volume.
Draft contract summaries and flag key clauses for attorney review.
Auto-generate unit tests, code reviews, and refactoring suggestions in CI.
Verified customer feedback is not available for this model yet.
It is a new model. DeepSeek built it on a new causal encoder-decoder architecture with 552B total parameters, then trained it with new pre-training methods and larger-scale RL. The July 2026 V4 Flash update had kept the earlier architecture and was only post-trained again.
On DeepSeek's published numbers, Terminal-Bench 2.1 went from 82.7 to 90.6, CyberGym from 76.7 to 88.1, and Agents' Last Exam from 25.2 to 31.8. All three figures are DeepSeek's own, taken from its change log.
DeepSeek documents the official direct API as DeepSeek-V4.1-Flash-1017, updated on 2026-10-17. Third-party service options may use older versions; their 1017 status is unverified. DeepSeek officially lists image input, a 1M-token context and up to 384K output tokens for V4.1 Flash. On RunAPI, use deepseek-flash; image input and these context and output limits have not been tested across all service options.
Yes. DeepSeek's model table for V4.1 Flash marks tool calls and JSON output as supported.
Use deepseek-flash for new code. DeepSeek documents that its official direct API serves the retired names deepseek-v4-flash and deepseek-v4-flash-vision-exp with DeepSeek-V4.1-Flash-1017 at the Flash price. Third-party mappings to 1017 remain unconfirmed.
Pass the model ID shown in the quickstart.
Per-key rate limits scale with your usage tier. The pricing page shows current limits. If you need higher throughput, contact support to discuss tier upgrades.
Yes. Variant is a parameter in the request. Switch by changing the model ID — no code changes, no re-authentication, no separate billing setup. All variants share the same API key and request shape.
Where streaming is available, RunAPI streams end-to-end. LLM models support token-level streaming. Media models use async task polling or webhook callbacks for result delivery.
Open an issue on the public GitHub repo or email support at [email protected]. Include the task ID and model ID so the team can investigate the specific generation.
No. Your RunAPI API key is enough to access this variant and every other model in the catalog. You do not need accounts with the underlying provider.
We're here to help with enterprise setup, integrations, and technical questions.
Contact Us