Claude Opus 5 is now live on CometAPI →
A

Claude Opus 5

Input:$4/M
Output:$20/M
Released:Jul 24, 2026

Claude Opus 5 is available today. It’s a thoughtful and proactive model that comes close to the frontier intelligence of Claude Fable 5 at half the price.

New
Commercial Use

Playground for Claude Opus 5

Explore Claude Opus 5's Playground — an interactive environment to test models, run queries in real time. Try prompts, adjust parameters, and iterate instantly to accelerate development and validate use cases.

Pricing for Claude Opus 5

Explore competitive pricing for Claude Opus 5, designed to fit various budgets and usage needs. Our flexible plans ensure you only pay for what you use, making it easy to scale as your requirements grow. Discover how Claude Opus 5 can enhance your projects while keeping costs manageable.

ModelComet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
claude-opus-5
Input:$4/M
Output:$20/M
Input:$5/M
Output:$25/M
-20%

Sample code and API for Claude Opus 5

Access comprehensive sample code and API resources for Claude Opus 5 to streamline your integration process. Our detailed documentation provides step-by-step guidance, helping you leverage the full potential of Claude Opus 5 in your projects.

# Get your CometAPI key from https://www.cometapi.com/console/token
# Export it as: export COMETAPI_KEY="your-key-here"
curl https://api.cometapi.com/v1/messages \
  --header "Authorization: $COMETAPI_KEY" \
  --header "content-type: application/json" \
  --data \
'{
  "model": "claude-opus-5",
  "max_tokens": 1024,
  "messages": [
    {"role": "user", "content": "Hello, Claude"}
  ]
}'

cURL Code Example

# Get your CometAPI key from https://www.cometapi.com/console/token
# Export it as: export COMETAPI_KEY="your-key-here"
curl https://api.cometapi.com/v1/messages \
  --header "Authorization: $COMETAPI_KEY" \
  --header "content-type: application/json" \
  --data \
'{
  "model": "claude-opus-5",
  "max_tokens": 1024,
  "messages": [
    {"role": "user", "content": "Hello, Claude"}
  ]
}'

Python Code Example

import anthropic
import os

# Get your CometAPI key from https://www.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com"

client = anthropic.Anthropic(
    base_url=BASE_URL,
    api_key=COMETAPI_KEY,
)
message = client.messages.create(
    model="claude-opus-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello, Claude"}],
)
print(message.content[0].text)

JavaScript Code Example

import Anthropic from "@anthropic-ai/sdk";

// Get your CometAPI key from https://www.cometapi.com/console/token, and paste it here
const api_key = process.env.COMETAPI_KEY || "<YOUR_COMETAPI_KEY>";
const base_url = "https://api.cometapi.com";

const anthropic = new Anthropic({
  apiKey: api_key,
  baseURL: base_url,
});

const message = await anthropic.messages.create({
  model: "claude-opus-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello, Claude" }],
});

console.log(message.content?.[0]?.text ?? message);

Versions of Claude Opus 5

The reason Claude Opus 5 has multiple snapshots may include potential factors such as variations in output after updates requiring older snapshots for consistency, providing developers a transition period for adaptation and migration, and different snapshots corresponding to global or regional endpoints to optimize user experience. For detailed differences between versions, please refer to the official documentation.

Version
claude-opus-5