We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Anthropic: Claude Opus 4.8

anthropic/claude-opus-4.8
TextInput: text · image · fileToolsReasoning1MAdded May 27, 2026

Try Anthropic: Claude Opus 4.8 now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Anthropic: Claude Opus 4.8 at a glance

  • Input price is 1011% higher than the median of 434 Text models.
  • Context window of 1,000,000 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.
  • Accepts images as input (vision).
  • A typical request (1,000 input / 500 output tokens) costs about $0.06.

About Anthropic: Claude Opus 4.8

Claude Opus 4.8 is a text generation model from Anthropic, listed in the Opus family and described by the provider as its most capable generally available model in that family. It is offered on api14 under the model id anthropic/claude-opus-4.8, so you can treat it as a drop-in option when you need Anthropic's strongest Opus-tier text model rather than a smaller or older sibling.

The model accepts text, images and files as input, and it returns text. Its context window is 1,000,000 tokens, which is large enough to hold very long documents, codebases or multi-turn histories in a single request, and its maximum output is 128,000 tokens. Reasoning is supported, so the model can work through problems before producing its final answer. Because input modalities include images and files alongside text, you can send mixed material such as a specification document plus a screenshot in one call and ask for a written result.

Those capabilities point to a fairly specific set of use cases. Long-context work is the obvious fit: reviewing lengthy contracts, summarising large research reports, or answering questions across a whole repository of documents. The image and file inputs suit tasks like extracting structured data from scanned forms, comparing a design mockup against written requirements, or turning a PDF plus a question into a written analysis. Reasoning support helps on problems that benefit from step-by-step deliberation, such as multi-constraint planning, debugging logic, or evaluating trade-offs in a technical decision. Text-only output keeps the result easy to pipe into downstream systems.

Calling it through api14 works like any other OpenAI-compatible chat completion: send a request to the chat completions endpoint with the model field set to anthropic/claude-opus-4.8. The supported parameters are include_reasoning, max_completion_tokens, max_tokens, reasoning, reasoning_effort, response_format, stop, structured_outputs, tool_choice, tools and verbosity. In practice that means you can cap output length, control how much reasoning effort the model spends, request structured or JSON-shaped responses, define tools and control tool selection for function calling, and set stop sequences. The reasoning and verbosity parameters give you some control over how much internal deliberation and how much prose the model produces.

One practical consideration is that this is a text-output model, so if your application needs generated images, audio or embeddings, a different model will fit better. The 128,000-token output ceiling is generous but still finite, so extremely large single-response generations may need to be split across calls. For straightforward, high-volume tasks where deep reasoning and a 1M-token context are not needed, a lighter model may be the more sensible choice.

How to call the Anthropic: Claude Opus 4.8 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "anthropic/claude-opus-4.8".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "anthropic/claude-opus-4.8",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

include_reasoningmax_completion_tokensmax_tokensreasoningreasoning_effortresponse_formatstopstructured_outputstool_choicetoolsverbosity

Specifications

Context length
1,000,000
Max output
128,000
Input
text, image, file
Output
text

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

Anthropic: Claude Opus 4.8: frequently asked questions

How much does the Anthropic: Claude Opus 4.8 API cost?
Anthropic: Claude Opus 4.8 costs Input $17.50 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Anthropic: Claude Opus 4.8?
Anthropic: Claude Opus 4.8 reads up to 1,000,000 tokens per request: prompt, history and documents together. It writes up to 128,000 output tokens per response.
What can Anthropic: Claude Opus 4.8 do?
Anthropic: Claude Opus 4.8 accepts text, image, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call Anthropic: Claude Opus 4.8 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "anthropic/claude-opus-4.8". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Anthropic: Claude Opus 4.8?
Comparable Text models at a similar price: OpenAI: GPT-6 Astra (batch), OpenAI: GPT-6 Astra Pro (batch), Anthropic: Claude Fable 5.1 (batch). Each runs through the same API key, so switching is one string.

Anthropic: Claude Opus 4.8 community

New topic

This community has no topics yet. Open the first one about Anthropic: Claude Opus 4.8.