Agent402 / tools / LLM gateway

LLM gateway

OpenAI-compatible pay-per-call inference over x402 - five quality tiers plus embeddings, image generation and text-to-speech, model-optional auto-routing, streaming, and a default-on prompt cache. See /v1 in the OpenAPI spec for the full wire format.

41 tools in this category. ← All tools

Chat completions - nano tier

$0.003 · POST /v1/nano/chat/completions

OpenAI-compatible chat completions, nano tier: gpt-4.1-nano, gpt-5-nano, gemini flash-lite, small llama/ministral/qwen, …

try in playground →

Chat completions - auto tier (eval-ranked routing)

$0.01 · POST /v1/auto/chat/completions

OpenAI-compatible chat completions with server-side model choice: omit "model" (or send "auto") and the gateway routes t…

try in playground →

Grounded chat (web search, OpenAI-compatible)

$0.03 · POST /v1/grounded/chat/completions

OpenAI-compatible chat completions GROUNDED in a live web search on every call: the gateway runs an Exa search (up to 5 …

try in playground →

Chat completions - Ox Alpha (stealth preview, prompts shared)

$0.002 · POST /v1/ox/chat/completions

OpenAI-compatible chat completions served by Ox Alpha (stealth/ox-alpha), a reasoning model with a 1,048,576-token conte…

try in playground →

Chat completions (OpenAI-compatible)

$0.02 · POST /v1/chat/completions

OpenAI-compatible chat completions over x402 - point any OpenAI SDK at base_url https://agent402.tools/v1 and pay per ca…

try in playground →

Chat completions - pro tier

$0.10 · POST /v1/pro/chat/completions

OpenAI-compatible chat completions, pro tier: gpt-4o, gpt-4.1, claude sonnet, gemini pro, grok - paid per call in USDC o…

try in playground →

Chat completions - premium tier

$0.50 · POST /v1/premium/chat/completions

OpenAI-compatible chat completions, premium tier: gpt-5, o3/o4, claude opus - paid per call in USDC over x402. Same wire…

try in playground →

Embeddings (OpenAI-compatible)

$0.002 · POST /v1/embeddings

OpenAI-compatible text embeddings over x402 - point any OpenAI SDK at base_url https://agent402.tools/v1 and pay $0.002 …

try in playground →

Rerank (Cohere-compatible)

$0.002 · POST /v1/rerank

Rerank documents against a query over x402 - the Cohere /rerank wire ({query, documents[], top_n} -> results with releva…

try in playground →

Image generation (OpenAI-compatible)

$0.080 · POST /v1/images/generations

OpenAI-compatible image generation over x402 - point any OpenAI SDK's images.generate() at base_url https://agent402.too…

try in playground →

Text-to-speech (OpenAI-compatible)

$0.060 · POST /v1/audio/speech

OpenAI-compatible text-to-speech over x402 - point any OpenAI SDK's audio.speech.create() at base_url https://agent402.t…

try in playground →

Messages nano (Anthropic-compatible)

$0.003 · POST /v1/nano/messages

Anthropic Messages API over x402 - point the Anthropic SDK (or Claude Code / the Agent SDK) at base_url https://agent402…

try in playground →

Messages auto (Anthropic-compatible)

$0.01 · POST /v1/auto/messages

Anthropic Messages API over x402 - point the Anthropic SDK (or Claude Code / the Agent SDK) at base_url https://agent402…

try in playground →

Messages base (Anthropic-compatible)

$0.02 · POST /v1/messages

Anthropic Messages API over x402 - point the Anthropic SDK (or Claude Code / the Agent SDK) at base_url https://agent402…

try in playground →

Messages pro (Anthropic-compatible)

$0.10 · POST /v1/pro/messages

Anthropic Messages API over x402 - point the Anthropic SDK (or Claude Code / the Agent SDK) at base_url https://agent402…

try in playground →

Messages premium (Anthropic-compatible)

$0.50 · POST /v1/premium/messages

Anthropic Messages API over x402 - point the Anthropic SDK (or Claude Code / the Agent SDK) at base_url https://agent402…

try in playground →

Responses nano (OpenAI Responses API)

$0.003 · POST /v1/nano/responses

OpenAI Responses API over x402 - point the OpenAI SDK's responses.create() (or the OpenAI Agents SDK) at base_url https:…

try in playground →

Responses auto (OpenAI Responses API)

$0.01 · POST /v1/auto/responses

OpenAI Responses API over x402 - point the OpenAI SDK's responses.create() (or the OpenAI Agents SDK) at base_url https:…

try in playground →

Responses base (OpenAI Responses API)

$0.02 · POST /v1/responses

OpenAI Responses API over x402 - point the OpenAI SDK's responses.create() (or the OpenAI Agents SDK) at base_url https:…

try in playground →

Responses pro (OpenAI Responses API)

$0.10 · POST /v1/pro/responses

OpenAI Responses API over x402 - point the OpenAI SDK's responses.create() (or the OpenAI Agents SDK) at base_url https:…

try in playground →

Responses premium (OpenAI Responses API)

$0.50 · POST /v1/premium/responses

OpenAI Responses API over x402 - point the OpenAI SDK's responses.create() (or the OpenAI Agents SDK) at base_url https:…

try in playground →

Deep research report (grounded, cited)

$0.60 · POST /v1/research

Hand over a whole research question and get one cited report back. The gateway plans sub-questions, runs multiple live w…

try in playground →

Deep research report - PRO (premium synthesis)

$0.85 · POST /v1/research/pro

The deeper research tier: more sub-questions, more grounded searches, wider reranked source set, and a premium (Claude O…

try in playground →

Deep research report - MAX (exhaustive)

$1.10 · POST /v1/research/max

The exhaustive tier: up to a dozen sub-questions and grounded searches, the widest reranked source set, premium synthesi…

try in playground →

Market / competitor brief (grounded)

$0.85 · POST /v1/research/market-brief

Name a market, category or company and get one cited MARKET / COMPETITOR BRIEF: how the market is defined and sized, the…

try in playground →

Company due-diligence dossier (grounded, cited)

$0.85 · POST /v1/dossier

Hand over a ticker and get one due-diligence dossier back. Pulls the company's SEC EDGAR filings (10-K / 10-Q / 8-K) and…

try in playground →

Company due-diligence dossier - MAX (exhaustive)

$1.10 · POST /v1/dossier/max

The exhaustive due-diligence tier: more filings, a full year of Form 4 insider activity, wider web research (up to 8 ang…

try in playground →

Fund portfolio report (13F, grounded)

$0.60 · POST /v1/fund

Hand over an institutional manager (a fund name like "Berkshire Hathaway", a ticker, or a SEC CIK) and get one cited rep…

try in playground →

Fund portfolio report - MAX (deep)

$0.85 · POST /v1/fund/max

The deep tier: the full holdings table, wider quarter-over-quarter change analysis, more grounded web research, and a lo…

try in playground →

Domain security & deliverability audit (graded)

$0.60 · POST /v1/domain-audit

Hand over a domain and get one graded security & email-deliverability audit: SPF, DMARC, DKIM and MX (why your mail land…

try in playground →

Domain security audit - PRO (attack surface + stack)

$0.85 · POST /v1/domain-audit/pro

The deeper tier: everything in the standard audit plus the attack surface from Certificate Transparency logs (subdomains…

try in playground →

FDA recall report (drug, food, device)

$0.60 · POST /v1/recall-report

Name a drug, food, ingredient, brand or medical device and get one cited FDA recall report: every matching enforcement r…

try in playground →

Insider flow report (Form 4 transactions)

$0.60 · POST /v1/insider-report

Name a US ticker and get one cited insider-flow report: every Form 4 against the company in the window with the actual t…

try in playground →

Token & contract risk report (on-chain evidence)

$0.60 · POST /v1/token-risk

Hand over a token contract address (and chain) and get one evidence-based on-chain risk report: whether the source is ve…

try in playground →

Token & contract risk report - PRO (static scan + reputation)

$0.85 · POST /v1/token-risk/pro

The deeper tier: everything in the standard report plus a deterministic static-pattern scan of the verified source (tx.o…

try in playground →

Fast image generation (OpenAI-compatible, budget)

$0.020 · POST /v1/images/fast

Budget text-to-image over x402 - OpenAI images wire (prompt in, inline base64 out) at $0.02 per picture, a quarter of th…

try in playground →

Pro image generation (OpenAI-compatible)

$0.050 · POST /v1/images/pro

Higher-fidelity text-to-image over x402 - OpenAI images wire (prompt in, inline base64 out) at $0.05 per picture. Served…

try in playground →

Video generation (4-second clip)

$0.200 · POST /v1/videos/generations

Text-to-video over x402 - one silent 4-second 720p clip (MP4, inline base64) for a flat $0.20, served by Veo 3.1 Lite. C…

try in playground →

Solana token due-diligence brief

$0.60 · POST /v1/token-brief

Hand over a Solana SPL mint address and get one cited due-diligence brief: what the token is, whether the mint and freez…

try in playground →

Ticker pack: dossier, insider flow and institutional holders

$2.00 · POST /v1/ticker-pack

One ticker, one purchase, the full picture. Runs the company due-diligence dossier (SEC filings, XBRL financials, ground…

try in playground →

SEC filing report (what the company just filed)

$0.85 · POST /v1/filing-report

Name a US ticker and get one cited report on what the company just filed with the SEC: every filing in EDGAR's index for…

try in playground →