05
模型
GET /models 回傳公開目錄,價格為每 token 美元,與 OpenRouter 相容。
目錄
目錄每日自供應商同步,每次改價都開新版本,歷史請求永遠可對照當時價格稽核。下架模型會被停用並回 404(error_type not_found)。
curl https://api.nxioai.com/api/v1/models | jq '.data[] | {id, context_length, pricing}'欄位
| 欄位 | 意義 |
|---|---|
| id | NXIO 模型 id(vendor/slug),請求時使用。 |
| upstream_id | 供應商 id,可作別名。 |
| context_length | 最大上下文 tokens(未知為 null)。 |
| pricing.prompt / completion | 每 token 美元,十進位字串。 |
| pricing.input_cache_read | 供應商支援 prompt caching 時的快取輸入價。 |
| pricing.request | 影像 / 影片等按次模型的每次費用。 |
| architecture.modality | 例如 text+image->text。 |
| tags | coding、reasoning、image、video、embedding… |