Bạn đang dựng gì
build.nvidia.com của NVIDIA cho mỗi developer một API key miễn phí: pool credit inference và rate limit theo phút khá rộng — không thẻ. Key đó tới các model NVIDIA host như họ Nemotron qua API tương thích OpenAI.
Đừng nhét key vào từng tool tay: gắn một lần vào AnyRouter như BYOK. Sau đó gọi mọi model NVIDIA bằng một key AnyRouter, một endpoint, kèm log, analytics và failover. BYOK markup $0 — bạn không trả thêm ngoài miễn phí NVIDIA đã cover. Tổng setup: khoảng năm phút.
1. Lấy key miễn phí từ NVIDIA
Đăng nhập build.nvidia.com — NVIDIA Developer Program miễn phí, không thẻ. Mở Settings → API Keys (hoặc Get API Key trên model trong catalog) rồi Generate API Key.
NVIDIA mint key cá nhân tiền tố nvapi- dùng cho cả catalog. Key đầy đủ chỉ hiện một lần, copy ngay. Lúc viết, free tier có 1,000 inference credit (xin thêm được) và 40 request/phút — xem dashboard vì NVIDIA điều chỉnh.
Lấy nvapi- miễn phí từ console NVIDIA.
Mở build.nvidia.com2. Thêm BYOK trên AnyRouter
Trong dashboard, mở BYOK & Key Balancing tại /byok, chọn NVIDIA, dán nvapi-, lưu. Key mã hóa lúc nghỉ, UI chỉ ghi — sau khi lưu bạn chỉ thấy identifier đã che, không còn raw key.
Gắn nvapi- trong vài click.
Kết nối key3. Gọi model NVIDIA qua một endpoint
Mint key AnyRouter tại /keys (bắt đầu sk-ar-). Đó là key duy nhất code giữ — AnyRouter map request sang NVIDIA token phía sau, app không đụng nvapi-. Chỉ client tương thích OpenAI vào https://anyrouter.dev/api/v1 và chọn model NVIDIA host:
curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nvidia/nemotron-3-ultra-550b-a55b",
"messages": [{ "role": "user", "content": "Say hi in one line." }]
}'Vì tương thích OpenAI, SDK chính thức không đổi — chỉ đổi base URL và key:
from openai import OpenAI
client = OpenAI(
base_url="https://anyrouter.dev/api/v1",
api_key="sk-ar-...", # your AnyRouter key
)
resp = client.chat.completions.create(
model="nvidia/nemotron-3-ultra-550b-a55b",
messages=[{"role": "user", "content": "Say hi in one line."}],
)
print(resp.choices[0].message.content)4. Chỉ tool sẵn có vào đó
Thứ gì đọc base URL từ môi trường chỉ cần một dòng. AnyRouter nhận cả tên biến OpenAI và Anthropic, nên cùng endpoint chạy Codex, Claude Code, Cursor, hoặc loop agent của bạn:
export OPENAI_BASE_URL="https://anyrouter.dev/api/v1"
export OPENAI_API_KEY="sk-ar-..."
# Anthropic-style clients (e.g. Claude Code) use the same gateway:
export ANTHROPIC_BASE_URL="https://anyrouter.dev/api/v1"
export ANTHROPIC_API_KEY="sk-ar-..."Không đổi code — tool nói với AnyRouter, AnyRouter nói với NVIDIA bằng key miễn phí của bạn.
5. Tùy chọn: góp key, nhận credit lại
Quota NVIDIA thường để không. Bật Donate to pool: mỗi request pool đi qua key cộng tối đa 8% chi phí danh nghĩa vào số dư chờ đổi credit (5% trên Go, 8% trên Pro/Max) — góp một key còn chạy cũng mở Go miễn phí khi key còn active. Bạn giữ quyền gọi trước; pool chỉ mượn dung lượng dư, tắt ngay được.
Xem góp key nhàn kiếm credit thế nào.
Đọc walkthrough poolBài liên quan
BYOK: bring your own keys to every provider
Attach the OpenAI, Anthropic, Google, and 60+ other provider keys you already pay for, route them through one OpenAI-compatible URL at $0 markup, cap spend per key, and — if you donate idle quota to the shared pool — earn up to 8% back and unlock Go for free while a donated key stays active.
Donate an idle provider key, earn credits back: a walkthrough
Hold a provider key with headroom to spare? Donate it to the shared pool in two clicks. Every token the pool serves through your key earns pending credits — up to 8% of its notional cost, tiered by plan — claim them anytime or turn on auto-claim. Here's the step-by-step.
Gửi request đầu trong hai phút
Bắt đầu miễn phí với key của bạn, hoặc nạp rồi trả theo token. Go: $4 credit/tháng — $2/tháng, hoặc miễn phí khi góp một provider key.
Bắt đầu miễn phí