{"uid":"cap_T3Gunr1MxY_Ar2UYD_Kp3","slug":"netintel-openai-gpt-5-4-nano-chat-completion-77d51d7f","name":"NetIntel OpenAI GPT-5.4-nano Chat Completion","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-4-nano","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 ~24000 chars total."},"max_completion_tokens":{"type":"number","description":"Max output tokens. Optional — defaults to 1024, capped at 1024."}}},"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-nano","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.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zv_roWc2Kzj8eNWZyDOl5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Proxies chat completion requests to OpenAI's GPT-5.4-nano model via a pay-per-call x402 micropayment endpoint, returning standard OpenAI-format chat responses.","exampleAgentPrompt":"Ask GPT-5.4-nano: 'What are three concise tips for writing better SQL queries?' — pay per call, no API key needed, and cap the response at 512 tokens.","exampleUseCases":[{"title":"One-off LLM call without subscription","prompt":"I need a quick answer from GPT-5.4-nano: 'Summarize the main differences between TCP and UDP in two sentences.' Pay per call only, no signup — cap the output at 200 tokens."},{"title":"Agent reasoning step with lightweight model","prompt":"Use the nano GPT model to classify this support ticket as 'billing', 'technical', or 'general': 'I was charged twice last month and can't log into my account.' Just return the category label, limit output to 50 tokens."},{"title":"System-prompted content generation","prompt":"Send this to GPT-5.4-nano with a system prompt saying 'You are a formal business writer' and a user message saying 'Draft a one-paragraph apology email for a delayed shipment.' Keep the reply under 300 tokens."}],"resultDescription":"Returns a standard OpenAI chat.completion JSON object containing the assistant's reply text, finish reason (e.g. 'stop'), token usage breakdown (prompt_tokens, completion_tokens, total_tokens), model name ('gpt-5.4-nano'), a unique completion ID, and a Unix timestamp. Output tokens are capped at 1024.","failureModes":["Input exceeds ~24000 character limit — request rejected, no charge","max_completion_tokens exceeds 1024 — capped or rejected","Malformed messages array (missing role or content) — validation error, no charge","Upstream OpenAI API failure — server error returned, no charge","x402 payment failure or insufficient USDC balance — payment rejected before execution","Invalid bodyType enum value — request rejected"],"whenToPreferThis":"Choose this endpoint when you need a single, low-cost GPT chat completion without committing to an OpenAI subscription or API key. Ideal for agents that need occasional LLM inference steps, want pay-per-call billing in USDC, require a standard OpenAI-compatible response format, or must avoid pre-registration with providers. Not ideal for high-volume inference (per-call overhead adds up), streaming responses, or completions longer than 1024 tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:43:05.269Z","isFirstParty":false}