Đăng ký & Nạp tiền
Tạo tài khoản trên Apinhanh, chọn gói phù hợp hoặc nạp credit. Thanh toán qua VietQR - chuyển khoản ngân hàng nội địa. API key được cấp ngay sau khi thanh toán thành công.
Apinhanh là nền tảng API gateway cung cấp quyền truy cập đến các mô hình AI hàng đầu như Claude, GPT, Gemini với mức giá tiết kiệm và tích hợp nhanh chóng. Tài liệu này hướng dẫn bạn từ cài đặt đến sử dụng API.
Chỉ cần thay Base URL và API key, không cần thay đổi code
Hỗ trợ đầy đủ OpenAI và Anthropic format
Chuyển khoản ngân hàng nội địa, không cần thẻ quốc tế
# OpenAI compatible (Cursor, Cline, Aider...)
https://api.openai.com/v1 → https://apikey-landing.vercel.app/v1
# Anthropic compatible (Claude Code, Amp Code...)
https://api.anthropic.com → https://apikey-landing.vercel.appThay vì đăng ký và quản lý API key từ nhiều provider (OpenAI, Anthropic, Google...), Apinhanh cung cấp một API key duy nhất để truy cập tất cả model. Tiết kiệm thời gian quản lý và đơn giản hóa việc tích hợp.
Apinhanh hoạt động như một proxy hoàn toàn tương thích. Bạn không cần thay đổi bất kỳ dòng code nào ngoài Base URL và API key. Toàn bộ format request/response đều được hỗ trợ nguyên bản:
Apinhanh đã được kiểm tra và hoạt động tốt với các coding agent phổ biến:
Chỉ cần 3 bước đơn giản để bắt đầu sử dụng Apinhanh:
Tạo tài khoản trên Apinhanh, chọn gói phù hợp hoặc nạp credit. Thanh toán qua VietQR - chuyển khoản ngân hàng nội địa. API key được cấp ngay sau khi thanh toán thành công.
Thay Base URL và API key trong tool bạn đang dùng (Cursor, Claude Code, Cline...). Xem hướng dẫn chi tiết cho từng tool ở phần bên dưới.
Gửi request đầu tiên và bắt đầu code với AI. Theo dõi usage và chi phí trên Dashboard.
Hướng dẫn cấu hình API key, Base URL và gửi request đầu tiên. Từ đăng ký đến sử dụng chỉ mất vài phút.
Đăng ký tài khoản, chọn gói phù hợp và thanh toán. API key có tiền tố sk- sẽ hiển thị ngay trên Dashboard sau khi thanh toán thành công.
Tùy vào tool đang dùng, chọn endpoint phù hợp:
# OpenAI compatible — Cursor, Codex CLI, Cline, Continue, Aider
https://apikey-landing.vercel.app/v1
# Anthropic compatible — Claude Code, Amp Code
https://apikey-landing.vercel.appKiểm tra kết nối bằng cURL:
curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-5",
"messages": [{"role": "user", "content": "Hello!"}]
}'API key được gửi trong header của mỗi request. Apinhanh hỗ trợ hai format:
Authorization: Bearer sk-xxxxx
# hoặc
X-API-Key: sk-xxxxxsk-. Nếu thiếu tiền tố này, kiểm tra lại trên Dashboard.Apinhanh cung cấp hai endpoint tương thích với chuẩn API phổ biến:
| Tương thích | Base URL | Công cụ hỗ trợ |
|---|---|---|
| OpenAI | https://apikey-landing.vercel.app/v1 | Cursor, Codex CLI, Cline, Continue, Aider |
| Anthropic | https://apikey-landing.vercel.app | Claude Code, Amp Code |
| Method | Endpoint | Mô tả |
|---|---|---|
POST | /v1/chat/completions | OpenAI Chat Completions |
POST | /v1/responses | OpenAI Responses API (Codex CLI) |
POST | /v1/messages | Anthropic Messages API |
GET | /v1/models | Danh sách models |
GET | /health | Health check |
Claude Code là CLI agent chính thức của Anthropic. Có 2 cách cấu hình Apinhanh.
Chỉnh ~/.claude/settings.json (tạo mới nếu chưa có). Áp dụng vĩnh viễn, không cần set lại mỗi lần mở terminal.
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-your-key-here",
"ANTHROPIC_BASE_URL": "https://apikey-landing.vercel.app",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "ap-gemini-3.1-pro",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "ap-gemini-3.1-pro",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "ap-gemini-3.1-pro",
"API_TIMEOUT_MS": "3000000"
},
"disableLoginPrompt": true
}C:\\Users\\TênBạn\\.claude\\settings.json — không tạo thêm thư mục .claude bên trong .claude. Sau khi lưu file, đóng hết terminal và mở lại.| Hệ điều hành | Đường dẫn file |
|---|---|
| macOS / Linux | ~/.claude/settings.json |
| Windows | %USERPROFILE%\.claude\settings.json |
Khi dùng custom Base URL, ưu tiên ANTHROPIC_AUTH_TOKEN (Bearer). Không dùng ANTHROPIC_API_KEY thay thế nếu gặp lỗi 401.
export ANTHROPIC_BASE_URL="https://apikey-landing.vercel.app"
export ANTHROPIC_AUTH_TOKEN="sk-your-key-here"
claude$env:ANTHROPIC_BASE_URL = "https://apikey-landing.vercel.app"
$env:ANTHROPIC_AUTH_TOKEN = "sk-your-key-here"
claudeLỗi này do Claude Code chưa đọc được API key khi bạn trỏ ANTHROPIC_BASE_URL sang Apinhanh — request chưa tới server của chúng tôi.
%USERPROFILE%\\.claude\\settings.json (Windows) hoặc ~/.claude/settings.json (macOS/Linux).env phải có ANTHROPIC_AUTH_TOKEN = full key sk-ap_... (~39 ký tự). Prefix trên Dashboard không dùng được.ANTHROPIC_BASE_URL = https://apikey-landing.vercel.app (không cần thêm /v1).claude /status — phải thấy Auth token.ANTHROPIC_API_KEY cũ trong Windows Environment Variables.Cursor dùng chuẩn OpenAI. Claude phải thêm model ap-claude-* — nếu dùngclaude-* thuần, Cursor sẽ gọi Anthropic built-in và báo model unavailable.
sk-...)https://apikey-landing.vercel.app/v1ap-claude-opus-4-8ap-claude-opus-4-7ap-claude-sonnet-4-5ap-grok-4.5OpenAI API Key: sk-... (copy từ Dashboard)
Override Base URL: https://apikey-landing.vercel.app/v1
# Claude (Kiro) — BẮT BUỘC prefix ap-
ap-claude-opus-4-8
ap-claude-opus-4-7
ap-claude-sonnet-4-5
ap-claude-haiku-4-5
# Grok
ap-grok-4.5/v1; dùng JWT thay vì sk-; model ap-claude-opus-4.7 (dấu chấm) — hãy đổi thành ap-claude-opus-4-7. Không dùng claude-opus-4 / grok-4.5 vì Cursor trùng model built-in. Agent mode gọi /v1/responses — Apinhanh đã hỗ trợ.Codex CLI (OpenAI) dùng Responses API. Cấu hình trong ~/.codex/config.toml:
model = "claude-sonnet-4-5"
model_provider = "apinhanh"
[model_providers.apinhanh]
name = "Apinhanh"
base_url = "https://apikey-landing.vercel.app/v1"
env_key = "MUAAPIKEY_API_KEY"
wire_api = "responses"
requires_openai_auth = falseexport MUAAPIKEY_API_KEY="sk-your-key-here"
codexCấu hình Apinhanh với Cline trong VS Code:
https://apikey-landing.vercel.app/v1sk-your-key-hereclaude-sonnet-4-5Continue dùng provider openai với apiBase. Sửa ~/.continue/config.yaml:
name: Apinhanh
version: 1.0.0
schema: v1
models:
- name: Apinhanh Sonnet
provider: openai
model: claude-sonnet-4-5
apiBase: https://apikey-landing.vercel.app/v1
apiKey: sk-your-key-here
roles:
- chat
- edit
- applyAider cần set cả hai biến OPENAI_API_BASE và OPENAI_BASE_URL:
export OPENAI_API_BASE="https://apikey-landing.vercel.app/v1"
export OPENAI_BASE_URL="https://apikey-landing.vercel.app/v1"
export OPENAI_API_KEY="sk-your-key-here"
aider --model openai/claude-sonnet-4-5model: openai/claude-sonnet-4-5
openai-api-base: https://apikey-landing.vercel.app/v1
openai-api-key: sk-your-key-hereAmp (Sourcegraph) gọi chuẩn Anthropic Messages:
export ANTHROPIC_BASE_URL="https://apikey-landing.vercel.app"
export ANTHROPIC_API_KEY="sk-your-key-here"https://apikey-landing.vercel.appsk-your-key-hereclaude-sonnet-4-5Mọi tool hỗ trợ chuẩn OpenAI Chat Completions hoặc Anthropic Messages đều có thể sử dụng Apinhanh.
# OpenAI compatible (Cursor, Cline, Continue, Aider, Roo Code...)
export OPENAI_BASE_URL="https://apikey-landing.vercel.app/v1"
export OPENAI_API_KEY="sk-your-key-here"
# Anthropic compatible (Claude Code, Amp Code...)
export ANTHROPIC_BASE_URL="https://apikey-landing.vercel.app"
export ANTHROPIC_API_KEY="sk-your-key-here"Apinhanh hỗ trợ đầy đủ các model OpenAI bao gồm GPT-4o, GPT-5.x series, O-series (reasoning), DALL-E, Whisper và các model embedding.
| Model ID | Mô tả | Input | Output |
|---|---|---|---|
ap-gpt-4o | Multimodal flagship, vision + audio | 5 credit | 15 credit |
ap-gpt-4o-mini | Fast & affordable | 1 credit | 3 credit |
ap-gpt-5.3-codex | Coding specialist | 4 credit | 28 credit |
o3 | Reasoning model | 4 credit | 16 credit |
o3-mini | Fast reasoning | 2 credit | 8 credit |
curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "ap-gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}],
"temperature": 0.7
}'Hỗ trợ đầy đủ Claude family từ Haiku đến Opus. Tương thích 100% với Anthropic Messages API.
| Model ID | Mô tả | Input | Output |
|---|---|---|---|
claude-opus-4-8 | Flagship, reasoning tốt nhất | 10 credit | 25 credit |
claude-sonnet-5 | Balanced, tốt cho coding | 4 credit | 10 credit |
claude-sonnet-4-5 | Phổ biến nhất cho coding | 6 credit | 15 credit |
claude-haiku-4-5 | Fast & affordable | 2 credit | 5 credit |
claude-3.5-sonnet | Legacy, vẫn rất tốt | 3 credit | 15 credit |
curl https://apikey-landing.vercel.app/v1/messages \
-H "X-API-Key: sk-your-key" \
-H "Content-Type: application/json" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "claude-sonnet-4-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello!"}]
}'Claude models cũng hoạt động qua OpenAI endpoint:
curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-5",
"messages": [{"role": "user", "content": "Hello!"}]
}'Antigravity (9Router) + Gemini legacy. Giá chuẩn theo tier High / Medium / Low.
| Model ID | Mô tả | Input | Output |
|---|---|---|---|
ap-gemini-3.1-pro | Gemini 3.1 Pro High | 6 credit | 12 credit |
ap-gemini-3.1-pro-low | Gemini 3.1 Pro Low | 3 credit | 8 credit |
ap-gemini-3.5-flash-high | Gemini 3.5 Flash High | 2 credit | 5 credit |
ap-gemini-3.5-flash | Gemini 3.5 Flash Medium | 1 credit | 3 credit |
ap-gemini-3.5-flash-low | Gemini 3.5 Flash Low | 1 credit | 2 credit |
ap-gemini-3-flash | Gemini 3 Flash | 1 credit | 3 credit |
ap-gpt-oss-120b | GPT-OSS 120B Medium | 2 credit | 6 credit |
curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.0-flash",
"messages": [{"role": "user", "content": "Explain quantum computing"}],
"temperature": 0.7
}'DeepSeek nổi tiếng với giá rẻ và hiệu năng cao, đặc biệt là DeepSeek R1 cho reasoning.
| Model ID | Mô tả | Input | Output |
|---|---|---|---|
deepseek-r1 | Reasoning model, rất mạnh | 1 credit | 2 credit |
deepseek-r1-250528 | R1 phiên bản mới nhất | 8 credit | 32 credit |
deepseek-v3 | General purpose, coding | 2 credit | 8 credit |
deepseek-coder-v2 | Coding specialist | 1 credit | 2 credit |
deepseek-chat | General chat, giá rẻ nhất | 1 credit | 2 credit |
curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-r1",
"messages": [{"role": "user", "content": "Solve this math problem step by step: ..."}],
"temperature": 0
}'Qwen (Alibaba) cung cấp đa dạng model từ chat, vision đến coding với giá cạnh tranh.
| Model ID | Mô tả | Input | Output |
|---|---|---|---|
qwen-max | Flagship model | 5 credit | 10 credit |
qwen-plus | Balanced, tốt cho coding | 2 credit | 4 credit |
qwen-turbo | Fast & affordable | 1 credit | 2 credit |
qwen-vl-max | Vision-language model | 3 credit | 8 credit |
qwen-coder-plus | Coding specialist | 2 credit | 4 credit |
curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-plus",
"messages": [{"role": "user", "content": "Write a Python function to..."}]
}'curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-vl-max",
"messages": [{
"role": "user",
"content": [
{"type": "text", "text": "Describe this image"},
{"type": "image_url", "image_url": {"url": "https://example.com/image.jpg"}}
]
}]
}'Mistral AI cung cấp các model hiệu quả từ Mistral Small đến Large, cùng với Codestral cho coding.
| Model ID | Mô tả | Input | Output |
|---|---|---|---|
mistral-large | Flagship model | 4 credit | 12 credit |
mistral-medium | Balanced performance | 3 credit | 8 credit |
mistral-small | Fast & efficient | 1 credit | 2 credit |
codestral | Coding specialist | 1 credit | 3 credit |
pixtral-large | Vision model | 4 credit | 12 credit |
curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "mistral-large",
"messages": [{"role": "user", "content": "Explain machine learning"}]
}'Llama là dòng model open-source của Meta, từ Llama 3 đến Llama 4 với nhiều kích thước khác nhau.
| Model ID | Mô tả | Input | Output |
|---|---|---|---|
meta-llama/llama-4-maverick | Flagship Llama 4 | 8 credit | 30 credit |
meta-llama/llama-4-scout | Efficient Llama 4 | 5 credit | 20 credit |
llama-3.3-70b | Llama 3.3, 70B params | 1 credit | 1 credit |
llama-3.2-90b-vision | Vision model | 2 credit | 2 credit |
llama-3.1-405b | Largest open model | 3 credit | 3 credit |
curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "llama-3.3-70b",
"messages": [{"role": "user", "content": "Hello!"}]
}'Apinhanh hỗ trợ thêm nhiều provider khác với 408+ models. Tất cả đều sử dụng cùng một API key và endpoint.
| Model | Input | Output |
|---|---|---|
glm-5 | 3 credit | 8 credit |
glm-4-flash | 1 credit | 2 credit |
| Model | Input | Output |
|---|---|---|
ernie-4.5 | 5 credit | 8 credit |
ernie-tiny-8k | 1 credit | 1 credit |
| Model | Input | Output |
|---|---|---|
kimi-k2 | 4 credit | 16 credit |
moonshot-v1-128k | 2 credit | 2 credit |
| Model | Input | Output |
|---|---|---|
ap-grok-4.5 | 6 credit | 18 credit |
ap-grok-4-fast | 2 credit | 5 credit |
| Model | Input | Output |
|---|---|---|
sonar-pro | 3 credit | 15 credit |
sonar-deep-research | 4 credit | 16 credit |
| Model | Input | Output |
|---|---|---|
command-r-plus | 5 credit | 10 credit |
command-r | 1 credit | 2 credit |
Tài liệu chi tiết cho tất cả endpoints của Apinhanh API.
| Method | Endpoint | Mô tả |
|---|---|---|
POST | /v1/chat/completions | OpenAI Chat Completions API |
POST | /v1/responses | OpenAI Responses API |
POST | /v1/messages | Anthropic Messages API |
GET | /v1/models | Danh sách models |
GET | /health | Health check |
Endpoint chính cho OpenAI-compatible tools như Cursor, Cline, Aider.
curl https://apikey-landing.vercel.app/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-5",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
"temperature": 0.7,
"max_tokens": 1024,
"stream": true
}'| Parameter | Type | Required | Mô tả |
|---|---|---|---|
model | string | Yes | ID của model (ví dụ: claude-sonnet-4-5) |
messages | array | Yes | Danh sách messages với role và content |
temperature | number | No | 0-2, mặc định 1. Độ sáng tạo của response |
max_tokens | integer | No | Số token tối đa trong response |
stream | boolean | No | Bật streaming response (SSE) |
Endpoint cho Anthropic-compatible tools như Claude Code, Amp Code.
curl https://apikey-landing.vercel.app/v1/messages \
-H "X-API-Key: sk-your-key" \
-H "Content-Type: application/json" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "claude-sonnet-4-5",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello!"}
]
}'| Parameter | Type | Required | Mô tả |
|---|---|---|---|
model | string | Yes | ID của model |
messages | array | Yes | Danh sách messages |
max_tokens | integer | Yes | Số token tối đa trong response |
system | string | No | System prompt |
stream | boolean | No | Bật streaming |
Lấy danh sách tất cả models có sẵn trên Apinhanh.
curl https://apikey-landing.vercel.app/v1/models \
-H "Authorization: Bearer sk-your-key"{
"object": "list",
"data": [
{
"id": "claude-sonnet-4-5",
"object": "model",
"owned_by": "Anthropic",
"input_credit_per_1m": 6,
"output_credit_per_1m": 15
},
{
"id": "claude-opus-4-8",
"object": "model",
"owned_by": "Anthropic",
"input_credit_per_1m": 10,
"output_credit_per_1m": 25
}
]
}Danh sách model đang hỗ trợ kèm giá credit để chọn đúng nhu cầu.
| Model ID | Input | Output |
|---|---|---|
ap-gpt-5.6-solGPT-5.6 Sol | 10 credit / 1M | 30 credit / 1M |
ap-gpt-5.6-terraGPT-5.6 Terra | 5 credit / 1M | 15 credit / 1M |
ap-gpt-5.6-lunaGPT-5.6 Luna | 3 credit / 1M | 8 credit / 1M |
autoAuto | 4 credit / 1M | 10 credit / 1M |
ap-claude-opus-4-8Claude Opus 4.8 (Apinhanh) | 10 credit / 1M | 25 credit / 1M |
ap-claude-opus-4-7Claude Opus 4.7 (Apinhanh) | 10 credit / 1M | 25 credit / 1M |
ap-claude-opus-4-6Claude Opus 4.6 (Apinhanh) | 10 credit / 1M | 25 credit / 1M |
ap-claude-opus-4-5Claude Opus 4.5 (Apinhanh) | 10 credit / 1M | 25 credit / 1M |
ap-claude-sonnet-5Claude Sonnet 5 (Apinhanh) | 4 credit / 1M | 10 credit / 1M |
ap-claude-sonnet-4-6Claude Sonnet 4.6 (Apinhanh) | 6 credit / 1M | 15 credit / 1M |
ap-claude-sonnet-4-5Claude Sonnet 4.5 (Apinhanh) | 6 credit / 1M | 15 credit / 1M |
ap-claude-haiku-4-5Claude Haiku 4.5 (Apinhanh) | 2 credit / 1M | 5 credit / 1M |
claude-opus-4-8Claude Opus 4.8 | 10 credit / 1M | 25 credit / 1M |
claude-opus-4-7Claude Opus 4.7 | 10 credit / 1M | 25 credit / 1M |
claude-opus-4-6Claude Opus 4.6 | 10 credit / 1M | 25 credit / 1M |
claude-opus-4-5Claude Opus 4.5 | 10 credit / 1M | 25 credit / 1M |
claude-sonnet-5Claude Sonnet 5 | 4 credit / 1M | 10 credit / 1M |
claude-sonnet-4-6Claude Sonnet 4.6 | 6 credit / 1M | 15 credit / 1M |
claude-sonnet-4-5Claude Sonnet 4.5 | 6 credit / 1M | 15 credit / 1M |
claude-sonnet-4-0Claude Sonnet 4.0 | 6 credit / 1M | 15 credit / 1M |
claude-haiku-4-5Claude Haiku 4.5 | 2 credit / 1M | 5 credit / 1M |
minimax-m2.5MiniMax M2.5 | 3 credit / 1M | 8 credit / 1M |
glm-5GLM-5 | 3 credit / 1M | 8 credit / 1M |
deepseek-3.2DeepSeek 3.2 | 1 credit / 1M | 2 credit / 1M |
minimax-m2.1MiniMax M2.1 | 2 credit / 1M | 5 credit / 1M |
qwen3-coder-nextQwen3 Coder Next | 2 credit / 1M | 5 credit / 1M |
ap-gemini-3.1-proGemini 3.1 Pro High (Antigravity) | 6 credit / 1M | 12 credit / 1M |
ap-gemini-3.1-pro-lowGemini 3.1 Pro Low (Antigravity) | 3 credit / 1M | 8 credit / 1M |
ap-gemini-3.5-flash-highGemini 3.5 Flash High (Antigravity) | 2 credit / 1M | 5 credit / 1M |
ap-gemini-3.5-flashGemini 3.5 Flash Medium (Antigravity) | 1 credit / 1M | 3 credit / 1M |
ap-gemini-3.5-flash-lowGemini 3.5 Flash Low (Antigravity) | 1 credit / 1M | 2 credit / 1M |
ap-gemini-3-flashGemini 3 Flash (Antigravity) | 1 credit / 1M | 3 credit / 1M |
ap-gpt-oss-120bGPT-OSS 120B Medium (Antigravity) | 2 credit / 1M | 6 credit / 1M |
GET /v1/models.| Gói | Giá | Credit |
|---|---|---|
| Starter | 299.000₫/tháng | 300 credit |
| Pro | 599.000₫/tháng | 700 credit |
| Ultra | 1.199.000₫/tháng | 1500 credit |
Mỗi tài khoản có thể tạo tối đa 10 API Key. Đặt tên, bật/tắt, theo dõi chi phí riêng cho từng key.
| Tính năng | Chi tiết |
|---|---|
| Số key tối đa | 10 key mỗi tài khoản |
| Đặt tên key | Tên gợi nhớ tùy chỉnh (tối đa 100 ký tự) |
| Bật / Tắt key | Tắt tạm thời mà không cần xóa |
| Credit dùng chung | Tất cả key dùng chung số dư của tài khoản |
Key sai, hết hạn, hoặc chưa khai báo trong biến môi trường.
echo $ANTHROPIC_API_KEY
# Kết quả phải bắt đầu với: sk-Budget đã cạn. Đợi reset, mua credit top-up, hoặc nâng cấp gói.
Kiểm tra Base URL:
# Anthropic (Claude Code, Amp Code)
https://apikey-landing.vercel.app
# OpenAI (Cursor, Cline, Aider)
https://apikey-landing.vercel.app/v1/v1claude-sonnet-4-5, ap-grok-4.5)sk-... từ DashboardChọn OpenAI Compatible, không phải "OpenAI" thuần.
Apinhanh là API gateway giúp bạn truy cập nhiều mô hình AI (Claude, GPT, Gemini…) bằng một API key duy nhất — không cần đăng ký từng provider.
Khi gặp vấn đề, vui lòng cung cấp: