01.AI's flagship large language model with enhanced Mixture-of-Experts architecture. Ranked 6th on Chatbot Arena with particularly strong results in Chinese, Math, Coding, and Hard Prompts categories. Features advanced expert segmentation and optimized KV-caching.
131K tokens
1
available
Cheapest
01.AI
$1.98/1M tokens
01.AI
Sorted by total cost (input + output per 1M tokens). Click a row to view provider details.
| Provider | Pricing (per 1M) | Rate Limits | Regions | Health | Latency |
|---|---|---|---|---|---|
In: $0.99Out: $0.99 | 200 RPM / 800K TPM | us-east-1global | Healthy | 0ms |
Use this model via 01.AI with an OpenAI-compatible SDK.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.01-ai.com/v1",
apiKey: process.env.01_AI_API_KEY,
});
const response = await client.chat.completions.create({
model: "yi-lightning",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);Using 01.AI API • OpenAI-compatible SDK