API 参考语言模型Claude Opus 4.8 CC
Claude Opus 4.8 CC 对话补全
通过 PixMind 调用 Claude Opus 4.8 CC,并查看请求参数和 Token 价格。
Claude Opus 4.8 CC 已通过 PixMind 聊天补全 API 上线。价格分别展示输入、输出、缓存读取,以及 5 分钟和 1 小时 TTL 的缓存写入。
通过 PixMind 兼容 OpenAI 的聊天补全接口调用 Claude Opus 4.8 CC。
提供方
Anthropic模型 ID
claude-opus-4-8-cc请求端点
POST /api-platform/v1/chat/completions模型说明
- 请将 API Key 保存在服务端;客户端需要增量输出时可启用流式返回。
- Claude 5 与 4.8 使用 adaptive thinking。可通过 output_config.effort 设置 low、medium、high、xhigh 或 max;也可使用兼容 OpenAI 的 reasoning_effort 别名。
- 更改 thinking 或 effort 会产生新的提示词缓存前缀;思考 Token 按输出 Token 计费。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 稳定的 PixMind 模型 ID,请使用 `claude-opus-4-8-cc`。 可选值: |
messages | array | 是 | 兼容 OpenAI 的对话消息。Gemini 用户消息的 content 可以是字符串,也可以是 text、image_url 和 video_url 内容块数组。 |
max_tokens | integer | 否 | 本次请求最多生成的 completion token 数量。 默认值: |
thinking | object | 否 | Claude 思考模式,请使用 {"type":"adaptive"}。 默认值: |
output_config | object | 否 | 思考深度,例如 {"effort":"high"}。 默认值: |
stream | boolean | 否 | 启用后逐步流式返回 token。 可选值: 默认值: |
请求示例
cURL
curl https://aihub-admin.aimix.pro/api-platform/v1/chat/completions \
-H "Authorization: Bearer $PIXMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4-8-cc",
"messages": [
{
"role": "user",
"content": "Draft three launch concepts for this product."
}
],
"thinking": {
"type": "adaptive"
},
"output_config": {
"effort": "high"
},
"stream": false
}'JavaScript
const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "claude-opus-4-8-cc",
"messages": [
{
"role": "user",
"content": "Draft three launch concepts for this product."
}
],
"thinking": {
"type": "adaptive"
},
"output_config": {
"effort": "high"
},
"stream": false
})
});
const task = await response.json();任务受理响应
生成任务为异步处理。请保存 taskId,并轮询 GET /api-platform/v1/tasks/{taskId},直到状态为 ready 或 failed。
200 OK
{
"code": 1000,
"data": {
"id": "img_44160",
"taskId": 44160,
"type": "image",
"model": "claude-opus-4-8-cc",
"status": "processing"
}
}API 定价
| 配置 | 价格 |
|---|---|
| 输入 Token | 2420.6 credits / 1M tokens |
| 输出 Token | 12103 credits / 1M tokens |
| 缓存读取 | 242.06 credits / 1M tokens |
| 缓存写入 · 5 分钟 TTL | 3025.75 credits / 1M tokens |
| 缓存写入 · 1 小时 TTL | 4841.2 credits / 1M tokens |
API 使用 apiPlatform 角色独立计费,与 PixMind Studio 积分分开;任务受理响应中的价格快照是最终计费依据。