FeathCodes API

OpenAI-compatible proxy ke NVIDIA NIM. Base URL: /v1

MethodPathFungsi
POST/v1/chat/completionsChat completion, OpenAI-compatible, streaming didukung
POST/v1/completionsLegacy completion, diteruskan ke upstream
GET/v1/modelsDaftar model tersedia
GET/v1/apikeyInfo token (disamarkan, admin bisa reveal)
GET/healthHealth 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 IDOwner

Token hanya ditampilkan penuh untuk request dengan header X-Admin-Token yang benar. Pengunjung biasa hanya melihat versi disamarkan.

memuat...

Cara pakai

Authorization: Bearer