FeathCodes API
OpenAI-compatible proxy ke NVIDIA NIM. Base URL: /v1
| Method | Path | Fungsi |
|---|---|---|
| POST | /v1/chat/completions | Chat completion, OpenAI-compatible, streaming didukung |
| POST | /v1/completions | Legacy completion, diteruskan ke upstream |
| GET | /v1/models | Daftar model tersedia |
| GET | /v1/apikey | Info token (disamarkan, admin bisa reveal) |
| GET | /health | Health check |
Contoh
curl https://www.feathcodes.my.id/v1/chat/completions \
-H "Authorization: Bearer $CLIENT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"minimaxai/minimax-m3.1-flash",
"messages":[{"role":"user","content":"hello"}]}'
OpenCode
"feathcodes": {
"name": "FeathCodes",
"package": "@ai-sdk/openai-compatible",
"settings": {
"baseURL": "https://www.feathcodes.my.id/v1",
"apiKey": "{env:FEATH_API_KEY}"
},
"models": {
"minimaxai/minimax-m3.1-flash": { "name": "minimaxai/minimax-m3.1-flash" }
}
}
| Model ID | Owner |
|---|
Token hanya ditampilkan penuh untuk request dengan header X-Admin-Token yang benar. Pengunjung biasa hanya melihat versi disamarkan.
memuat...
Cara pakai
Authorization: Bearer