{"uid":"cap_AC7TVXB97Vn4zTvJGqmjQ","slug":"netintel-api-ai-chat-completion-mcp-messages-0ffa051f","name":"NetIntel API – AI Chat Completion (MCP/Messages)","description":"Network intelligence API — 138 endpoints, all pay-per-call via x402 micropayments (USDC on Base or Solana mainnet).\n\nNetIntel is agent fair-trade aligned: transparent per-call pricing in USDC on Base or Solana via x402, no API keys or signup, and automatic no-charge on server errors, upstream failures, and input-validation rejections — failed calls are never billed across NetIntel's network, domain, and data-intelligence endpoints.","url":"https://netintel-production-440c.up.railway.app/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":1,"rating":{"score":"0.83","successRate":"1.00","reviews":1,"stars":"4.3","state":"rated"},"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_BBDUsrDaACnB4ZwCNXwAn","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":"Processes natural language chat messages via an OpenAI-compatible chat completion interface, returning AI-generated responses with token usage stats, paid per-call via x402 micropayments in USDC on Base.","exampleAgentPrompt":"Ask the NetIntel AI chat endpoint 'What is the capital of France?' and give me back the assistant's reply along with how many tokens were used — pay the per-call fee in USDC automatically.","exampleUseCases":null,"resultDescription":"Returns an OpenAI-compatible chat completion JSON object containing: the assistant's reply text inside choices[0].message.content, a finish_reason ('stop'), the model used (claude-sonnet-4-6), token usage breakdown (prompt_tokens, completion_tokens, total_tokens), a unique completion ID, and a Unix timestamp. No streaming — single synchronous response.","failureModes":["Input validation rejection — returns error without charge if message format is invalid","Upstream model failure — no charge on server or provider errors","Payment failure — x402 micropayment not completed, request not processed","Malformed request body — missing required messages field","Rate or quota issues on upstream Claude provider"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call AI chat completion with no signup, no API keys, and automatic no-charge on failed calls. Ideal for agents that want to query Claude on-demand using USDC micropayments on Base mainnet via x402, especially in agentic pipelines where predictable per-call billing and zero-friction onboarding matter. Prefer over traditional OpenAI/Anthropic direct APIs when you need crypto-native payment rails without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-07-17T21:14:22.867Z","lastSuccessfullyRanAt":"2026-07-17T21:14:22.867Z","lastHealthCheckAt":"2026-09-14T00:52:46.570Z","isFirstParty":false}