{"uid":"cap_kOG5OtO8dw6yS2WSKITed","slug":"tokensale-claude-fable-5-chat-completions-ce714e0f","name":"Tokensale Claude Fable-5 Chat Completions","description":"Один API-ключ для GPT и Claude-совместимых клиентов. Пакетные токены, прозрачное списание и контроль доступа.","url":"https://tokensale.maiapp.ru/x402/v1/models/claude-fable-5/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","const":"claude-fable-5"},"stream":{"type":"boolean","const":false},"messages":{"type":"array","items":{"type":"object"},"minItems":1},"max_tokens":{"type":"integer","minimum":1},"temperature":{"type":"number","maximum":2,"minimum":0},"max_completion_tokens":{"type":"integer","minimum":1}}},"responseSchema":{"type":"json","example":{"id":"x402-request","model":"claude-fable-5","usage":{"total_tokens":2,"prompt_tokens":1,"completion_tokens":1},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello back"},"finish_reason":"stop"}],"modelCatalog":[{"id":"claude-fable-5","payment":{"scheme":"upto","network":"eip155:8453","currency":"USDC"},"protocols":["messages"],"contextTokens":200000,"maxInputTokens":195904,"maxOutputTokens":4096,"priceUsdPerMillionTokens":{"input":"0.336000","output":"1.680000","cacheRead":"0.033600","cacheWrite":"0.672000"}}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006893","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.006893/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006893","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006893","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zEEuIAI2nwWkDDY5OKfbF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006893","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a chat message to the claude-fable-5 language model via a GPT/Claude-compatible API with per-token USDC micropayment billing over x402.","exampleAgentPrompt":"Using the Tokensale claude-fable-5 endpoint, send this conversation to the model and give me its reply: system prompt 'You are a helpful assistant', user message 'Explain transformer attention in 3 sentences', max 300 tokens, temperature 0.7.","exampleUseCases":[{"title":"Crypto-billed Claude chatbot backend","prompt":"Route my chatbot's messages through the Tokensale claude-fable-5 API so each response is billed in USDC per token — send this user message: 'What are the pros and cons of solar panels?' with a 500-token limit and temperature 0.5."},{"title":"Agent reasoning step via Claude","prompt":"I need my AI agent to reason through a multi-step problem — send the following messages to claude-fable-5 via Tokensale: system 'You are a strategic advisor', user 'How should a startup prioritize its first 3 hires?', up to 400 tokens."},{"title":"Low-cost Claude API for prototyping","prompt":"I'm prototyping a summarization tool and want to test it with claude-fable-5 through Tokensale — send this prompt: 'Summarize the following article in 2 bullet points: [article text]', max 200 tokens, temperature 0.3."}],"resultDescription":"Returns an OpenAI-compatible chat completion JSON object containing the assistant's reply message, finish reason, prompt/completion/total token counts, and a model catalog entry with pricing details for claude-fable-5 (input $0.336/M tokens, output $1.68/M tokens, cache read/write rates, 200k context window).","failureModes":["Insufficient USDC balance or failed x402 payment results in 402 Payment Required","Invalid or malformed messages array returns 400 Bad Request","Exceeding max_tokens or context window limit causes truncation or error","Streaming requested (stream: true) is rejected as the endpoint only supports non-streaming","Model name mismatch (anything other than 'claude-fable-5') returns validation error","Network timeout if the upstream Claude model is slow to respond"],"whenToPreferThis":"Choose this endpoint when you need Claude-compatible chat completions billed transparently in USDC per token via the x402 micropayment protocol, with no monthly subscription — ideal for agents, bots, or apps that want pay-as-you-go Claude access using crypto on the Base network, and where GPT-client library compatibility is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-24T12:40:20.190Z","isFirstParty":false,"canonicalSlug":"tokensale-claude-fable-5-chat-completions-ce714e0f"}