{"uid":"cap_Vt-f9A0LdFDs4vKfgBybR","slug":"netintel-dev-gpt-5-4-mini-chat-completions-x402-4581cd5d","name":"netintel.dev GPT-5.4-mini Chat Completions (x402)","description":"Call OpenAI's gpt-5.4-mini via a single pay-per-call x402 endpoint — no OpenAI account or API key needed, pay $0.04 per request in USDC. Standard OpenAI chat.completions request/response shape, capped input and output. Search terms: OpenAI, gpt-5.4-mini, chat completion, LLM, no API key.","url":"https://netintel.dev/openai/gpt-5-4-mini","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 ~36000 chars total."},"max_completion_tokens":{"type":"number","description":"Max output tokens. Optional — defaults to 2048, capped at 2048."}}},"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.4-mini","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.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Zx4-jQEKb0kQZ_-Rkp3XQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Proxies a single OpenAI gpt-5.4-mini chat completion request via x402 pay-per-call at $0.04 USDC — no OpenAI account or API key required.","exampleAgentPrompt":"Ask gpt-5.4-mini to write a short product description for my new app called 'TaskFlow' — a project management tool for remote teams — keep it under 100 words and punchy.","exampleUseCases":[{"title":"One-off LLM task in agent pipeline","prompt":"Use gpt-5.4-mini to classify this support ticket as 'billing', 'technical', or 'general' and give a one-sentence summary: 'I was charged twice this month and my account still shows unpaid.'"},{"title":"Serverless content generation without OpenAI account","prompt":"I need gpt-5.4-mini to rewrite this paragraph in a friendlier, more casual tone — no OpenAI key, just pay per call: 'Your subscription has been terminated due to non-payment.'"},{"title":"Agent reasoning step with capped cost","prompt":"Have gpt-5.4-mini decide which of these three marketing slogans best fits a coffee brand targeting millennials: 'Wake Up Different', 'Brewed Bold', 'Your Morning, Elevated' — explain its pick in two sentences."}],"resultDescription":"Returns a standard OpenAI chat.completion JSON object containing: an id, model name, created timestamp, object type ('chat.completion'), a choices array with the assistant's message and finish_reason, and a usage object with prompt_tokens, completion_tokens, and total_tokens. Output tokens are capped at 2048.","failureModes":["Payment not received or insufficient USDC balance — x402 payment required error","Input exceeds ~36000 character cap — request rejected or truncated","max_completion_tokens set above 2048 — silently capped or rejected","Malformed messages array missing required role or content fields — 400 validation error","Upstream OpenAI API outage — 502/503 proxy error","Network timeout on longer completions"],"whenToPreferThis":"Choose this endpoint when you need a single gpt-5.4-mini chat completion without setting up an OpenAI account or managing API keys, especially in agent pipelines where pay-per-call USDC micropayments via x402 are preferred over subscriptions. It is ideal for serverless, low-volume, or cost-controlled use cases where you want the OpenAI standard request/response shape with predictable $0.04/call pricing and no recurring billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:43:54.629Z","isFirstParty":false}