deepseek-flash — price, context and performance

deepseek-flash is a DeepSeek model available on AirAI. Input $0.30, output $1.20 per 1M tokens.

Overview

VendorDeepSeek
API formatsopenai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search
Billing formulap * 0.3 + cr * 0.006 + c * 1.2) : tier("off_peak", p * 0.15 + cr * 0.003 + c * 0.6

Pricing

PlanMultiplierInputOutputCached inputNote
Base price1×$0.30$1.20$0.006
Eco0.3×$0.09$0.36$0.0018Standard — standard reasoning, moderate stability.
default0.6×$0.18$0.72$0.0036Standard — standard reasoning, moderate stability.
Plus1×$0.30$1.20$0.006High — strong reasoning, stable.
Pro2×$0.60$2.40$0.01Enterprise — full reasoning, high stability.

Only groups enabled for this model are listed.

Performance

API endpointhttps://api.airai.cc/v1
OpenAI-compatibleOpenAI-compatible

FAQ

How much does deepseek-flash cost?
Input $0.30, output $1.20 per 1M tokens.
What is the context window of deepseek-flash?
deepseek-flash has a not specified context window: the combined token limit for input and output in a single request.
How do I call deepseek-flash from code?
Point base_url to https://api.airai.cc/v1 and set model to deepseek-flash. The API is fully OpenAI compatible.
Why does deepseek-flash return error 429?
429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Model comparison

ModelVendorInputOutputContext
deepseek-flashDeepSeek$0.30$1.20not specified
deepseek-v3.2DeepSeek$0.18$0.35not specified
deepseek-v4-flashDeepSeek$0.30$1.201M
deepseek-v4.1-flashDeepSeek$0.30$1.20not specified
deepseek-v3.1DeepSeek$0.58$1.74not specified
deepseek-v3.2-expDeepSeek$0.29$0.43not specified
deepseek-flash-freeDeepSeekPrice not published—not specified
deepseek-v4-flash-freeDeepSeekPrice not published—not specified
deepseek-r1DeepSeek$0.40$1.70not specified
deepseek-v3-1DeepSeek$0.57$1.72not specified
deepseek-v4-flash-0731DeepSeek$0.06$0.17not specified
deepseek-v4-pro-260425DeepSeekPrice not published—not specified
deepseek-v4-proDeepSeek$1.32$3.961M

Troubleshooting

429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Common causes

  • Too many concurrent requests
  • Quota of the current plan exhausted
  • Retrying immediately without backoff

How to fix

  • Limit concurrency and retry with exponential backoff
  • Switch to a plan with a larger quota
  • Cache repeated requests

How to connect

curl https://api.airai.cc/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-flash",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="<YOUR_API_KEY>",
    base_url="https://api.airai.cc/v1"
)

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

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

const response = await client.chat.completions.create({
  model: "deepseek-flash",
  messages: [{ role: "user", content: "Hello" }]
});
console.log(response.choices[0].message.content);
const OpenAI = require("openai");

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

client.chat.completions.create({
  model: "deepseek-flash",
  messages: [{ role: "user", content: "Hello" }]
}).then((r) => console.log(r.choices[0].message.content));

Replace <YOUR_API_KEY> with the API Key from your token settings.

Compatible endpoints

openaiopenai-responseopenai-response-compactanthropicgeminiopenai-alpha-search

Gemini SDK · TypeScript

import { GoogleGenerativeAI } from "@google/generative-ai";

const genAI = new GoogleGenerativeAI("<YOUR_API_KEY>");
const model = genAI.getGenerativeModel({ model: "deepseek-flash" });

const result = await model.generateContent(
  "Explain quantum entanglement in one paragraph."
);
console.log(result.response.text());

Authentication

All requests must include the Authorization: Bearer <TOKEN> header. Anthropic-format endpoints also accept the x-api-key header. Generate your API Key on the Tokens page, where you can scope access by model, group, IP, and rate limits.

Supported parameters

ParameterTypeDefaultRangeDescription
temperaturefloat10–2Sampling temperature; lower is more stable
top_pfloat10–1Nucleus sampling cumulative probability
max_tokensinteger——Maximum tokens in the response
frequency_penaltyfloat0−2–2Penalizes repeated high-frequency tokens
presence_penaltyfloat0−2–2Encourages introducing new topics
stopstring[]null≤ 4Up to 4 strings that stop generation
seedintegernull—Seed for more reproducible sampling
ninteger1—Number of candidate completions
streambooleanfalse—Stream tokens via SSE
response_formatobject——Force JSON output or schema-conformant results
toolsarray——Function/tool declarations the model can call
tool_choicestring | objectauto—Tool selection strategy or specific tool name
logprobsbooleanfalse—Return log probabilities for each token
top_logprobsintegernull0–20Number of top probabilities returned per token
logit_biasmap——Logit bias mapping per token
userstring——End-user identifier for risk auditing

Rate limits

TierRPMTPMRPD
Eco990398K20K
Test980393K20K

Data updated: 2026-10-10 15:55

Technical SupportLive Support
Back to Top