NEAR AICloud
Sign inStart building
Claude Opus 4.8 icon
Claude Opus 4.8
anthropic/claude-opus-4-8
1000K context|$5/M input tokens|$25/M output tokens|$0.5/M cache read

Anthropic's most capable model. Next-generation built for long-running agents and complex coding tasks. 1M token context window with 128K max output.

Input / M tokens
$5
Output / M tokens
$25
Cache read
$0.5
Context
1000K

Sample code and API for Claude Opus 4.8

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-opus-4-8", 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-opus-4-8", 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.