{"uid":"cap_mUnulCm83WJIQK002NOgJ","slug":"openrouter-completions-62789e2f","name":"OpenRouter Chat Completions","description":"Chat completions (GPT-4, Claude, Llama, etc.) - price varies by model","url":"https://openrouter.mpp.tempo.xyz/v1/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":{"request":{"model":"openai/gpt-3.5-turbo","messages":[{"role":"user","content":"What is artificial intelligence?"}],"max_tokens":150,"temperature":0.7},"response":{"id":"gen-1777435225-M6Ymzcyjy6uAnkALjQgK","model":"openai/gpt-3.5-turbo","usage":{"cost":0.000153,"is_byok":false,"cost_details":{"upstream_inference_cost":0.000153,"upstream_inference_prompt_cost":0.000006,"upstream_inference_completions_cost":0.000147},"total_tokens":110,"prompt_tokens":12,"completion_tokens":98,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":0,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":0}},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Artificial intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think and learn like humans. It involves the development of computer systems that can perform tasks that normally require human intelligence, such as visual perception, speech recognition, decision-making, and language translation. AI technologies include machine learning, neural networks, natural language processing, and computer vision, among others. AI has a wide range of applications in various industries, including healthcare, finance, transportation, and entertainment.","refusal":null,"reasoning":null},"logprobs":null,"finish_reason":"stop","native_finish_reason":"stop"}],"created":1777435225,"provider":"OpenAI","system_fingerprint":null}},"exampleRequest":{"model":"openai/gpt-3.5-turbo","messages":[{"role":"user","content":"What is artificial intelligence?"}],"max_tokens":150,"temperature":0.7},"tags":["llm","unified","multi-model","chat","ai"],"displayCostAmount":"0.005125","displayCostAsset":"USDC","priceDynamic":true,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.08","successRate":"0.52","reviews":1,"stars":"1.3","state":"rated"},"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_goWTBvyS0qJLbbOe8BK94","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_pkNolC-T3GceRKAr3Fkv4","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.005125","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"OpenRouter","brandSlug":"openrouter","brandBaseUrl":"https://openrouter.ai","brandDocsUrl":"https://openrouter.ai/docs","whatItDoes":"Sends a chat completion request to 100+ LLMs (GPT-4, Claude, Llama, etc.) through a single unified OpenAI-compatible API endpoint","exampleAgentPrompt":"Using OpenRouter, send this message to openai/gpt-4o with a max of 300 tokens and temperature 0.7: 'Summarize the key benefits of retrieval-augmented generation in three bullet points.'","exampleUseCases":null,"resultDescription":"Returns a chat completion object containing the assistant's generated message, the model used, token counts (prompt, completion, total), cost breakdown (upstream inference cost in USD), and finish reason. The response is OpenAI-compatible with a choices array containing the assistant message.","failureModes":["Invalid or unsupported model identifier returns 400 or 404 error","Insufficient credits or payment failure returns 402 Payment Required","Rate limit exceeded returns 429 Too Many Requests","Malformed messages array (missing role or content) returns 422 Unprocessable Entity","Model provider outage causes upstream timeout or 503 error","max_tokens set too high for the selected model's context window"],"whenToPreferThis":"Choose this endpoint when you need access to multiple LLM providers through a single OpenAI-compatible interface, especially when you want to switch between GPT-4, Claude, Llama, or other models without changing your integration. Ideal when cost transparency per model is important, or when building systems that need fallback across providers. Use over direct provider APIs when you want unified billing, per-call cost tracking, or model routing flexibility.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":80,"lastUsedAt":"2026-07-20T15:32:47.479Z","lastSuccessfullyRanAt":"2026-05-22T23:11:22.380Z","lastHealthCheckAt":"2026-10-11T04:12:44.231Z","isFirstParty":false,"canonicalSlug":"openrouter-completions-62789e2f"}