01.AIPaidOperational
Yi Lightning
API model name: yi-lightning
Yi Lightning is 01.AI's chat model, served on the Api.Airforce unified API. It is priced at $0.16 per million input tokens and $0.16 per million output tokens. That is below the provider's $0.15 official input rate. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Api.Airforce price vs. the provider's official rate.
Specifications
- Provider
- 01.AI
- Type
- chat model
What is Yi Lightning used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
Yi Lightning vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| Yi Lightning | — | — | $0.16 | $0.16 |
| Yi Vision V2 | — | — | $0.28 | $0.82 |
| Mistral Small 3.1 24b Instruct | — | — | Free | Free |
| Mistral Small Latest | — | — | Free | Free |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
Yi Vision V201.AI · $0.28 / 1MMistral Small 3.1 24b InstructMistral AI · FreeMistral Small LatestMistral AI · FreeMistral TinyMistral AI · FreeMistral Tiny LatestMistral AI · FreeMistral Vibe Cli FastMistral AI · FreeMistral Vibe Cli LatestMistral AI · FreeMistral Vibe Cli With ToolsMistral AI · FreeMj UploadMidjourney · $5.49 / 1MMoonshot V1 128kMoonshot AI · $4.70 / 1MMoonshot V1 128k VisionMoonshot AI · $2.60 / 1MMoonshot V1 32kMoonshot AI · $1.88 / 1M
Yi Lightning — frequently asked questions
- How much does Yi Lightning cost?
- Yi Lightning is billed pay-as-you-go at $0.16 per 1M input tokens and $0.16 per 1M output tokens. There is no subscription — you only pay for what you use.
- What can Yi Lightning do?
- Yi Lightning is 01.AI's chat model, accessible through the Api.Airforce API.
- Is Yi Lightning free to use?
- Yi Lightning is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Yi Lightning via the API?
- Yi Lightning is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID yi-lightning with your Api.Airforce API key.
- Who makes Yi Lightning?
- Yi Lightning is 01.AI's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use Yi Lightning via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass yi-lightning as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "yi-lightning",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="yi-lightning",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "yi-lightning",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);