● DeepSeek · chat

DeepSeek V4.1 Flash

DeepSeek V4.1 Flash — fast general and reasoning model.

Input / 1M tokens$0.075
Output / 1M tokens$0.30
Context1M

Example: 1M input + 1M output tokens = $0.375

Call DeepSeek V4.1 Flash

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", "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",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)

Related models

ModelCreatorTypeContextInput / 1MOutput / 1M
GLM 5.3 FlashZ.aichat1M$0.105$0.35
DeepSeek V4 Flash 0731DeepSeekchat1M$0.11$0.33
MiniMax M3.1 FlashMiniMaxchat1M$0.15$0.60