NEAR AICloud
Sign inStart building
Claude Sonnet 5 icon
Claude Sonnet 5
anthropic/claude-sonnet-5
1000K context|$2/M input tokens|$10/M output tokens|$0.2/M cache read

Anthropic's best combination of speed and intelligence for coding, agents, and professional workloads, with adaptive reasoning.

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

Sample code and API for Claude Sonnet 5

Use the native Messages API (/v1/messages) for Claude models.

const response = await fetch("https://cloud-api.near.ai/v1/messages", { method: "POST", headers: { "x-api-key": "<YOUR-NEAR-AI-CLOUD-API-KEY>", "anthropic-version": "2023-06-01", "Content-Type": "application/json", }, body: JSON.stringify({ model: "anthropic/claude-sonnet-5", max_tokens: 1024, messages: [{ role: "user", content: "What is the meaning of life?" }], }), }) console.log(await response.json())

You can also use NEAR AI Cloud with Anthropic's client 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", max_tokens: 1024, messages: [{ role: "user", content: "What is the meaning of life?" }], }) console.log(message.content)

Privacy & Execution

This is an Incognito model: it runs on a partner provider rather than inside a NEAR AI GPU TEE. Requests are routed through a shared NEAR AI API key, so your identity is not disclosed to the provider.

Your prompt content, however, is transmitted to and processed by Anthropic in accordance with their terms of service and privacy policy. Data is encrypted in transit, but execution happens outside of trusted hardware — there is no hardware-level privacy, attestation, or cryptographic proof of execution for this model.