{"uid":"cap_2n4lboyonZhGwWrPW8aql","slug":"netintel-dev-gpt-4o-mini-chat-completions-x402-d89311aa","name":"netintel.dev GPT-4o-mini Chat Completions (x402)","description":"Call OpenAI's gpt-4o-mini via a single pay-per-call x402 endpoint — no OpenAI account or API key needed, pay $0.005 per request in USDC. Standard OpenAI chat.completions request/response shape, capped input and output. Search terms: OpenAI, gpt-4o-mini, chat completion, LLM, no API key.","url":"https://netintel.dev/openai/gpt-4o-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":{"top_p":{"type":"number","description":"Nucleus sampling. Optional."},"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_tokens":{"type":"number","description":"Max output tokens. Optional — defaults to 1024, capped at 1024."},"temperature":{"type":"number","description":"Sampling temperature. Optional."}}},"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-4o-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.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_q_-gfJslSIA_iF2fZXG0z","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 OpenAI GPT-4o-mini chat completions via a pay-per-call x402 endpoint at $0.005 USDC per request, no OpenAI account required.","exampleAgentPrompt":"Ask GPT-4o-mini to summarize this support ticket in one paragraph: 'Customer reports that login fails after password reset, tried three browsers, error says token expired.' Keep the output under 200 tokens.","exampleUseCases":[{"title":"Classify customer feedback at scale","prompt":"Use the cheapest available GPT-4o-mini endpoint to classify this review as positive, negative, or neutral and give a one-sentence reason: 'Shipping was fast but the product arrived damaged and support ignored my emails.'"},{"title":"Draft reply for agent email triage","prompt":"I need GPT-4o-mini to write a polite one-paragraph reply to this customer complaint about a late refund — use a professional tone and keep it under 150 tokens."},{"title":"Answer factual query inside an agent pipeline","prompt":"Without needing my own OpenAI key, ask GPT-4o-mini: 'What are the main differences between REST and GraphQL?' and return the answer — limit output to 300 tokens."}],"resultDescription":"Returns a standard OpenAI chat.completion JSON object with choices (containing the assistant's message and finish_reason), model name, creation timestamp, and token usage breakdown (prompt_tokens, completion_tokens, total_tokens). Output is capped at 1024 tokens.","failureModes":["Payment failure or insufficient USDC balance returns a 402 Payment Required error","Input exceeding ~24000 characters may be truncated or rejected","max_tokens above 1024 is silently capped at 1024","Malformed messages array (missing role or content) returns a 400 validation error","Downstream OpenAI API outage propagates as a 502 or 503 error"],"whenToPreferThis":"Choose this endpoint when your agent needs GPT-4o-mini completions without managing an OpenAI account or API key, especially in x402-enabled micropayment workflows where per-call USDC billing is preferred over subscription plans. Ideal for low-to-medium volume agentic pipelines where cost per call matters and provisioning API credentials is a friction point. Prefer over sibling gpt-4.1 or gpt-5 endpoints when lowest cost and fastest latency are the priority.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:46:55.150Z","isFirstParty":false}