'Miễn phí' thường nghĩa gì — và nên nghĩa gì
Tìm API LLM miễn phí bạn chủ yếu thấy hai thứ: số dư trial hết hạn trong một tuần, hoặc một mô hình nhỏ không đường tới thứ lớn hơn. Không cái nào cho bạn thực sự dựng.
Free tier đáng dùng có ba tính chất: mô hình thật bạn sẽ ship, API chuẩn nên code không phải đồ bỏ, và cách giữ chi phí ở zero khi usage lớn thay vì vách đá cuối trial.
Ba cách bền để ở zero
Cách tin cậy nhất kết hợp free tier hosted với quota nhà cung cấp của bạn. Bạn có thể trộn cả ba:
- Tầng mô hình miễn phí — route tới mô hình free-tier với hạn mức request ngày, không cần chi.
- Credit khởi đầu — một credit nhỏ một lần (AnyRouter cho mỗi tài khoản mới $2, không thẻ) dùng được trên toàn catalog.
- Mang key của bạn — nếu đã trả nhà cung cấp trực tiếp, route trên key của bạn qua gateway markup $0 và chỉ trả đúng nhà cung cấp tính.
Điểm thứ ba người ta hay bỏ: nhiều nhà cung cấp (ví dụ Google AI Studio cho Gemini) có free tier rộng của riêng họ. Route những key đó qua gateway cho billing thống nhất, log, và failover trên một upstream miễn phí.
Một endpoint, tương thích OpenAI
API miễn phí chỉ hữu ích nếu dễ gọi. Endpoint tương thích OpenAI nghĩa là mọi client sẵn có chạy — bạn chỉ đặt base URL và một key.
curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer sk-ar-v1-..." \
-H "Content-Type: application/json" \
-d '{
"model": "anyrouter/free",
"messages": [{"role": "user", "content": "Hello from a free LLM API"}]
}'Đổi anyrouter/free sang bất kỳ id provider/model nào trong 150+ khi muốn mô hình lớn hơn — credit khởi đầu hoặc key của bạn lo phần đó, không gì trong code đổi.
AnyRouter cho bạn API LLM miễn phí: tầng mô hình miễn phí, $2 credit khởi đầu, và BYOK markup $0 sau một endpoint tương thích OpenAI.
Cài miễn phíBài liên quan
Free models, just $2 a month
AnyRouter's Go plan is $2/mo: a $4 monthly credit plus free-model access. Or go free three ways — donate a provider key and Go costs nothing, use the anyrouter/free daily tier, or run models on your own device via local relay.
The top website for free LLM models — and how they're actually free
AnyRouter serves a real free LLM API across 170+ catalog models. Here's what people actually route to for free, and the three honest mechanisms that make it free: the anyrouter/free daily tier, the donated shared pool, and self-hosted on-device models.
Use AnyRouter with the Vercel AI SDK
@anyr/ai-sdk-provider wraps the AnyRouter gateway as a standard Vercel AI SDK provider. Call createAnyRouter(), pass a provider/model id, and generateText, streamText, and generateObject work unchanged — switching models is a one-string edit.