{"uid":"cap_TyaZjL4XFI-5PUHA2D-V3","slug":"netintel-dev-chat-completions-claude-sonnet-79193bcc","name":"netintel.dev Chat Completions (Claude Sonnet)","description":"OpenAI-compatible chat completions over x402, answered by Claude Sonnet 4.6 — send a messages array and get an assistant reply for Q&A, reasoning, agent planning, coding help, summarization, extraction, and classification. Body is OpenAI chat.completions-shaped ({model?, messages:[{role,content}], max_tokens?, temperature?}); response is a chat.completion object. Flat $0.06; inputs capped ~6KB, max_tokens 1024; no streaming in v1.","url":"https://netintel.dev/messages","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["messages"],"properties":{"model":{"type":"string","description":"Model to use. Supported: claude-sonnet-4-6 (aliases: balanced, sonnet). Optional — defaults to claude-sonnet-4-6."},"top_p":{"type":"number","description":"Nucleus sampling (0–1). Optional; ignored if temperature is set."},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string","description":"system, user, or assistant"},"content":{"type":"string","description":"Message text"}}},"description":"Chat messages in OpenAI format. Each item is {role: 'system'|'user'|'assistant', content: string}. System messages are applied as the system prompt."},"max_tokens":{"type":"number","description":"Maximum output tokens. Optional — defaults to 1024, capped at 1024."},"temperature":{"type":"number","description":"Sampling temperature (0–1). Optional."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"id":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","description":"prompt_tokens, completion_tokens, total_tokens"},"object":{"type":"string","description":"Always 'chat.completion'"},"choices":{"type":"array","description":"One choice with the assistant message and a finish_reason (stop/length/content_filter/tool_calls)."},"created":{"type":"number","description":"Unix timestamp (seconds)"}}}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-abc123","model":"claude-sonnet-4-6","usage":{"total_tokens":22,"prompt_tokens":14,"completion_tokens":8},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"The capital of France is Paris."},"finish_reason":"stop"}],"created":1735689600}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","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.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yrOGp2AsEf4BORAve7CPh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","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 array to Claude Sonnet via a pay-per-call x402 micropayment proxy and returns an OpenAI-compatible chat completion response.","exampleAgentPrompt":"Ask Claude Sonnet: 'Summarize the key differences between TCP and UDP in plain English' — use a temperature of 0.7 and limit the response to 512 tokens.","exampleUseCases":null,"resultDescription":"Returns an OpenAI-compatible chat.completion object containing: one or more choices with the assistant's reply text and a finish_reason (stop, length, content_filter, or tool_calls), a Unix timestamp, the model name, a unique completion ID, and a usage object with prompt_tokens, completion_tokens, and total_tokens counts.","failureModes":["Payment not included or insufficient USDC — 402 Payment Required","Messages array missing or empty — 400 Bad Request","Unsupported model name specified — 400 or fallback to default","max_tokens exceeds cap of 1024 — silently capped or error","Malformed message role (not system/user/assistant) — 400 Bad Request","Upstream Anthropic API unavailability — 502 or 503","Rate limit exceeded — 429 Too Many Requests"],"whenToPreferThis":"Choose this endpoint when you need one-off or low-volume Claude Sonnet inference without committing to an Anthropic subscription or API key — ideal for agents that pay per call via x402 USDC micropayments on Base mainnet. Prefer this over direct Anthropic API when you want usage-based billing with no setup, or when operating in a micropayment-native agentic stack. Not suitable for streaming responses, tool/function calling, or completions requiring more than 1024 output tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:42:54.452Z","isFirstParty":false}