NEAR AI
Sign inStart building
All models

Claude Fable 5.1 API

Incognito
anthropic/claude-fable-5-1

Anthropic's most capable model for real-world agents and coding.

Input / 1M tokens
$10
Output / 1M tokens
$50
Cache read / 1M tokens
$0.25
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 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-fable-5-1", "max_tokens": 1024, "messages": [{"role": "user", "content": "What is the meaning of life?"}] }'

This HTTP example uses HTTPS. Use the SDK below to verify deployment evidence and the response signature.

02

Build and Verify with the SDK

Use the Anthropic Messages API and verify the Gateway’s response signature.

Verification guide

Set NEARAI_API_KEY before running an example. Messages use Gateway signatures and do not support field-level E2EE.

Setup

npm install @nearai/inference-sdk @anthropic-ai/sdk

Example

import Anthropic from "@anthropic-ai/sdk"; import { InferenceClient } from "@nearai/inference-sdk/node"; const apiKey = process.env.NEARAI_API_KEY; if (!apiKey) throw new Error("Set NEARAI_API_KEY first."); const inference = new InferenceClient({ apiKey, baseUrl: "https://cloud-api.near.ai/v1", e2ee: false, }); const anthropic = new Anthropic({ apiKey, baseURL: "https://cloud-api.near.ai", fetch: inference.fetch, maxRetries: 0, }); const response = await anthropic.messages.create({ model: "anthropic/claude-fable-5-1", max_tokens: 128, messages: [{ role: "user", content: "Hello!" }], }); // Verify before displaying the answer. const verified = await inference.verifyResponse(response.id); console.log(response.content .filter((block) => block.type === "text") .map((block) => block.text) .join("")); console.log("Verified signer:", verified.signatureKind);

JavaScript SDK guide

Claude Fable 5.1 API FAQ

How much does the Claude Fable 5.1 API cost?
$10.00 per 1M input tokens and $50.00 per 1M output tokens on NEAR AI Cloud, and $0.25 per 1M cached input tokens.
What is the context window of Claude Fable 5.1?
1M tokens.
How do I call the Claude Fable 5.1 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-fable-5-1. The endpoint follows the Anthropic Messages API, so Anthropic SDKs work with the NEAR AI Cloud base URL.
Where does Claude Fable 5.1 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.