模型与价格

输入 $1.00 / 输出 $5.00,单位 USD / 1M tokens。官方参考价与公开目录用于对账。

获取 API Key 返回模型价格

能力与接口

目录公开声明的接口:

  • Chat Completions:POST /chat/completions
  • Responses:POST /responses
  • Messages:POST /messages

上下文窗口:1000000 tokens;最大输出:128000 tokens。

发送请求

Base URL:https://api.latentide.com。Key 只需创建一次,原有 SDK 改一行地址即可。

Chat Completions

curl https://api.latentide.com/chat/completions -H "Authorization: Bearer $LATENTIDE_API_KEY" -H "Content-Type: application/json" -d '{"model":"claude-opus-4-8","messages":[{"role":"user","content":"Hello"}]}'

Responses

curl https://api.latentide.com/responses -H "Authorization: Bearer $LATENTIDE_API_KEY" -H "Content-Type: application/json" -d '{"model":"claude-opus-4-8","input":"Hello"}'

Messages

curl https://api.latentide.com/messages -H "x-api-key: $LATENTIDE_API_KEY" -H "anthropic-version: 2023-06-01" -H "Content-Type: application/json" -d '{"model":"claude-opus-4-8","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'