Tài liệu
Từ 0 đến API call đầu tiên trong 2 phút
Futrix API tương thích 100% với OpenAI API format. Dùng bất kỳ ngôn ngữ nào hỗ trợ HTTP — Python, Node.js, Go, PHP, Rust, cURL.
1Lấy API key
1. Đăng ký tại futrixapi.com (chỉ cần email)
2. Vào Dashboard → API Keys → Tạo key mới
3. Copy key format: sk-your-api-keyxxxxxxxxxxxx
2Base URL & Xác thực
Base URL: https://api.futrixapi.com/v1
Auth: Authorization: Bearer sk-your-api-key3Code Examples
# pip install openai
# OpenAI SDK = HTTP client chuẩn công nghiệp
# Chỉ đổi base_url → request đi thẳng đến Futrix API
# Không có dữ liệu nào đi qua server OpenAI
from openai import OpenAI
client = OpenAI(
base_url="https://api.futrixapi.com/v1", # ← Futrix API
api_key="sk-your-api-key", # ← Key từ Dashboard
)
response = client.chat.completions.create(
model="auto", # Smart Routing tự chọn model tốt nhất
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)Cần hỗ trợ thêm?
Futrix.contact@gmail.com Hotline: 076 8888 526