01.AI Lightweight

Yi Lightning

Lightning Fast. Lightweight Cost.

Real-time speed for production-scale AI applications.

Pricing

Metric Official Price tokencnn.com Price
Input ¥0.30 ¥0.45
Output ¥0.60 ¥0.90

* tokencnn.com applies a 1.5x multiplier on official pricing for gateway and aggregation services.

API Reference

cURL
Python
curl -X POST https://api.tokencnn.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "yi-lightning",
    "messages": [{"role": "user", "content": "Give 5 ideas for a weekend coding project"}],
    "temperature": 0.8
  }'
import openai

client = openai.OpenAI(
    base_url="https://api.tokencnn.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="yi-lightning",
    messages=[
        {"role": "user", "content": "Best practices for Python error handling?"}
    ],
    temperature=0.3,
    max_tokens=1024
)

print(response.choices[0].message.content)

Model Capabilities

🚀Blazing fast inference - among the lowest latency models available
Minimal cost - perfect for high-volume, budget-sensitive deployments
🧠Strong general-purpose capabilities for everyday AI tasks
🔧Optimized for real-time applications like chatbots and live assistants
📊Lightweight architecture with efficient resource utilization
🎯OpenAI-compatible API for drop-in integration

Ready to Build with Yi Lightning?

Get your API key in minutes and start integrating China's best AI models.

Get API Key →