The Unified Interface
For Every Model

Better prices, better uptime, no subscriptions.

/
Popular:
View all 264 models
Input / 1M
$0.50 (12.500 ₫)
Output / 1M
$1.50 (37.500 ₫)
Chat
Input / 1M
$0.50 (12.500 ₫)
Output / 1M
$1.50 (37.500 ₫)
Chat
Input / 1M
$0.50 (12.500 ₫)
Output / 1M
$1.50 (37.500 ₫)
Chat
Input / 1M
$0.50 (12.500 ₫)
Output / 1M
$1.50 (37.500 ₫)
Chat

OPENAI COMPATIBLE ENDPOINT

Chỉ Cần 1 Dòng Để Đổi Toàn Bộ Nhà Cung Cấp

Dùng nguyên thư viện `openai` có sẵn và đặt baseURL là `https://apivien.com/v1`.

from openai import OpenAI

client = OpenAI(
    base_url="https://apivien.com/v1",
    api_key="sk-apivien-xxxxxxxxxxxxxxxxxxxxxxxx"
)

response = client.chat.completions.create(
    model="deepseek/deepseek-r1",
    messages=[
        {"role": "system", "content": "You are a helpful expert."},
        {"role": "user", "content": "Explain quantum computing in 2 sentences."}
    ],
    stream=True
)

for chunk in response:
    print(chunk.choices[0].delta.content or "", end="")

WHY APIVIEN GATEWAY

Hạ Tầng AI Tối Ưu Cho Developer

Không còn lo thẻ quốc tế bị từ chối, tỷ giá đắt đỏ, hay các gói thuê bao bắt buộc hàng tháng.

Zero Latency & Fallbacks

Khi OpenAI hoặc Claude bị quá tải hay rate limit 429, gateway tự động định tuyến sang máy chủ dự phòng khỏe mạnh.

VietQR Tự Động 24/7

Nạp tiền tự động qua quét mã VietQR ngân hàng Việt Nam trong 5-15 giây. Thưởng từ 5% đến 15% hạn mức và số dư không bao giờ hết hạn.

Bảo Mật OWASP ASVS

API Key được băm SHA-256 an toàn. Chính sách zero-retention bảo vệ quyền riêng tư tuyệt đối cho mã nguồn của bạn.

Aggregated Across 40+ Frontier & Open Providers
AnthropicAnthropic
OpenAIOpenAI
GoogleGoogle
DeepSeekDeepSeek
MetaMeta
xAIxAI
MistralMistral
Alibaba QwenAlibaba Qwen
Black ForestBlack Forest
MidjourneyMidjourney
PerplexityPerplexity
CohereCohere

Start building with Apivien today.

Get an API key in 30 seconds. No credit card required, instant VietQR top-up from 20.000 ₫.