Claude Opus 5 API
Anthropic model for complex agentic coding and enterprise work, with adaptive reasoning and a 1M-token context window.
- Input / 1M tokens
- $5
- Output / 1M tokens
- $25
- Cache read / 1M tokens
- $0.5
- Context window
- 1M 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 documentationMake your first request
Call /v1/messages over HTTPS.
Get an API key and replace the API key placeholder below.
This HTTP example uses HTTPS. Use the SDK below to verify deployment evidence and the response signature.
Build and Verify with the SDK
Use the Anthropic Messages API and verify the Gateway’s response signature.
Verification guideSet NEARAI_API_KEY before running an example. Messages use Gateway signatures and do not support field-level E2EE.
Claude Opus 5 API FAQ
- How much does the Claude Opus 5 API cost?
- $5.00 per 1M input tokens and $25.00 per 1M output tokens on NEAR AI Cloud, and $0.50 per 1M cached input tokens.
- What is the context window of Claude Opus 5?
- 1M tokens.
- How do I call the Claude Opus 5 API?
- Create an API key on NEAR AI Cloud, then send requests to https://cloud-api.near.ai/v1/messages with the model ID anthropic/claude-opus-5. The endpoint follows the Anthropic Messages API, so Anthropic SDKs work with the NEAR AI Cloud base URL.
- Where does Claude Opus 5 run?
- On the model provider's infrastructure, under its terms. NEAR AI routes requests with shared provider credentials, so your NEAR AI account credentials are not forwarded. TEE attestation is not provided for this model.