{"uid":"cap_knuHB9dc1AlxVgZR7kfuk","slug":"netintel-chat-completions-api-f3c770b3","name":"NetIntel Chat Completions API","description":"OpenAI-compatible chat completions gateway (alias of /v1/chat/completions for api/v1-style base URLs) — standard request shape, model chosen in the body: any gpt-* chat model (not Claude/embeddings), each at its own price. Priced per model, $0.005–$0.65 per call in USDC via x402, no API key: POST unpaid and the 402 quotes your model's exact price. Supports response_format json_object. Free model catalog: GET /v1/models.","url":"https://netintel.dev/api/v1/chat/completions","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":["model","messages"],"properties":{"model":{"type":"string","description":"Model id, e.g. gpt-4o-mini. Free catalog: GET /v1/models"},"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, content}]"},"max_tokens":{"type":"number","description":"Max output tokens (clamped to the model's cap)."}}},"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"},"object":{"type":"string"},"choices":{"type":"array"}}}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-9f2f28d90a3c4e0f8f1c2d3e","model":"gpt-4o-mini","usage":{"total_tokens":15,"prompt_tokens":13,"completion_tokens":2},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hi!"},"finish_reason":"stop"}]}},"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_PYNGPT0jK4xqVFued51kU","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":"OpenAI-compatible chat completions endpoint, pay-per-call via x402 micropayments with no API key required","exampleAgentPrompt":"Ask gpt-4o-mini to summarize the following paragraph in two sentences — no API key needed, just pay per call: 'Artificial intelligence is transforming industries by automating complex tasks, enabling new forms of creativity, and reshaping how people interact with technology.'","exampleUseCases":[{"title":"Keyless LLM for autonomous agent","prompt":"Send a system prompt saying 'You are a helpful assistant' and a user message asking 'What are the top 3 benefits of renewable energy?' to gpt-4o-mini — no API key, just pay per call with USDC."},{"title":"One-off text generation task","prompt":"Use gpt-4o-mini to write a short product description for a wireless ergonomic keyboard — give it a system prompt of 'You are a copywriter' and limit the response to 150 tokens."},{"title":"Conversational AI in a pipeline","prompt":"I'm building an automated workflow — have gpt-4o-mini take this multi-turn conversation and continue it: system says 'You are a customer support agent', user says 'My order hasn't arrived', assistant says 'I'm sorry to hear that, can you share your order ID?', and user now says 'It's #84729'."}],"resultDescription":"Returns an OpenAI-compatible chat.completion JSON object containing the generated assistant message, finish reason, model used, and token usage stats (prompt, completion, and total tokens).","failureModes":["Invalid or unsupported model ID returns an error with no charge","Malformed messages array (missing role or content) triggers input validation rejection with no charge","Upstream model provider failure results in no charge per NetIntel's fair-trade policy","Exceeding max_tokens cap silently clamps to model maximum","Payment failure or insufficient USDC balance blocks the request before processing"],"whenToPreferThis":"Prefer this endpoint when you need OpenAI-compatible chat completions without an API key or account signup, especially in autonomous agent contexts where pay-per-call USDC micropayments via x402 are preferred over subscription billing. Ideal for one-off inference tasks, pipelines that need anonymous LLM access, or situations where you want guaranteed no-charge on failures.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:09.198Z","isFirstParty":false}