~/aimux $ curl https://aimux.id/v1

API Reference

Endpoint kompatibel dengan OpenAI SDK. Redeem voucher untuk mendapat API key FS-…, lalu ganti base_url ke Aimux.

Base URL

https://aimux.id/v1

Autentikasi

Authorization: Bearer FS-xxxx

Key didapat dengan redeem voucher. Kuota & masa aktif melekat pada key.

Endpoints

GET/v1/models
POST/v1/chat/completions
POST/v1/messages
POST/v1/images/generations
GET/v1/quota

Contoh penggunaan

Chat & teks (non-stream).

curl https://aimux.id/v1/chat/completions \
  -H "Authorization: Bearer FS-xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "am/qwen3.8-max",
    "messages": [{"role": "user", "content": "Halo"}]
  }'

Catatan

  • ›Voucher text = kuota tokens (model teks); voucher image = kuota credits (model gambar).
  • ›Bila voucher terikat grup, hanya model dalam grup itu yang bisa dipakai (cek /models).
  • ›Kuota tokens dipotong dari token nyata (input + output).
  • ›Nama model memakai prefiks am/ (mis. am/qwen3.8-max).