Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

定價與通道

Lazu 在模型頁展示三類價格:

  1. 官方參考價:上游 provider 公布價格,僅用於比較。
  2. direct lane 價格:透過官方或一方雲路徑路由時的價格。
  3. cheap lane 價格:透過更低成本路徑路由時的價格,適合實驗、批次處理和成本敏感場景。

direct 和 cheap 的差異

Lane路由到哪裡適合場景
direct官方 endpoint 或主流雲:Azure / AWS / GCP生產、合規、延遲敏感 workload
cheap更低成本的第三方路徑批次處理、實驗、原型、成本敏感任務

每個模型至少有 direct lane。cheap 按模型和 vendor 單獨啟用;不是所有模型都有。

按 vendor 設定 lane

控制台 -> API Keys 開啟一把 key 的 Advanced 設定,可以為每個 vendor 選擇 direct 或 cheap。沒有設定時,預設偏好是 cheap

Fallback 行為

如果請求 cheap,但目標模型只有 direct,請求仍會成功,響應頭包含 X-Lazu-Lane-Fallback: cheap->direct,並按 direct lane 價格計費。如果請求 direct 但沒有 direct channel,Lazu 返回 HTTP 404 model_not_found

透過 API 讀取有效價格

curl https://api.lazu.ai/api/models/catalog \
  -H "Authorization: Bearer $LAZU_API_KEY" \
  | jq '.data[] | select(.id=="gpt-4o-mini") | .pricing'

返回的 pricing 已經是目前 API Key 的有效價格。只有需要公開 list-pricing 視圖時才使用 /api/pricing

相關頁面