Chat Completions
Endpoint chuẩn OpenAI, dùng được cho mọi model kể cả Claude.
curl -s https://ai.gamikey.com/v1/chat/completions \
-H "Authorization: Bearer sk-..." \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-5-5",
"max_tokens": 64,
"messages": [{"role": "user", "content": "ping"}]
}'Thư viện OpenAI đặt base_url là https://ai.gamikey.com/v1. Thêm "stream": true để nhận từng phần.
Cập nhật: 02/12/2026Thấy lỗi trong tài liệu? Chat với Gamikey