Claude Opus 4.8

Text & chatLegacyAvailable
by AnthropicModel ID: claude-opus-4-8

The most capable model of Anthropic's Opus 4 series. State of the art on long-horizon agentic work, coding and knowledge tasks, with a 1M-token context window at standard pricing.

Price ยท 1M in / out
US$6.00 / US$30.00
Context
1,000,000 tokens
Max. output
128,000 tokens
Input โ†’ output
Text + Image โ†’ Text
Run time (median)
3.2 s
Developer
Anthropic

This is an older version of the model.

Newer version available: Claude Opus 5.5

01

Playground

Try Claude Opus 4.8

Chat

US$6.00/1M in
Try Claude Opus 4.8

Send a message. The answer arrives in full once the model is done (no streaming).

System prompt
Max. answer length (tokens)

This run

at most US$0.0308 ยท 3.08 credits reserved

Billed by the tokens actually used; the unused part of the reservation is refunded.

For accounts without a purchase: runs above 2 credits need a top-up.

New here?

10 free credits (US$0.10) when you sign up with Google

Usable 24 hours after sign-up, up to 5 runs per day and at most 2 credits per run. Other sign-in methods start without credits.

02

About Claude Opus 4.8

TL;DRAs of 23 September 2026

Claude Opus 4.8 is a model by Anthropic in the Text & chat category. On Railwail, Claude Opus 4.8 costs US$6.00 per 1M input tokens and US$30.00 per 1M output tokens. The context window holds 1,000,000 tokens, and one response can be up to 128,000 tokens long. Newer version: Claude Opus 5.5.

Claude Opus 4.8 was Anthropic's Opus flagship in mid-2026; Anthropic now lists it as a legacy model. It is highly autonomous on multi-step agentic tasks, strong at coding and code review, and supports adaptive thinking (sampling parameters and fixed thinking budgets were removed from this generation). 1M-token context window, up to 128K output tokens via streaming. Use it when correctness on hard, long tasks matters more than cost.
03

Pricing

Prices in US dollars. Usage is charged from prepaid credits.
InputUS$6.00 / 1M tokens
OutputUS$30.00 / 1M tokens
  • Billed by the tokens each request actually uses.
  • 1 credit = US$0.01

Cost calculator

Price calculator

/ req.
/ req.

Total

US$2.10

210 credits

Per request

US$0.021 ยท 2.1 credits

Each request is rounded up to 0.01 credits.

04

API

Call Claude Opus 4.8 with your Railwail API key. Use this model ID in the request:
curl https://railwail.com/api/v1/chat/completions \
  -H "Authorization: Bearer $RAILWAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-8",
    "messages": [
      {
        "role": "user",
        "content": "Explain what a vector database is in two sentences."
      }
    ],
    "max_tokens": 1024
  }'
Set your key as RAILWAIL_API_KEYCreate API key
05

Specifications

Model ID
claude-opus-4-8
Developer
Anthropic
Category
Text & chat
Input
Text, Image
Output
Text
Context window
1,000,000 tokens
Max. output
128,000 tokens
Billing
By usage (tokens or GPU time)
Run time (median)
3.2 s198 completed runs on Railwail in the last 90 days
Released
28 May 2026
Lifecycle
Legacy
Catalog entry updated
23 September 2026

Input parameters

Inputs and settings from the model's input schema. The example in the API section shows which of them the API accepts.

  • promptrequired

    User message

    Type: Text
    Default: โ€“
    Allowed values: up to 32,000 characters
  • stream
    Type: Yes/no
    Default: false
    Allowed values: โ€“
  • max_tokens
    Type: Integer
    Default: 4096
    Allowed values: 1 to 128,000
  • system_prompt

    Optional system instruction

    Type: Text
    Default: โ€“
    Allowed values: up to 8,000 characters

Tags

  • anthropic
  • claude
  • opus
  • flagship
  • agentic
  • coding
  • long-context
  • 1m-context
06

Use cases

07

Frequently asked questions

What is Claude Opus 4.8?

Claude Opus 4.8 is a model by Anthropic in the Text & chat category. On Railwail you can call it with an API key through the Railwail API.

How much does Claude Opus 4.8 cost on Railwail?

On Railwail, Claude Opus 4.8 costs US$6.00 per 1M input tokens and US$30.00 per 1M output tokens. You are charged for what each request actually uses. Usage is paid from prepaid credits; 1 credit equals US$0.01.

What is the context window of Claude Opus 4.8?

The context window of Claude Opus 4.8 holds 1,000,000 tokens. One response can be up to 128,000 tokens long.

How fast is Claude Opus 4.8?

On Railwail, the median run time of Claude Opus 4.8 over the last 90 days was 3.2 s, based on 198 completed runs.

Is Claude Opus 4.8 better than Claude Opus 5.5?

That depends on the task. Claude Opus 4.8 (Anthropic) and Claude Opus 5.5 (Anthropic) are both models in the Text & chat category. The comparison page shows their prices and specifications side by side.

Compare Claude Opus 4.8 and Claude Opus 5.5

Can Claude Opus 4.8 process images?

Yes. Claude Opus 4.8 accepts images as input in addition to text.

How do I use Claude Opus 4.8 through the API?

Create a Railwail API key and send your request with the model ID claude-opus-4-8. Code examples for curl, Python and JavaScript are in the API section of this page.

08

Comparable models

All in this category

Use Claude Opus 4.8 via the API

One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = US$0.01.