NEAR AICloud
Sign inStart building
All models

Claude Sonnet 5.5

Incognito
Try in Playground
anthropic/claude-sonnet-5-5

Anthropic's latest Sonnet model, balancing speed and intelligence for everyday coding, agents, and enterprise work, with adaptive reasoning and a 1M-token context window.

Input / 1M tokens
$2
Output / 1M tokens
$10
Cache read / 1M tokens
$0.2
Context window
1000K tokens

Privacy & execution

This Incognito model runs on a partner provider’s infrastructure. NEAR AI routes requests using shared provider credentials, so your NEAR AI account credentials are not forwarded.

Your prompts are processed by the provider under its terms and privacy policy. HTTPS protects data in transit. Model TEE attestation and client-to-model end-to-end encryption are not provided for this model. Where available, Gateway signatures verify the request and response handled by the Gateway.

Verification documentation
01

Make your first request

Call /v1/messages over HTTPS.

Get an API key and replace the API key placeholder below.

curl https://cloud-api.near.ai/v1/messages \ -H "Content-Type: application/json" \ -H "x-api-key: <YOUR-NEAR-AI-CLOUD-API-KEY>" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model": "anthropic/claude-sonnet-5-5", "max_tokens": 1024, "messages": [{"role": "user", "content": "What is the meaning of life?"}] }'
02

Use the client SDK

Use Anthropic’s SDK with your API key.

These examples use the Messages API.

import Anthropic from "@anthropic-ai/sdk" const client = new Anthropic({ baseURL: "https://cloud-api.near.ai", apiKey: "<YOUR-NEAR-AI-CLOUD-API-KEY>", }) const message = await client.messages.create({ model: "anthropic/claude-sonnet-5-5", max_tokens: 1024, messages: [{ role: "user", content: "What is the meaning of life?" }], }) console.log(message.content)