01.AIProprietary·16K context·— params
Yi Lightning01-ai/yi-lightning
Yi Lightning is 01.AI's cost-efficient flagship — consistently top-5 on LMArena Chinese leaderboards at a fraction of GPT-4o pricing. Fast inference makes it a strong candidate for chat agents.
Cheapest blended:$0.14 / 1M tokenson 01.AI · 1 provider listed
Pricing across providers
Sort by:
| Provider | Input /1M | Output /1M | Blended /1M | Latency p50 | Format | Freshness | Action |
|---|---|---|---|---|---|---|---|
| 01.AI yi-lightning | $0.14 | $0.14 | $0.14 | — | OpenAI-compatible | Verified 2d ago | Try → |
Affiliate disclosure: We may earn a commission from qualified signups. Pricing independence is enforced at the data layer — see our Editorial Independence Policy.
Works with
Point any of these clients at a hosting's base URL — they all speak at least one of this model's endpoint protocols (OPENAI_COMPATIBLE).
Capabilities
- chat
- reasoning
Languages: en, zh
Code samples
Example using 01.AI — the cheapest hosting for this model as of last verification. Swap base_url and model to use a different provider from the matrix above.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.example.com/v1",
)
response = client.chat.completions.create(
model="yi-lightning",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
Technical specs
- Context
- 16K
- Max output
- 4K
- Parameters
- —
- Release
- —
- Training cutoff
- —
- License
- —
Similar models
Compare with
- Yi Lightning vs DeepSeek Chat V3.1Comparison planned — not yet published
- Yi Lightning vs DeepSeek R1Comparison planned — not yet published
- Yi Lightning vs DeepSeek V3Comparison planned — not yet published
Frequently asked
How much does Yi Lightning cost?+−
The cheapest public hosting is $0.14 per 1M blended tokens on 01.AI. 1 total providers are listed above with per-input / per-output / cached pricing.
Is Yi Lightning open-source?+−
No. Yi Lightning is a proprietary model from 01.AI. Access is only via API; weights are not published.
Is Yi Lightning OpenAI-compatible?+−
Most listed hostings expose an OpenAI-compatible API, so you can point an existing
openai SDK client at the Provider's base_url and use the Provider's model name. See the Code Samples above for a copy-pasteable example.What's the maximum context window for Yi Lightning?+−
The model supports up to 16,384 tokens of context (input + output). Some hosted versions may impose a smaller limit — check the "Context" column in the pricing matrix for each provider.