05

模型

GET /models 回傳公開目錄,價格為每 token 美元,與 OpenRouter 相容。

目錄

目錄每日自供應商同步,每次改價都開新版本,歷史請求永遠可對照當時價格稽核。下架模型會被停用並回 404(error_type not_found)。

curl
curl https://api.nxioai.com/api/v1/models | jq '.data[] | {id, context_length, pricing}'

欄位

欄位意義
idNXIO 模型 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。
tagscoding、reasoning、image、video、embedding…