{"uid":"cap_-_ThWavuBmhEwbgTNJRM2","slug":"vaaya-ai-openrouter-multi-llm-chat-420bcd6b","name":"vaaya.ai OpenRouter Multi-LLM Chat","description":"OpenRouter — one endpoint for 100+ LLMs, keyless pay-per-call (price varies by model + tokens). Params: `model` (vendor/model id like openai/gpt-4o), `messages`.","url":"https://vaaya.ai/api/run/openrouter/chat","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","$schema":"http://json-schema.org/draft-07/schema#","required":["model","messages"],"properties":{"model":{"type":"string","minLength":1},"messages":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true},"minItems":1}},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3dtSBC858QXqd6l59y8WV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Routes chat completion requests to any of 100+ LLMs via OpenRouter with keyless pay-per-call pricing","exampleAgentPrompt":"Ask openai/gpt-4o via OpenRouter: given the messages [{\"role\":\"user\",\"content\":\"Summarize the key themes of the French Revolution in three bullet points.\"}], return the model's response — use keyless pay-per-call so I don't need to manage an API key.","exampleUseCases":[{"title":"Dynamic model selection for summarization","prompt":"Use the model anthropic/claude-3.5-sonnet through OpenRouter to summarize this legal document for me — send it the message: 'Summarize the following contract clause in plain English: The licensor hereby grants...'"},{"title":"Code generation with a cost-efficient model","prompt":"Call meta-llama/llama-3.1-8b-instruct via OpenRouter and ask it to write a Python function that parses a CSV file and returns a list of dictionaries, one per row."},{"title":"Multi-turn customer support simulation","prompt":"Route this conversation to openai/gpt-4o through OpenRouter: messages are [{\"role\":\"system\",\"content\":\"You are a helpful customer support agent.\"},{\"role\":\"user\",\"content\":\"My order hasn't arrived after 10 days, what should I do?\"}]"}],"resultDescription":"Returns a chat completion response from the chosen LLM, including the assistant's generated message content, model metadata, token usage counts, and finish reason — formatted as a standard OpenAI-compatible chat completion object.","failureModes":["Invalid or unsupported model ID returns an error indicating the model was not found","Empty or malformed messages array causes a validation error","Insufficient USDC balance results in payment failure before the request is forwarded","Model provider downtime or rate limiting may cause timeouts or upstream errors","Exceeding the model's context window returns a context length exceeded error"],"whenToPreferThis":"Choose this endpoint when you need to call any of 100+ LLMs without managing individual provider API keys, want pay-per-call pricing in USDC, or need to dynamically switch between models (e.g. GPT-4o, Claude, Llama, Mistral) from a single unified interface. Ideal for agents that need model flexibility without credential management overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:31:37.343Z","isFirstParty":false}