{"uid":"cap_91p-sCOG8U9sKq8uPwQVI","slug":"netintel-gpt-5-2-chat-completion-via-x402-ab428639","name":"NetIntel GPT-5.2 Chat Completion via x402","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/openai/gpt-5-2","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":{"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":"OpenAI chat messages: [{role:'system'|'user'|'assistant', content:string}]. Input capped ~96000 chars total."},"max_completion_tokens":{"type":"number","description":"Max output tokens. Optional — defaults to 4096, capped at 4096."}}},"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":"Assistant message + finish_reason."},"created":{"type":"number","description":"Unix timestamp (seconds)"}}}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-abc123","model":"gpt-5.2","usage":{"total_tokens":13,"prompt_tokens":11,"completion_tokens":2},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hi!"},"finish_reason":"stop"}],"created":1735689600}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","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.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JPMqxro_fg3SMIDdIsn18","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides access to OpenAI's GPT-5.2 model via a pay-per-call chat completion endpoint using x402 micropayments, returning standard OpenAI-compatible chat responses.","exampleAgentPrompt":"Ask GPT-5.2 to explain the difference between TCP and UDP in simple terms — use the NetIntel x402 chat endpoint so it charges per call in USDC with no API key needed.","exampleUseCases":[{"title":"Keyless GPT-5 for automated pipelines","prompt":"I need to call GPT-5.2 from my automation script without managing an OpenAI API key — just send this system prompt 'You are a helpful assistant' and user message 'Summarize the concept of zero-knowledge proofs in 3 sentences' and pay per call."},{"title":"On-demand content drafting","prompt":"Use the NetIntel GPT-5.2 endpoint to draft a short product description for my new ergonomic keyboard — keep it under 100 words and pay the micropayment per call."},{"title":"Agent reasoning with latest GPT model","prompt":"My AI agent needs to reason through a multi-step problem: first message is system role 'You are a logical reasoning expert', then user asks 'If all bloops are razzles and all razzles are lazzles, are all bloops lazzles?' — get the answer via GPT-5.2 on the NetIntel x402 endpoint."}],"resultDescription":"Returns a standard OpenAI chat completion JSON object containing the assistant's reply message, finish reason (e.g. 'stop'), model name ('gpt-5.2'), token usage breakdown (prompt_tokens, completion_tokens, total_tokens), a unique completion ID, and a Unix creation timestamp.","failureModes":["Input exceeds ~96,000 character cap — request rejected without charge","max_completion_tokens exceeds 4096 — capped or rejected","Malformed messages array (missing role or content fields) — validation error, no charge","Upstream OpenAI API failure — no charge applied per NetIntel policy","Network or server error on Railway deployment — no charge applied"],"whenToPreferThis":"Choose this endpoint when you need GPT-5.2 chat completions without an OpenAI API key or subscription, want true pay-per-call billing in USDC via x402 micropayments, and require guaranteed no-charge on failed calls. Prefer over direct OpenAI access when operating in agent pipelines that use x402 payment rails, or when avoiding API key management overhead. Particularly suited for low-frequency or bursty workloads where a subscription would be wasteful.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:47:00.844Z","isFirstParty":false}