Claude 4.5 is now on CometAPI

  • Home
  • Models
    • Grok 4 API
    • Suno v4.5
    • GPT-image-1 API
    • GPT-4.1 API
    • Qwen 3 API
    • Llama 4 API
    • GPT-4o API
    • GPT-4.5 API
    • Claude Opus 4 API
    • Claude Sonnet 4 API
    • DeepSeek R1 API
    • Gemini2.5 pro
    • Runway Gen-3 Alpha API
    • FLUX 1.1 API
    • Kling 1.6 Pro API
    • All Models
  • Enterprise
  • Pricing
  • API Docs
  • Blog
  • Contact
Sign Up
Log in

1M

reasoning

LLm

Anthropic

Claude Sonnet 4.5 API

Anthropic’s Claude Sonnet 4.5 is a 2025 update focused on long-duration autonomous work, stronger tool/computer use, tighter safety/alignment, and richer developer features (context editing, memory, in-chat code execution and file creation). Benchmarks and vendor tests emphasize large gains on coding and “agentic” tasks (e.g., Anthropic reports ~30 hours of continuous autonomous coding in internal tests and big jumps on OS/tool-use benchmarks).
Get Free API Key
  • Flexible Solution
  • Constant Updates
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.cometapi.com/v1",
    api_key="<YOUR_API_KEY>",    
)

response = client.chat.completions.create(
    model="claude-sonnet-4-5",
    messages=[
        {
            "role": "system",
            "content": "You are an AI assistant who knows everything.",
        },
        {
            "role": "user",
            "content": "Tell me, why is the sky blue?"
        },
    ],
)

message = response.choices[0].message.content

print(f"Assistant: {message}")

All AI Models in One API
500+ AI Models

Free For A Limited Time! Register Now 

Get 1M Free Token Instantly!

Claude logp

Claude Sonnet 4.5 API

Anthropic’s Claude Sonnet 4.5 is a 2025 update focused on long-duration autonomous work, stronger tool/computer use, tighter safety/alignment, and richer developer features (context editing, memory, in-chat code execution and file creation). Benchmarks and vendor tests emphasize large gains on coding and “agentic” tasks (e.g., Anthropic reports ~30 hours of continuous autonomous coding in internal tests and big jumps on OS/tool-use benchmarks).

Key features

  • Agentic capability: designed to run multi-step agents and coordinate multi-agent workflows.
  • Coding & software use: Anthropic markets Claude Sonnet 4.5  as its best coding model, capable of end-to-end software work (design → implement → test → deploy).
  • Hybrid reasoning / Thinking mode: supports on-demand extended reasoning (“thinking”) to trade latency for higher accuracy on complex tasks.
  • Large context & output: advertised 200K context window and up to 64K output tokens for very large inputs/outputs.

Technical details (what the release changes)

Architecture & focus: Claude Sonnet 4.5  is a Sonnet-series mid-to-frontier model tuned for multi-step tool use, extended task horizons, and improved deterministic behavior when interacting with external systems. Anthropic emphasizes improvements in computer use (automation of workflows across files, spreadsheets, and developer tools) and reasoning/math capabilities versus previous Sonnet releases.

Long-horizon operation: The release specifically highlights the model’s ability to run as a continuous agent for extended periods (reported examples up to ~30 hours of autonomous operation in internal and early-customer tests), a large step up from previous multi-hour limits. This is important for use cases that require continuous monitoring, orchestration, or multi-step software projects.

Tooling & context: Claude Sonnet 4.5 ships with improved context-management and agent tooling (context editing, memory tools, multi-agent support), enabling developers to manage and persist agent state more robustly.

Performance benchmarks

  • SWE-bench Verified: 77.2% (200K thinking budget, scaffold + tools); 78.2% in 1M context; 82.0% reported for a “high-compute” candidate selection regime.
  • OSWorld (computer tasks): 61.4% for Sonnet 4.5 vs 42.2% for Sonnet 4 (four months earlier).
  • Autonomy length (internal tests): >30 hours continuous autonomous coding/agent operation (previous generation ~7 hours).
  • Operating-system/tool benchmark: Anthropic reports a jump to ~60% versus ~40% for the predecessor on an OS interaction benchmark — showing improved reliability when the model controls software.
Claude Sonnet 4.5

Primary use cases

  • Software engineering & code generation: Large-scale code synthesis, multi-file project generation, autonomous coding agents.
  • Agentic automation & orchestration: Building long-lived agents that monitor systems, run repeated tasks, and coordinate tools (calendar, email, VMs, spreadsheets).
  • Data analysis & finance/cybersecurity workflows: Deep analysis over documents, litigation briefs, financial models, and cybersecurity triage where multi-step reasoning and reliable tool use matter.

How to call Claude Sonnet 4.5 API from CometAPI

Model version:

API call pointcursor suitable point
claude-sonnet-4-5-20250929-thinkingcometapi-sonnet-4-5-20250929-thinking
claude-sonnet-4-5-20250929cometapi-sonnet-4-5-20250929
claude-sonnet-4-5cometapi-sonnet-4-5

Claude Sonnet 4.5 API Pricing in CometAPI,20% off the official price:

  • Input Tokens: $2.4/ M tokens
  • Output Tokens: $12/ M tokens

Required Steps

  • Log in to cometapi.com. If you are not our user yet, please register first
  • Get the access credential API key of the interface. Click “Add Token” at the API token in the personal center, get the token key: sk-xxxxx and submit.
  • Get the url of this site: https://api.cometapi.com/

Use Method

  1. Select the “claude-sonnet-4-5-20250929-thinking”or “claude-sonnet-4-5-20250929","claude-sonnet-4-5” endpoint to send the API request and set the request body. The request method and request body are obtained from our website API doc. Our website also provides Apifox test for your convenience.
  2. Replace <YOUR_API_KEY> with your actual CometAPI key from your account.
  3. Insert your question or request into the content field—this is what the model will respond to.
  4. . Process the API response to get the generated answer.

CometAPI provides a fully compatible REST API—for seamless migration. Key details:

  • Base URL: https://api.cometapi.com/v1/messages
  • Model Names: “ “claude-sonnet-4-5-20250929-thinking”or “claude-sonnet-4-5-20250929","claude-sonnet-4-5”
  • Authentication: Bearer token via Authorization: Bearer YOUR_CometAPI_API_KEY header
  • Content-Type: application/json .

Here’s a sample cURL snippet for invoking the Claude Sonnet 4.5 API:

curl --location --request POST 'https://api.cometapi.com/v1/messages' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-opus-4-1-20250805",
"max_tokens": 1000,
"thinking": {
"type": "enabled",
"budget_tokens": 1000
},
"messages": [
{
"role": "user",
"content": "Are there an infinite number of prime numbers such that n mod 4 == 3?"
}
]
}'
Start Today

One API
Access 500+ AI Models!

Free For A Limited Time! Register Now
Get 1M Free Token Instantly!

Get Free API Key
API Docs

Related posts

Claude Sonnet 4.5
new, Technology

Claude Sonnet 4.5 — what’s new, how it performs, and why you might pick it

2025-09-30 anna No comments yet

Claude Sonnet 4.5 (commonly shorted to Claude 4.5) is Anthropic’s September 29, 2025 frontier release focused on long-horizon agentic work, coding, and “computer use” (automating multi-step tasks across tools). It delivers large jumps in autonomous coding duration, tool use, and aligned behavior, while keeping the same per-token pricing as the previous Sonnet release. For teams […]

Technology

Can Claude AI Fill Out Applications for you Directly on Website

2025-06-27 anna No comments yet

Anthropic’s Claude AI has swiftly evolved from a conversational assistant into a powerful agent capable of interacting with digital interfaces as a human would. One of its most groundbreaking capabilities—filling out applications and forms directly on websites—promises to transform how businesses and individuals handle repetitive data-entry tasks. Claude’s Origins and Ethical Foundations Anthropic launched Claude […]

Technology

What is Claude Sonnet 4? How to Access it?

2025-05-26 anna No comments yet

In May 2025, Anthropic unveiled Claude Sonnet 4 alongside its sibling model Claude Opus 4, marking a major milestone in the evolution of the Claude family of large language models. Building on the strengths of its predecessor, Claude Sonnet 3.7, Sonnet 4 introduces a suite of enhancements targeting reasoning depth, coding proficiency, and seamless tool […]

500+ AI Model API,All In One API. Just In CometAPI

Models API
  • GPT API
  • Suno API
  • Luma API
  • Sora API
Developer
  • Sign Up
  • API DashBoard
  • Documentation
  • Quick Start
Resources
  • Pricing
  • Enterprise
  • Blog
  • AI Model API Articles
  • Discord Community
Get in touch
  • support@cometapi.com

© CometAPI. All Rights Reserved.  

  • Terms & Service
  • Privacy Policy