{"uid":"cap_mQEPHVfnwe5y8mNNFVJtM","slug":"llm-chat-completion-openai-compatible-gadgethumans-ae17a514","name":"LLM Chat Completion (OpenAI-Compatible) — GadgetHumans","description":"OpenAI-compatible chat completion at the standard /v1 base path: send a messages array and get a model reply. Point any OpenAI SDK at https://api.gadgethumans.com/v1 and pay per call with x402.","url":"https://api.gadgethumans.com/v1/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Optional model id"},"messages":{"type":"array","description":"OpenAI-style chat messages, e.g. [{role:'user',content:'hi'}]"}}},"responseSchema":null,"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_HzVQMTN2b5UbBY7H6fh3A","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":"Send an array of chat messages to an OpenAI-compatible endpoint and receive a model-generated reply, billed per call via x402.","exampleAgentPrompt":"Ask the GadgetHumans LLM endpoint: given the message history where I said 'What are three creative names for a productivity app?', generate a model reply and return it.","exampleUseCases":[{"title":"Conversational agent backend","prompt":"I'm building a chatbot and need to send it a conversation history — system prompt saying 'You are a helpful assistant', then the user asking 'How do I center a div in CSS?' — can you call the GadgetHumans chat completion API and get me the model's answer?"},{"title":"Automated content drafting","prompt":"Draft a short product description for a Bluetooth keyboard called 'KeyWave Pro' by sending that request to the GadgetHumans LLM API — keep it under 100 words and punchy."},{"title":"In-pipeline summarization step","prompt":"I have this meeting transcript and I need an AI summary — send the full text as a user message to the GadgetHumans chat completions endpoint and return whatever the model says."}],"resultDescription":"Returns an OpenAI-style chat completion response object containing the assistant's generated message, the model used, token usage counts, finish reason, and any other standard OpenAI response fields. The agent receives the reply text inside choices[0].message.content.","failureModes":["Payment failure via x402 — call rejected if USDC balance insufficient or x402 header malformed","Invalid messages array — 400 error if messages field is missing or malformatted","Unsupported model ID — model not found or not available on this provider","Rate limiting — too many requests in a short window may return 429","Timeout — long prompts or slow model inference may cause request timeout","Empty or null content — model may return a finish_reason of 'stop' with empty text for certain inputs"],"whenToPreferThis":"Choose this endpoint when you need an OpenAI-compatible LLM chat completion that can be called with any standard OpenAI SDK, billed per-call via x402 micropayments without requiring a subscription. Ideal for agents or pipelines that want to pay only for what they use, integrate quickly with existing OpenAI-compatible tooling, or avoid managing API keys for a major LLM provider. Prefer alternatives (OpenAI, Anthropic, etc.) when you need a specific flagship model, guaranteed SLAs, or fine-tuning capabilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:39:20.808Z","isFirstParty":false,"canonicalSlug":"llm-chat-completion-openai-compatible-gadgethumans-ae17a514"}