Awanusa Docs
API reference
Endpoint publik menggunakan namespace model nm/* dan Bearer API key. Gunakan key nm_live_* dari dashboard. GET /v1/models menampilkan model yang sudah diuji dan diaktifkan untuk akun pelanggan.
| Method | Endpoint | Status |
|---|---|---|
| GET | /v1/models | Sesuai model aktif |
| POST | /v1/chat/completions | Sesuai model aktif |
| POST | /v1/responses | Sesuai model aktif |
Chat Completions
BASE_URL berisi origin Awanusa tanpa /v1. API key disimpan di environment variable, bukan source code.
curl "$BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer $AWANUSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"nm/gpt-6.1-sol","messages":[{"role":"user","content":"Halo"}]}'Responses
Target MVP bersama Chat Completions. Publikasikan capability setelah streaming, tools, usage, dan retry teruji untuk model terkait.