v3.0
Tài Liệu Tích Hợp
Hướng dẫn chi tiết tích hợp TexAPI với các IDE extensions và CLI tools. Hỗ trợ 2 protocol: Anthropic và Gemini.
Hướng Dẫn
Base URLs
Anthropic
https://api.texapi.devGemini
https://api.texapi.devTổng Quan Hệ Thống
TexAPI cung cấp API gateway cho các AI models từ Anthropic và Google.
1Hai Giao Thức Hỗ Trợ
AnthropicKHUYẾN NGHỊ
Hỗ trợ prompt caching, tối ưu cho Claude models.
Base URL:
https://api.texapi.devEndpoint:
/messagesGemini
Native Google Gemini API protocol.
Base URL:
https://api.texapi.devEndpoint:
/models/:model:generateContent2Models Khả Dụng
Anthropic (Claude)
| Model ID | Tier | Input $/M | Output $/M |
|---|---|---|---|
| claude-opus-4-5-20251101 | Premium | $5.00 | $15.00 |
| claude-sonnet-4-5-20250929 | Recommended | $3.00 | $9.00 |
| claude-haiku-4-5-20251001 | Fast | $1.50 | $5.00 |
Google (Gemini)
| Model ID | Tier | Input $/M | Output $/M |
|---|---|---|---|
| gemini-3-pro-high | Premium | $4.00 | $12.00 |
| gemini-3-pro-preview | New | $2.00 | $8.00 |
| gemini-3-pro-low | Budget | $1.00 | $3.00 |
| gemini-3-pro-image | Vision | $4.00 | $12.00 |
| gemini-3-flash | Fastest | $0.20 | $0.50 |
| gemini-2.5-flash-lite | Cheapest | $0.05 | $0.15 |
3Xác Thực (Authentication)
Sử dụng API Key từ Dashboard. Hỗ trợ nhiều phương thức:
# Anthropic style:
Authorization: Bearer sk-tex-...
x-api-key: sk-tex-...
# Gemini style:
x-goog-api-key: sk-tex-...
?key=sk-tex-...