API 金鑰
用你自己的程式呼叫 Asale。一把金鑰,三種相容模式——把 OpenAI、Anthropic 或 Gemini 用戶端指向閘道即可,其餘不用改。
我的金鑰
每個帳號最多 50 把。預設金鑰是桌面用戶端買入時寫給各 AI 工具的那一把。
| 名稱 | 金鑰 | 狀態 | 到期 | 建立時間 | |
|---|---|---|---|---|---|
相容介面
閘道同時支援三種協定。沿用你現有的 SDK,只改 base URL 和金鑰即可。
| Base URL | https://gw.asale.ai/v1 |
|---|---|
| 驗證標頭 | Authorization: Bearer <key> |
| 環境變數 | OPENAI_API_KEY |
| 介面路徑 | POST /v1/chat/completions
POST /v1/responses
POST /v1/completions
GET /v1/models |
curl https://gw.asale.ai/v1/chat/completions \
-H "Authorization: Bearer sk-asale-xxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'把佔位符換成你的金鑰,或點擊上方某把金鑰的「檢視」。