{"uid":"cap_aEE1cY7hTe0bwu-LRJyLb","slug":"netintel-dev-gpt-5-2-chat-completions-x402-35d3ab7d","name":"netintel.dev GPT-5.2 Chat Completions (x402)","description":"Call OpenAI's gpt-5.2 via a single pay-per-call x402 endpoint — no OpenAI account or API key needed, pay $0.20 per request in USDC. Standard OpenAI chat.completions request/response shape, capped input and output. Search terms: OpenAI, gpt-5.2, chat completion, LLM, no API key.","url":"https://netintel.dev/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_lPmUI_C1N4bEwV87gx9ko","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":"Call OpenAI's gpt-5.2 model via a pay-per-call x402 endpoint without needing an OpenAI account or API key, paying $0.20 USDC per request.","exampleAgentPrompt":"Ask gpt-5.2 to write a detailed comparison of REST and GraphQL APIs — no more than 4096 output tokens, using the messages: system 'You are a helpful technical writer', user 'Compare REST and GraphQL APIs in detail.'","exampleUseCases":[{"title":"On-demand LLM for agentic pipeline","prompt":"I need to call gpt-5.2 once to summarize this user support ticket without setting up an OpenAI account — send the system message 'You are a helpful support agent' and user message 'Summarize this ticket: user cannot log in after password reset, error says session expired immediately.'"},{"title":"Single-call code review","prompt":"Use gpt-5.2 to review this Python function for bugs and improvements — system: 'You are an expert Python developer', user: 'Review this function: def add(a, b): return a - b' — keep output under 1000 tokens."},{"title":"Pay-per-use content generation","prompt":"I want to generate a product description for a standing desk using gpt-5.2, paying per call in USDC — system message 'You are a copywriter', user message 'Write a 150-word product description for an ergonomic standing desk with height memory settings.'"}],"resultDescription":"Returns a standard OpenAI chat.completion object including an id, model name, unix timestamp, choices array with the assistant message and finish_reason, and a usage object showing prompt_tokens, completion_tokens, and total_tokens. Output is capped at 4096 tokens.","failureModes":["Payment not fulfilled — x402 payment challenge not resolved, request rejected","Input too long — messages array exceeds ~96000 character cap, returns error","max_completion_tokens exceeds 4096 — clamped or rejected","Malformed messages array — missing required role or content fields","Model unavailability — upstream OpenAI outage causes failure","Invalid bodyType — must be json for chat completions"],"whenToPreferThis":"Choose this endpoint when you need gpt-5.2 specifically (OpenAI's most capable model in this family) on a pay-per-call basis without managing an OpenAI API key or subscription. Ideal for agents that need occasional high-quality LLM calls, one-off tasks in agentic workflows, or environments where crypto micropayments (x402/USDC) are preferred over credit card billing. Prefer this over the gpt-4.1 or gpt-4o-mini siblings when maximum reasoning quality is required and the $0.20/call cost is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:51:03.846Z","isFirstParty":false}