● DeepSeek · chat
DeepSeek V4.1 Flash 1017
DeepSeek's high-speed 1M-context chat and reasoning model for coding, agents, and long-document workflows.
Input / 1M tokens$0.30
Output / 1M tokens$1.20
Context1M
Example: 1M input + 1M output tokens = $1.50
Call DeepSeek V4.1 Flash 1017
OpenAI-compatible. Use any OpenAI SDK with the Keyra base URL and your key.
curl
curl https://api.keyra.ai/v1/chat/completions \
-H "Authorization: Bearer $KEYRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "deepseek/deepseek-v4.1-flash-1017", "messages": [{"role": "user", "content": "Hello"}]}'Python · openai SDK
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.keyra.ai/v1", api_key=os.environ["KEYRA_API_KEY"])
reply = client.chat.completions.create(
model="deepseek/deepseek-v4.1-flash-1017",
messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)Related models
| Model | Creator | Type | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|---|
| Gemini 3.8 Flash | chat | 1M | $0.375 | $1.875 | |
| MiniMax M3.1 Flash | MiniMax | chat | 1M | $0.15 | $0.60 |
| DeepSeek V4 Flash 0731 | DeepSeek | chat | 1M | $0.11 | $0.33 |