{"uid":"cap_Y9r_hS_OA5C_E0AMU8Z14","slug":"netintel-chat-completions-openai-compatible-89fe413a","name":"NetIntel Chat Completions (OpenAI-Compatible)","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/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 (every model, endpoint and price)"},"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}]"},"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_STS4JW5Ex0o3u2gxtJKko","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":"Provides an OpenAI-compatible chat completions endpoint (POST /v1/chat/completions) paid per-call via x402 micropayments in USDC, with no API key required.","exampleAgentPrompt":"Ask gpt-4o-mini: 'Summarize the pros and cons of switching from PostgreSQL to MongoDB in 3 bullet points' — charge the $0.10 USDC call via my x402 wallet, no API key needed.","exampleUseCases":[{"title":"Agent reasoning step via LLM","prompt":"Using the NetIntel chat completions endpoint with gpt-4o, send this system prompt: 'You are a helpful data analyst.' and this user message: 'Given quarterly revenue of $1.2M and expenses of $980K, what is the net profit margin?' — pay with USDC via x402."},{"title":"Keyless LLM call for startup prototype","prompt":"I don't have an OpenAI API key set up yet — can you call the NetIntel chat completions API with gpt-4o-mini, send the user message 'Write a one-paragraph product description for a reusable silicone food wrap', and bill it per-call in USDC?"},{"title":"LLM-powered classification in pipeline","prompt":"Send this to gpt-4o via the NetIntel x402 chat completions endpoint — system: 'You classify support tickets into: billing, technical, or general.' user: 'My invoice shows a double charge from last month.' — return the category and a short explanation."}],"resultDescription":"Returns a standard OpenAI chat.completion JSON object containing the assistant's reply message, finish reason (e.g. 'stop'), model used, and token usage breakdown (prompt_tokens, completion_tokens, total_tokens). The choices array holds the generated message content.","failureModes":["Invalid model ID returns validation error (not billed)","Malformed messages array or missing required fields returns input-validation rejection (not billed)","Upstream OpenAI failure returns server error (not billed per NetIntel policy)","Insufficient USDC balance or x402 payment failure blocks the call","max_tokens clamped silently to model's cap if exceeded"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible chat completions without signing up for an API key or committing to a subscription — ideal for autonomous agents that pay per call in USDC via x402 on Base or Solana. Prefer it over direct OpenAI when you want per-call billing with automatic no-charge on failures, or when operating in a crypto-native payment environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:45:20.082Z","isFirstParty":false}