Introduction
Call claude/opus-4.8/chat for repository-wide architecture reviews, multi-file debugging, and structured agent planning with low-to-max reasoning effort.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional | Claude Opus 4.8: |
| Context window | 1,000,000 tokens |
| Reply ceiling | 128,000 tokens (default 4,096) |
| Modalities | Text and |
| Metering | Claude Opus 4.8 bills measured input, cache read, cache write, and output tokens. |
Key features & highlights
Check complex code changes before merge
Claude Opus 4.8 excels at reviewing cross-service patches, comparing invariants against specs, and explaining exact failure paths across large diffs.
Control parallel or step-by-step tool loops
Pair up to 128 function definitions with parallel_tool_calls and four reasoning tiers to pace long debugging runs reliably.
Explicit prompt cache metering
Separate input, cache-read, cache-write, and output rates help multi-turn investigations reuse million-token code snapshots economically.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | Supply chronological Claude Opus 4.8 turns with text and |
max_tokens | No | Claude Opus 4.8 permits |
reasoning_effort | No | Select low, medium, high, or max on Claude Opus 4.8 (default medium) to scale verification depth per engineering task. |
stop | No | Provide up to four stop strings for Claude Opus 4.8; avoid tokens that might appear naturally inside code blocks. at least 1 characters · at least 1 items · at most 4 items |
temperature | No | Claude Opus 4.8 supports temperature from 0 to 1 (default 1); keep changes isolated when evaluating code reviews. |
top_p | No | Adjust |
tools | No | Declare up to 128 OpenAI-format tools per Claude Opus 4.8 request; your application executes and returns tool results. at most 128 items |
parallel_tool_calls | No | Default true lets Claude Opus 4.8 propose multiple tool calls in one turn; set false when each step must wait for prior evidence. Default: |
tool_choice | No | Use |
Pricing
Input $4.3322 / Output $21.661 per 1 million tokens
Use cases
Audit database migrations and API contracts
Load SQL migrations, service handlers, and schema tests into Claude Opus 4.8 to flag locking hazards or breaking response fields.
Run multi-step refactoring agents
Keep architectural guidelines in cached system messages while iterating through repository fixes across dozens of tool turns.
Prompt guide & pro tips
Match the reasoning level to review risk
Use low or medium for routine code navigation and step up to high or max when validating concurrency, billing, or security changes.
Raise the output limit for deep audits
The default 4,096 ceiling is enough for short answers; raise
max_tokenswhen requesting thorough reasoning plus patch listings.
Claude Opus 4.8 is Anthropic's May 2026 flagship update built for rigorous code verification, long-horizon agent workflows, and million-token technical reviews.
Engineered for code verification
Feed entire pull requests, schema diffs, and failing stack traces into Claude Opus 4.8 to catch subtle concurrency bugs and contract regressions.
Four reasoning tiers from low to max
Keep routine explanations on low or medium, and switch Claude Opus 4.8 to high or max when auditing security boundaries or complex migrations.
Prompt caching across long investigations
Repeated repository context benefits from separate cache-read and cache-write token rates so multi-turn agent loops stay predictable.
Visual debugging with image_url
Attach UI screenshots or architecture diagrams alongside code snippets; audio and video inputs are not accepted on this chat endpoint.
SpicyAPI adds no filter to Claude Opus 4.8; live tests passed romantic adult scenes but declined explicit erotica, and lawful consensual use excluding minors applies.
Verify code licensing and run your test suite on every patch suggested by Claude Opus 4.8 before shipping to production.
API quick start
curl --fail-with-body -sN https://api.spicyapi.ai/v1/chat/completions \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "anthropic/claude-opus-4.8/chat",
"messages": [
{
"role": "user",
"content": "Summarise the following release notes into three bullet points."
}
],
"stream": true
}' \
| jq --unbuffered -Rrj 'select(startswith("data: ")) | .[6:] | select(. != "[DONE]") | fromjson | if .error then "\n[error] \(.error.message)\n" else (.choices[0].delta.content? // empty) end'
See the API reference for authentication, the complete schema, polling, and error handling.












