78trust / 100
Openrouter Chat
by Vaaya in AI models & inference
x402 APIPassing, checked 6 min ago
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`.
POST https://vaaya.ai/api/run/openrouter/chat
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 244 ms typical, 400 ms slowest 5%
- Last check
- 6 min ago
- Next check
- in 26 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://vaaya.ai/api/run/openrouter/chat" \
-H "content-type: application/json" \
-d '{"messages":[{}],"model":"example"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fvaaya.ai%2Fapi%2Frun%2Fopenrouter%2Fchat
const res = await pay("https://vaaya.ai/api/run/openrouter/chat", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"messages":[{}],"model":"example"}),
});
console.log(await res.json());Example input
{
"messages": [
{}
],
"model": "example"
}Example output
{
"charged_cents": 100,
"data": {},
"ok": true
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 6 min ago | Passed | 402 | 293 ms | $1.00 |
| 4 h ago | Passed | 402 | 255 ms | $1.00 |
| 7 h ago | Passed | 402 | 295 ms | $1.00 |
| 11 h ago | Passed | 402 | 226 ms | $1.00 |
| 14 h ago | Passed | 402 | 400 ms | $1.00 |
| 18 h ago | Passed | 402 | 451 ms | $1.00 |
| 22 h ago | Passed | 402 | 281 ms | $1.00 |
| 25 h ago | Passed | 402 | 237 ms | $1.00 |
| 29 h ago | Passed | 402 | 207 ms | $1.00 |
| 33 h ago | Passed | 402 | 227 ms | $1.00 |
| 36 h ago | Passed | 402 | 277 ms | $1.00 |
| 40 h ago | Passed | 402 | 180 ms | $1.00 |
| 43 h ago | Passed | 402 | 244 ms | $1.00 |
| 2 days ago | Passed | 402 | 208 ms | $1.00 |