API for the model deepseek-ai/DeepSeek-V4.1-Flash-1017:river at Hugging Face Inference, $0.12 / $0.48 per million tokens, context 1,048,576 tokens. curl, Python and JavaScript samples, live testing.
deepseek-ai/DeepSeek-V4.1-Flash-1017 served by River through the Hugging Face router.
- Type
- Model
- Provider
- Hugging Face Inference
- Host
- River
- Model ID
deepseek-ai/DeepSeek-V4.1-Flash-1017:river- Pricing
- Paid
- Input / output price
- $0.12 / $0.48 per million tokens
- Keyless access
- No
- Key variable
HF_TOKEN- Base URL (OpenAI-compatible)
https://router.huggingface.co/v1- Context
- 1,048,576 tokens
- Inputs
- Text, Image
- Features
- Tool calling, JSON output
- Response time
- First token 561 ms · 137 tokens/s · uptime 100%
- Developer rating
- Not rated yet
- Documentation
- https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017
Code samples
cURL
curl https://router.huggingface.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"deepseek-ai/DeepSeek-V4.1-Flash-1017:river","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}]}'Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V4.1-Flash-1017:river",
messages=[{"role": "user", "content": "Hello, introduce yourself in one sentence."}],
)
print(r.choices[0].message.content)JavaScript
// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
model: 'deepseek-ai/DeepSeek-V4.1-Flash-1017:river',
messages: [{ role: 'user', content: 'Hello, introduce yourself in one sentence.' }],
})
console.log(r.choices[0].message.content)
Generate the integration code →
Popular searches
Frequently asked questions
Is the DeepSeek-V4.1-Flash-1017 · River API free?
No: DeepSeek-V4.1-Flash-1017 · River is a paid API ($0.12 / $0.48 per million tokens).
How do I call DeepSeek-V4.1-Flash-1017 · River from my code?
DeepSeek-V4.1-Flash-1017 · River exposes an OpenAI-compatible API at https://router.huggingface.co/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: deepseek-ai/DeepSeek-V4.1-Flash-1017:river. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.
What is the context window of DeepSeek-V4.1-Flash-1017 · River?
DeepSeek-V4.1-Flash-1017 · River accepts up to 1,048,576 tokens of context (prompt and history).
What are the alternatives to DeepSeek-V4.1-Flash-1017 · River?
Similar APIs listed in the catalog: DeepSeek-V4.1-Flash-1017 · Cloudflare, DeepSeek-V4.1-Flash-1017 · Cohere, DeepSeek-V4.1-Flash-1017 · CoreWeave, DeepSeek-V4.1-Flash-1017 · Crusoe, DeepSeek-V4.1-Flash-1017 · DeepInfra.
Alternatives
- DeepSeek-V4.1-Flash-1017 · Cloudflare — Paid
- DeepSeek-V4.1-Flash-1017 · Cohere — Paid
- DeepSeek-V4.1-Flash-1017 · CoreWeave — Paid
- DeepSeek-V4.1-Flash-1017 · Crusoe — Paid
- DeepSeek-V4.1-Flash-1017 · DeepInfra — Paid
- DeepSeek-V4.1-Flash-1017 · DigitalOcean — Paid
- DeepSeek-V4.1-Flash-1017 · Doubleword — Paid
- DeepSeek-V4.1-Flash-1017 · Fireworks — Paid
- DeepSeek-V4.1-Flash-1017 · Inceptron — Paid
- DeepSeek-V4.1-Flash-1017 · InferenceNet — Paid
- DeepSeek-V4.1-Flash-1017 · Krea — Paid
- DeepSeek-V4.1-Flash-1017 · Makora — Paid