Claude Opus 4.8 CC Chat Completion
Call Claude Opus 4.8 CC through PixMind with documented request parameters and response fields.
Claude Opus 4.8 CC is available through the PixMind chat-completions API. Use the documented messages, thinking, and output_config fields to control the response.
Claude Opus 4.8 CC through PixMind's OpenAI-compatible chat completions endpoint.
Provider
AnthropicModel ID
claude-opus-4-8-ccEndpoint
POST /api-platform/v1/chat/completionsAuthentication
Base URL: https://aihub-admin.aimix.pro. Send Authorization: Bearer <PIXMIND_API_KEY> on both creation and polling requests, and Content-Type: application/json when submitting JSON. Keep your key in a server environment variable.
Model notes
- Keep the API key on your server and use streaming when the client needs incremental output.
- Claude 5 and 4.8 use adaptive thinking. Set output_config.effort to low, medium, high, xhigh, or max; reasoning_effort is accepted as an OpenAI-compatible alias.
- Changing thinking or effort starts a new prompt-cache prefix.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Stable PixMind model ID. Use `claude-opus-4-8-cc`. Allowed values: |
messages | array | Yes | OpenAI-compatible chat messages. Gemini user content may be a string or an array of text, image_url, and video_url blocks. |
max_tokens | integer | No | Maximum completion tokens; send a positive integer. The default and upper limit depend on the selected model. Playground default: |
thinking | object | No | Claude thinking mode. Use {"type":"adaptive"}. Default: |
output_config | object | No | Thinking depth, for example {"effort":"high"}. Default: |
stream | boolean | No | Return tokens incrementally when enabled. Allowed values: Default: |
Request example
curl --request POST '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
}'// Node.js 20+. Keep the API key on your server.
const apiKey = process.env.PIXMIND_API_KEY;
if (!apiKey) throw new Error("PIXMIND_API_KEY is required");
const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
"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
}),
signal: AbortSignal.timeout(30_000)
});
const task = await response.json();
if (!response.ok) {
throw new Error(task.message ?? task.error?.message ?? `HTTP ${response.status}`);
}
console.log(task);Response example
Non-streaming chat completions return choices directly. With stream: true, consume the SSE stream instead.
{
"id": "chatcmpl_example",
"object": "chat.completion",
"model": "claude-opus-4-8-cc",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello!"
},
"finish_reason": "stop"
}
]
}