Agent402 / tools / LLM gateway

LLM gateway

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

51 tools in this category. ← All tools

Chat completions - metered (pay what the call costs)

from $0.001 · POST /v1/metered/chat/completions

OpenAI-compatible chat completions priced per request from the request itself.

try in playground →

Chat completions - nano tier

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

OpenAI-compatible chat completions, nano tier: gpt-6-luna (the default), gpt-5.6-luna, gpt-5-nano, gemini flash-lite.

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.

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 a live web search (up.

try in playground →

Chat completions (OpenAI-compatible)

from $0.02 · POST /v1/chat/completions

OpenAI-compatible chat completions, base tier: point any OpenAI SDK at base_url https://agent402.tools/v1 and pay per.

try in playground →

Chat completions - pro tier

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

OpenAI-compatible chat completions, pro tier: gpt-4o, gpt-4.1, gpt-6 sol, claude sonnet, gemini pro, grok - paid per.

try in playground →

Chat completions - premium tier

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

OpenAI-compatible chat completions, premium tier: gpt-5, gpt-6 astra, o3, claude opus, claude fable 5.1 - paid per call.

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.

try in playground →

Image generation (OpenAI-compatible)

$0.08 · POST /v1/images/generations

OpenAI-compatible image generation over x402 - point any OpenAI SDK's images.generate() at base_url.

try in playground →

Text-to-speech (OpenAI-compatible)

$0.06 · POST /v1/audio/speech

OpenAI-compatible text-to-speech over x402 - point any OpenAI SDK's audio.speech.create() at base_url.

try in playground →

Messages nano (Anthropic-compatible)

from $0.003 · POST /v1/nano/messages

Anthropic Messages API over x402 - point the Anthropic SDK (or Claude Code / the Agent SDK) at base_url.

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.

try in playground →

Messages base (Anthropic-compatible)

from $0.02 · POST /v1/messages

Anthropic Messages API over x402 - point the Anthropic SDK (or Claude Code / the Agent SDK) at base_url.

try in playground →

Messages pro (Anthropic-compatible)

from $0.10 · POST /v1/pro/messages

Anthropic Messages API over x402 - point the Anthropic SDK (or Claude Code / the Agent SDK) at base_url.

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.

try in playground →

Messages metered (Anthropic-compatible)

from $0.001 · POST /v1/metered/messages

Anthropic Messages API priced per request from the request itself.

try in playground →

Gemini generateContent (nano tier)

from $0.003 · POST /v1/nano/gemini

Google's native generateContent wire on the nano tier.

try in playground →

Gemini generateContent (auto tier)

$0.01 · POST /v1/auto/gemini

Google's native generateContent wire on the auto tier.

try in playground →

Gemini generateContent (base tier)

from $0.02 · POST /v1/gemini

Google's native generateContent wire on the base tier.

try in playground →

Gemini generateContent (pro tier)

from $0.10 · POST /v1/pro/gemini

Google's native generateContent wire on the pro tier.

try in playground →

Gemini generateContent (premium tier)

$0.50 · POST /v1/premium/gemini

Google's native generateContent wire on the premium tier.

try in playground →

Gemini generateContent (metered tier)

from $0.001 · POST /v1/metered/gemini

Google's native generateContent wire on the metered tier.

try in playground →

Responses nano (OpenAI Responses API)

from $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.

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.

try in playground →

Responses base (OpenAI Responses API)

from $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.

try in playground →

Responses pro (OpenAI Responses API)

from $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.

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.

try in playground →

Responses metered (OpenAI Responses API)

from $0.001 · POST /v1/metered/responses

OpenAI Responses API priced per request from the request itself.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

try in playground →

Fast image generation (OpenAI-compatible, budget)

$0.02 · 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.

try in playground →

Pro image generation (OpenAI-compatible)

$0.05 · POST /v1/images/pro

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

try in playground →

Image edit (OpenAI-compatible)

$0.02 · POST /v1/images/edits

Edit an image with a prompt over x402 - OpenAI images.edit wire (reference images and a prompt in, inline base64 out).

try in playground →

Video generation (4-second clip)

$0.20 · 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.

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.

try in playground →

Ticker pack: dossier, insider flow and institutional holders

$2.00 · POST /v1/ticker-pack

One ticker, one purchase, the full picture.

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.

try in playground →

LinkedIn article, ready to publish (research + copy + sized images)

$1.10 · POST /v1/linkedin-article

Hand over a topic and get a publish-ready LinkedIn article back: grounded web research with cited sources, three.

try in playground →