{"uid":"cap_PRWHgeySYV-hH_9PFliR0","slug":"openai-completions-4a862a79","name":"OpenAI Chat Completions","description":"Chat completions (GPT-4o, GPT-4, o1, etc.) - price varies by model","url":"https://openai.mpp.tempo.xyz/v1/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":{"request":{"model":"gpt-4o","messages":[{"role":"user","content":"Say hi."}]},"response":{"id":"chatcmpl-DkgHTauDrpphVZC5cEY2Fh2ipQR7B","model":"gpt-4o-2024-08-06","usage":{"total_tokens":19,"prompt_tokens":10,"completion_tokens":9,"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0},"completion_tokens_details":{"audio_tokens":0,"reasoning_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello! How can I assist you today?","refusal":null,"annotations":[]},"logprobs":null,"finish_reason":"stop"}],"created":1780017987,"service_tier":"default","system_fingerprint":"fp_99b75f7468"}},"exampleRequest":{"model":"gpt-4o","messages":[{"role":"user","content":"Say hi."}]},"tags":["llm","gpt-4o","dall-e","whisper","tts","embeddings","chat","ai","media"],"displayCostAmount":"0.005125","displayCostAsset":"USDC","priceDynamic":true,"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":"session","summary":"$0.005125/call","primary":{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.005125","per":"call","confidence":"exact"},"accepted":[{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.005125","per":"call","confidence":"exact"},{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":"0.005125","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SJ7iYnt5M7TPJTao-YE3A","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"session","costAmount":"0.005125","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_GP6Pq-bmQp-7Abl9CSFXi","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.005125","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"OpenAI","brandSlug":"openai","brandBaseUrl":"https://openai.com","brandDocsUrl":"https://platform.openai.com/docs","whatItDoes":"Sends a multi-turn conversation to OpenAI GPT-4o, GPT-4, o1, and other models and returns a text completion response","exampleAgentPrompt":"Ask GPT-4o to explain how transformer neural networks work, using a system prompt that says 'You are an expert ML educator', with a max of 300 tokens and temperature 0.7.","exampleUseCases":null,"resultDescription":"Returns a chat completion object containing the assistant's generated message text, the model version used, token usage breakdown (prompt, completion, total), finish reason, and a unique completion ID.","failureModes":["Invalid or unsupported model name returns a 400 or 404 error","Exceeding the model's context window token limit returns a 400 error","Malformed messages array or missing required fields returns a 422 validation error","Rate limit or quota exceeded returns a 429 error","Upstream OpenAI service outage returns a 503 or 502 error","Empty or missing model field causes request rejection"],"whenToPreferThis":"Choose this endpoint when you need high-quality conversational AI responses from OpenAI's flagship models (GPT-4o, GPT-4, o1) via a pay-per-call USDC-priced gateway. Ideal for agents that need flexible multi-turn chat, instruction-following, reasoning, summarization, or text extraction without managing OpenAI API keys directly. Prefer this over the Responses API when the standard Chat Completions interface is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":4,"lastUsedAt":"2026-07-20T15:28:13.305Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:34:34.350Z","isFirstParty":false,"canonicalSlug":"openai-completions-4a862a79"}