PixMind Docs
API ReferenceLanguage ModelsClaude Opus 4.8 CC

Claude Opus 4.8 CC Chat Completion

Call Claude Opus 4.8 CC through PixMind with documented request parameters and token pricing.

Claude Opus 4.8 CC is available through the PixMind chat-completions API. Pricing separates input, output, cache reads, and cache writes with 5-minute and 1-hour TTLs.

Claude Opus 4.8 CC through PixMind's OpenAI-compatible chat completions endpoint.

Provider

Anthropic

Model ID

claude-opus-4-8-cc

Endpoint

POST /api-platform/v1/chat/completions

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. Thinking tokens are billed as output tokens.

Request parameters

ParameterTypeRequiredDescription
modelstringYes

Stable PixMind model ID. Use `claude-opus-4-8-cc`.

Allowed values: claude-opus-4-8-cc

messagesarrayYes

OpenAI-compatible chat messages. Gemini user content may be a string or an array of text, image_url, and video_url blocks.

max_tokensintegerNo

Maximum number of completion tokens to generate.

Default: 4096

thinkingobjectNo

Claude thinking mode. Use {"type":"adaptive"}.

Default: {"type":"adaptive"}

output_configobjectNo

Thinking depth, for example {"effort":"high"}.

Default: {"effort":"high"}

streambooleanNo

Return tokens incrementally when enabled.

Allowed values: true, false

Default: false

Request example

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();

Accepted task response

Generation is asynchronous. Save taskId and poll GET /api-platform/v1/tasks/{taskId} until status is ready or failed.

200 OK
{
  "code": 1000,
  "data": {
    "id": "img_44160",
    "taskId": 44160,
    "type": "image",
    "model": "claude-opus-4-8-cc",
    "status": "processing"
  }
}

API pricing

ConfigurationPrice
Input tokens2420.6 credits / 1M tokens
Output tokens12103 credits / 1M tokens
Cache read242.06 credits / 1M tokens
Cache write · 5-minute TTL3025.75 credits / 1M tokens
Cache write · 1-hour TTL4841.2 credits / 1M tokens

API pricing uses the apiPlatform role and is separate from PixMind Studio credits. The accepted task response is the final pricing snapshot.