ModelPort

Claude Opus 4.8

Released: May 28, 2026 Model ID: claude-opus-4-8 Pricing: $5 / $25 per million input / output tokens (unchanged from 4.7) Status: legacy. Superseded by claude-opus-5-5.md. Still the required layer when upgrading from Opus 4.7 or older. Last verified: legacy, written at the Opus 4.8 launch (May 2026)

Changelog (vs Opus 4.7)

Performance improvements

Migration from Opus 4.7

Drop-in upgrade. No breaking API changes.

Step Action
Model ID Change to claude-opus-4-8
Effort settings Re-baseline — token allocation recalibrated
Mid-task instructions Optional — new capability, no action needed
Fast mode Optional — available if latency is a priority

Migration from Opus 4.6 or earlier

Must apply all Opus 4.7 breaking changes first, then update model ID.

Opus 4.7 breaking changes (required)

Change Detail
Sampling parameters Setting temperature, top_p, or top_k to non-default values returns 400. Remove them.
Extended thinking Replace manual extended thinking config with {type: "adaptive"} and effort parameter.
Tokenizer New tokenizer — re-evaluate cost estimates and token limits.
Assistant prefills Assistant message prefills return 400. Use structured outputs or output_config.format instead.

After applying these, proceed with the 4.7 → 4.8 migration above.

Quirks and best practices

Model ID reference

Version Model ID Status
Opus 4.8 claude-opus-4-8 Current (GA)
Opus 4.7 claude-opus-4-7 Active
Opus 4.6 claude-opus-4-6 Active
Opus 4.5 claude-opus-4-5 Active
Opus 4.1 claude-opus-4-1 Active
Opus 4 claude-opus-4-20250514 Deprecated soon