{"uid":"cap_GnAy6UC1jEGH5uiEVpdkp","slug":"netintel-gpt-5-4-chat-completions-via-x402-9922508f","name":"NetIntel GPT-5.4 Chat Completions (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-4","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.4","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.25","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-Au6mLNwA8rh6iQg5Y9iA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides OpenAI GPT-5.4 chat completions via pay-per-call x402 micropayments, returning assistant responses to multi-turn conversation messages.","exampleAgentPrompt":"Using NetIntel's GPT-5.4 endpoint, send this conversation to the model — system: 'You are a helpful assistant', user: 'Summarize the key differences between TCP and UDP in plain English' — and return the response, limiting output to 300 tokens.","exampleUseCases":[{"title":"Anonymous AI coding help","prompt":"Send this to GPT-5.4 without me needing to set up an API key: system message is 'You are an expert Python developer', and my question is 'How do I efficiently read a large CSV file line by line in Python without loading it all into memory?' Keep the answer under 500 tokens."},{"title":"Agent-to-agent sub-task delegation","prompt":"I need to delegate a sub-task to GPT-5.4 via the NetIntel pay-per-call endpoint — ask it: 'Given this JSON schema, write a TypeScript interface that matches it exactly,' and pass the schema I've attached as the user message. Limit the response to 1000 tokens."},{"title":"On-demand content drafting","prompt":"Use the GPT-5.4 chat endpoint to draft a short LinkedIn post for me — set the system prompt to 'You are a professional content writer' and the user message to 'Write a 3-sentence LinkedIn post announcing that our startup just closed a $2M seed round focused on AI infrastructure.' Cap the output at 200 tokens."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the assistant's reply in choices[0].message.content, along with finish_reason, token usage breakdown (prompt_tokens, completion_tokens, total_tokens), model name (gpt-5.4), a unique completion ID, and a Unix creation timestamp.","failureModes":["Input validation failure (malformed messages array or missing required fields) — not billed","Upstream OpenAI service error — not billed, server error returned","Input exceeds ~96,000 character cap — rejected with validation error","max_completion_tokens exceeds 4096 cap — clamped or rejected","Payment failure via x402 — call not processed","Model returns finish_reason 'length' if token limit reached before natural completion"],"whenToPreferThis":"Choose this endpoint when you need GPT-5.4 chat completions without an OpenAI account or API key, want pay-per-call USDC billing via x402 with no subscription, need automatic no-charge guarantees on failed or errored calls, or are building an agent that requires anonymous, crypto-native LLM access on Base or Solana mainnet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:46:28.284Z","isFirstParty":false}