Introduction
Use claude/opus-4.7/chat for long-form creative writing, unrestricted roleplay dialogue, high-detail image reading, and multi-step tool workflows.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional | Claude Opus 4.7: |
| Context window | 1,000,000 tokens |
| Reply ceiling | 128,000 tokens (default 4,096) |
| Modalities | Text and |
| Metering | Claude Opus 4.7 settles on measured input, cache read, cache write, and output tokens. |
Key features & highlights
Keep full books and character arcs in memory
Claude Opus 4.7 holds up to 1,000,000 tokens of lore, transcripts, or technical specs while emitting up to 128,000 tokens in a single response.
Sharper reading of dense images and diagrams
Upgraded from Opus 4.6 for higher-resolution visual inputs, Claude Opus 4.7 extracts fine labels, layout details, and annotations via image_url.
Verified permissive adult fiction handling
Live L2–L4 checks passed adult creative-writing prompts cleanly, making Claude Opus 4.7 a strong choice for interactive fiction and roleplay apps.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | Send ordered Claude Opus 4.7 dialogue turns with text and |
max_tokens | No | Claude Opus 4.7 allows |
reasoning_effort | No | Pick low, medium, high, or max on Claude Opus 4.7 (default medium) to balance responsiveness against self-checking depth. |
stop | No | Supply up to four stop markers for Claude Opus 4.7; generation stops before emitting the matched sequence. at least 1 characters · at least 1 items · at most 4 items |
temperature | No | Claude Opus 4.7 accepts temperature from 0 to 1 (default 1); adjust carefully when comparing narrative tone or coding precision. |
top_p | No | Tune |
tools | No | Register up to 128 OpenAI-format tools per Claude Opus 4.7 call; your host application runs the functions. at most 128 items |
parallel_tool_calls | No | Default true enables Claude Opus 4.7 to propose multiple tool calls per turn; set false when tool results must arrive sequentially. Default: |
tool_choice | No | Configure |
Pricing
Input $4.25 / Output $21.25 per 1 million tokens
Use cases
Power long-session interactive fiction and roleplay
Cache world settings and character cards once, then run hundreds of coherent dialogue turns without mid-story tone drift.
Analyze high-density visual documents
Combine annotated floor plans, UI mockups, or dense PDF page images with structured questions inside one thread.
Prompt guide & pro tips
Use low effort for natural conversation flow
In interactive writing or roleplay loops, low or medium
reasoning_effortkeeps replies responsive without over-deliberating every beat.Cache stable lore or reference docs
Keep static system prompts and character sheets identical across turns so Claude Opus 4.7 hits the lower cache-read rate.
Claude Opus 4.7 is Anthropic's April 2026 Opus release combining high-resolution vision, agentic self-checking, 1,000,000-token memory, and permissive adult creative-writing behavior in live tests.
Long-form dialogue and narrative continuity
Hold entire world bibles, multi-chapter manuscripts, and character notes inside 1,000,000 tokens while generating up to 128,000 tokens per turn.
High-resolution image understanding
Attach detailed diagrams, page scans, or UI captures via image_url so Claude Opus 4.7 reads fine visual labels alongside text prompts.
Self-checking across four reasoning tiers
Use low for natural dialogue cadence, medium for balanced drafts, and high or max when Claude Opus 4.7 must verify intricate logic.
Prompt caching for persistent personas and repos
Cache static lore, style guides, or code context once and reuse it cheaply across long interactive sessions.
SpicyAPI applies no extra filter to Claude Opus 4.7; live checks passed explicit adult fiction prompts, though lawful consensual use excluding minors remains mandatory.
Confirm rights to source texts and images sent to Claude Opus 4.7 and review outputs before publishing or shipping code.
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.7/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.












