113 API routes — 77 LLM routes

Pay-per-call APIs
for AI agents

No API keys. No subscriptions. No rate limits.
Just send stablecoins with every request using the x402 payment protocol.

terminal
$ curl https://x402engine.app/api/crypto/price?ids=bitcoin
HTTP/1.1 402 Payment Required
# Response includes payment instructions — your agent pays automatically

$ # With x402 client, payments are automatic:
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: account, networks: ["eip155:8453"] });
const paidFetch = wrapFetchWithPayment(fetch, client);
const data = await paidFetch("https://x402engine.app/api/crypto/price?ids=bitcoin");

A vending machine for data and AI tools

Instead of signing up for a dozen services, managing API keys, and juggling subscriptions — software just sends a fraction of a cent and gets back useful work.

No accounts

No sign-up forms, no email verification, no dashboards. There is no concept of a "user" — just a wallet that pays.

No API keys

No secrets to rotate, no rate limit tiers, no usage quotas. The payment is the authentication.

No subscriptions

No monthly bills, no overage charges. Pay for exactly what you use — one tenth of a cent at a time.

How does money actually move?

The money is stablecoins — tokens pegged 1:1 to the US dollar, settled on-chain. No bank wires, no payment processors, no currency conversion. A $0.001 API call costs exactly $0.001.

When your software calls an endpoint, it gets back a "402 Payment Required" response — like a toll booth. The payment library reads the price, signs a stablecoin transfer from your wallet, and re-sends the request with the payment attached. The whole thing happens in one round-trip. Your code just sees the data come back.

This is what the x402 protocol does — it bakes payments into regular web requests. No checkout pages, no invoices, no payment processors. Just HTTP with money built in.

Three networks, one protocol

Every endpoint accepts payment on any supported network. Pick the one that fits your agent's speed and cost requirements.

B

Base

eip155:8453
TokenUSDC
Decimals6
Confirmation~2s
FacilitatorCoinbase CDP
Fastest — 10ms
M

MegaETH

eip155:4326
TokenUSDm
Decimals18
Confirmation~10ms
VerificationDirect on-chain
S

Solana

solana:5eykt4U…
TokenUSDC
Decimals6
Confirmation~400ms
FacilitatorCoinbase CDP

113 APIs, 5 categories

LLM prices are quoted per request. Use images, native PDFs, video, tools and streaming where supported. Capabilities and pricing

Production-grade endpoints backed by best-in-class providers. All priced for micropayments.

LLM & AI — 77 models

All models via OpenRouter. Same request format, same payment flow — just pick a model.

Latest OpenRouter releases

GLM 5.3

from $0.011035

Reasoning, tools, structured outputs and streaming

/api/llm/glm-5.3

GLM 5.3 Flash

from $0.002458

Reasoning, tools, structured outputs and streaming

/api/llm/glm-5.3-flash

GPT-6 Astra

from $0.172960

Reasoning, tools, structured outputs and streaming

/api/llm/gpt-6-astra

Claude Fable 5.1

from $0.138638

Reasoning, tools, structured outputs and streaming

/api/llm/claude-fable-5.1

GPT-5.6 Luna

from $0.004860

Efficient reasoning, 1M ctx

/api/llm/gpt-5.6-luna

GPT-5.6 Luna Pro

from $0.004860

Higher-compute Luna

/api/llm/gpt-5.6-luna-pro

GPT-5.6 Terra

from $0.035740

Balanced reasoning, 1M ctx

/api/llm/gpt-5.6-terra

GPT-5.6 Terra Pro

from $0.035740

Higher-compute Terra

/api/llm/gpt-5.6-terra-pro

GPT-5.6 Sol

from $0.035735

Flagship reasoning, 1M ctx

/api/llm/gpt-5.6-sol

GPT-5.6 Sol Pro

from $0.035735

Maximum-compute Sol

/api/llm/gpt-5.6-sol-pro

Claude Opus 5

from $0.070034

Frontier coding and analysis

/api/llm/claude-opus-5

Claude Opus 5 Fast

Unavailable

Low-latency Opus 5

/api/llm/claude-opus-5-fast

Claude Sonnet 5

from $0.028871

Balanced frontier model

/api/llm/claude-sonnet-5

Gemini 3.6 Flash

from $0.006577

Fast multimodal, 1M ctx

/api/llm/gemini-3.6-flash

Gemini 3.5 Flash Lite

from $0.003490

Low-cost multimodal

/api/llm/gemini-3.5-flash-lite

Kimi K3

from $0.022022

Frontier multimodal, 1M ctx

/api/llm/kimi-k3

Grok 4.5

from $0.028874

Latest xAI multimodal

/api/llm/grok-4.5

KAT-Coder-Air V2.5

Unavailable

Efficient coding agent

/api/llm/kat-coder-air-v2.5

KAT-Coder-Pro V2.5

from $0.006508

Advanced coding agent

/api/llm/kat-coder-pro-v2.5

LongCat 2.0

from $0.003488

Efficient long-context model

/api/llm/longcat-2

Inkling

from $0.008292

Text, image, and audio

/api/llm/inkling

Muse Spark 1.1

from $0.010006

Broad multimodal, 1M ctx

/api/llm/muse-spark-1.1

Aion 3.0

from $0.022008

Full reasoning model

/api/llm/aion-3.0

Aion 3.0 Mini

from $0.006231

Compact reasoning model

/api/llm/aion-3.0-mini

Tencent HY3

from $0.002335

Efficient 262k reasoning

/api/llm/hy3

Ling 3.0 Flash

Unavailable

Fast open reasoning model

/api/llm/ling-3-flash
OpenAI

GPT-5.4

from $0.035747

Unified flagship, 1M ctx

/api/llm/gpt-5.4

GPT-5.4 Pro

from $0.413239

Max reasoning tier

/api/llm/gpt-5.4-pro

GPT-5.3 Codex

from $0.013449

SOTA agentic coding

/api/llm/gpt-5.3-codex

GPT-5.2 Pro

from $0.145674

Premium reasoning

/api/llm/gpt-5.2-pro

GPT-5.2

from $0.013449

Previous flagship

/api/llm/gpt-5.2

GPT-5.2 Codex

from $0.013449

Code reasoning

/api/llm/gpt-5.2-codex

GPT-5.1

from $0.010015

Efficient flagship

/api/llm/gpt-5.1

GPT-4o

from $0.018586

Flagship multimodal

/api/llm/gpt-4o

GPT-4o Mini

from $0.002458

Fast & affordable

/api/llm/gpt-4o-mini

o1

from $0.104370

Reasoning model

/api/llm/o1

o4-mini

from $0.008978

Latest small reasoning

/api/llm/o4-mini

GPT-5 Nano

from $0.001773

Ultra-cheap GPT-5

/api/llm/gpt-5-nano
Anthropic

Claude Opus 4.8

from $0.070034

Latest premium Opus

/api/llm/claude-opus-4.8

Claude Opus 4.6

from $0.070034

Most powerful

/api/llm/claude-opus

Claude Sonnet 4.6

from $0.042592

Latest balanced

/api/llm/claude-sonnet-4.6

Claude Sonnet 4.5

from $0.083743

Balanced & versatile

/api/llm/claude-sonnet

Claude Opus 4.5

from $0.070034

Previous-gen Opus

/api/llm/claude-opus-4.5

Claude Haiku 4.5

from $0.015150

Fast & affordable

/api/llm/claude-haiku
Google / DeepSeek / Meta

Gemini 3.1 Pro

from $0.028883

Latest Google flagship

/api/llm/gemini-3.1-pro

Gemini 3.1 Flash Lite

from $0.004860

Fastest & cheapest

/api/llm/gemini-3.1-flash-lite

Gemini 3.1 Pro

from $0.028883

Pro reasoning route

/api/llm/gemini-3-pro

Gemini 3 Flash

from $0.008290

Fast next-gen

/api/llm/gemini-3-flash

Gemini 2.5 Pro

from $0.018594

Strong reasoning

/api/llm/gemini-pro

Gemini 2.5 Flash

from $0.008290

Speed + quality

/api/llm/gemini-flash

DeepSeek V4 Pro

from $0.007050

V4 reasoning, stronger

/api/llm/deepseek-v4-pro

DeepSeek V4 Flash

from $0.002004

Ultra-cheap V4

/api/llm/deepseek-v4-flash

DeepSeek V4 Flash 0731

from $0.001875

Enhanced agentic V4

/api/llm/deepseek-v4-flash-0731

DeepSeek V3.2

from $0.003274

Latest open-source

/api/llm/deepseek-v3.2

DeepSeek V3

from $0.003625

Open-source powerhouse

/api/llm/deepseek

DeepSeek R1

from $0.006233

Chain-of-thought reasoning

/api/llm/deepseek-r1

DeepSeek V3.2

from $0.003274

Compatibility route

/api/llm/deepseek-v3.2-speciale

Llama 3.3 70B

from $0.002115

Open-source, low cost

/api/llm/llama

Llama 4 Maverick

from $0.002801

1M context, latest Meta

/api/llm/llama-4-maverick
xAI / Qwen / Mistral / Perplexity

Grok 4.3

from $0.018578

xAI reasoning

/api/llm/grok

Grok Build 0.1

from $0.015149

Build-focused

/api/llm/grok-code

Qwen3 235B

from $0.003898

Multilingual & coding

/api/llm/qwen

Qwen3 Coder

from $0.002253

Code specialist

/api/llm/qwen-coder

Qwen 3.5

from $0.003660

1M context, latest

/api/llm/qwen3.5

Qwen 3.7 Max

from $0.014078

Flagship Qwen 3.7

/api/llm/qwen3.7-max

Qwen 3.7 Plus

from $0.009663

Cost-effective 1M ctx

/api/llm/qwen3.7-plus

Mistral Large 3

from $0.015152

European flagship

/api/llm/mistral

Devstral 2

from $0.004175

Code-focused

/api/llm/devstral

Perplexity Sonar

from $0.022022

Search-augmented

/api/llm/perplexity
Moonshot / MiniMax / Zhipu / ByteDance / Cohere

Kimi K2.5

from $0.004518

Strong reasoning

/api/llm/kimi

MiniMax M2.5

from $0.003282

Fast & affordable

/api/llm/minimax

MiniMax M2.7

from $0.003488

Latest, 204k context

/api/llm/minimax-m2.7

MiniMax M3

from $0.003488

1M context multimodal

/api/llm/minimax-m3

GLM-5

from $0.005546

Zhipu multilingual

/api/llm/glm

GLM 5.2

from $0.008057

1M context reasoning

/api/llm/glm-5.2

Seed 1.6

from $0.004863

ByteDance flagship

/api/llm/seed

Command A

from $0.018586

Cohere enterprise RAG

/api/llm/command-a
Embeddings

Text Embeddings

$0.001

1536-dim vectors for RAG

/api/embeddings
Compute

Fast Image Gen

$0.015

FLUX Schnell — ~2s generation

POST /api/image/fast

Quality Image Gen

$0.05

FLUX.2 Pro — production quality

POST /api/image/quality

Text-in-Image

$0.12

Ideogram v3 — logos, signage

POST /api/image/text

Nano Banana 2

$0.10

Google's fast image gen with aspect ratio control

POST /api/image/nano-banana

Fast Video

$0.55

Kling V3 Standard, fixed 5-second clip

POST /api/video/fast

Quality Video

$0.70

Kling V3 Pro, production-quality motion

POST /api/video/quality

Hailuo Video

$0.65

MiniMax Hailuo 2.3 Pro at 1080p

POST /api/video/hailuo

Image Animation

$0.70

Animate a still image with Kling V3 Pro

POST /api/video/animate

Code Execution

$0.005

Sandboxed Python, JS, Bash, R

POST /api/code/run

Transcription

$0.10

Deepgram Nova-3 with diarization

POST /api/transcribe

TTS (OpenAI)

$0.01

6 voices, HD quality, multiple formats

POST /api/tts/openai

TTS (ElevenLabs)

$0.02

Ultra-realistic, multilingual voices

POST /api/tts/elevenlabs

Voice Cloning TTS

$0.02

Lux TTS — clone any voice at 48kHz

POST /api/tts/lux
Crypto & Blockchain

Price Feed

$0.001

Real-time prices via CoinGecko

GET /api/crypto/price

Market Data

$0.002

Rankings, volume, market cap

GET /api/crypto/markets

Historical Data

$0.003

Price history, OHLC, charts

GET /api/crypto/history

Trending

$0.001

Currently trending coins

GET /api/crypto/trending

Coin Search

$0.001

Search by name or symbol

GET /api/crypto/search

Wallet Balances

$0.005

Multichain balances via Allium

POST /api/wallet/balances

Wallet Transactions

$0.005

Transaction history with labels

POST /api/wallet/transactions

Token Prices

$0.005

DEX-derived OHLC, 200 tokens/req

POST /api/token/prices

Token Metadata

$0.002

Name, symbol, decimals, chain

GET /api/token/metadata

ENS Resolve

$0.001

ENS name → Ethereum address

GET /api/ens/resolve

ENS Reverse

$0.001

Address → ENS name

GET /api/ens/reverse

TX Simulation

$0.01

Simulate EVM txs via Tenderly

POST /api/tx/simulate
Web

Web Scrape

$0.005

Clean markdown from any URL

GET /api/web/scrape

Web Screenshot

$0.01

Capture any URL as base64 image

GET /api/web/screenshot

Web Search

$0.01

Neural search with highlighted snippets

POST /api/search/web

Web Content Fetch

$0.005

Extract clean text from up to 10 URLs

POST /api/search/contents
Travel

Flight Search

$0.02

Google Flights — prices, airlines, insights

GET /api/travel/flights

Hotel Search

$0.02

Google Hotels — ratings, amenities, prices

GET /api/travel/hotels
Storage

IPFS Pin

$0.01

Pin JSON, files, or URLs

POST /api/ipfs/pin

IPFS Retrieve

$0.001

Fetch files by CID

GET /api/ipfs/get

Built for autonomous software

AI agents, bots, and scripts that need to use external services without a human setting up accounts first.

AI research assistant

You ask your AI "what happened to Bitcoin this week?" It calls the price and history endpoints, pays a fraction of a cent per call, and gives you a chart and summary. It never needed a CoinGecko account.

crypto/price crypto/history ~$0.004/query

Portfolio tracker bot

A trading bot checks wallet balances every hour, looks at trending coins, pulls price history for analysis. It can run 1,000 calls for about $1–2. No API key management, no rate limit headaches.

wallet/balances crypto/trending ~$0.006/check

Content creation agent

An AI writing a blog post needs a custom illustration. It calls the image generation endpoint, pays 1.5 cents, and gets a unique image in 2 seconds. No Midjourney subscription, no credits system.

image/fast image/quality $0.015–0.12/image

Coding assistant

An AI agent needs to verify that generated code actually runs. It sends the code to the sandbox, pays half a cent, and gets back the output — without needing Docker or a dev environment.

code/run $0.005/execution

Meeting transcription pipeline

An app records a meeting, sends the audio to the transcription endpoint, and gets back a full transcript with speaker labels — who said what, with timestamps. Ten cents per recording.

transcribe $0.10/recording

Decentralized data archival

An agent generating reports pins them to IPFS for a penny each. The data becomes permanent, publicly addressable, and doesn't depend on any single company's servers staying online.

ipfs/pin ipfs/get $0.01/pin

Why this matters

The old way of using APIs doesn't work for autonomous software.

Today: the API key treadmill

  1. 01 Sign up for a service with email + password
  2. 02 Navigate a dashboard to generate an API key
  3. 03 Store the key securely (env vars, secrets manager)
  4. 04 Handle rate limits, quotas, and overage billing
  5. 05 Rotate keys periodically, manage per-service billing
  6. 06 Repeat for every new service your agent needs

With x402: just pay

  1. 01 Fund a wallet with stablecoins
  2. 02 Call any endpoint — payment is automatic
  3. 03 That's it. No keys, no accounts, no billing pages.

It's the difference between having a gym membership and paying 10 cents every time you use a treadmill. For software that runs autonomously, the pay-per-use model is simpler, cheaper, and requires zero human setup.

This is especially powerful for autonomous agents — software that operates without a human babysitting it. An agent can discover available services, compare pricing across networks, and pay on the fly, all programmatically. No human needs to create accounts or manage credentials for it.

Simple pricing

No tiers. No commitments. Pay exactly what each call costs in stablecoins. Prices are enforced by the protocol.

Endpoint Price
/api/llm/gpt-4ofrom $0.018586Request quote
/api/llm/gpt-4o-minifrom $0.002458Request quote
/api/llm/o1from $0.104370Request quote
/api/llm/claude-opusfrom $0.070034Request quote
/api/llm/claude-sonnetfrom $0.083743Request quote
/api/llm/claude-haikufrom $0.015150Request quote
/api/llm/gemini-profrom $0.018594Request quote
/api/llm/gemini-flashfrom $0.008290Request quote
/api/llm/deepseekfrom $0.003625Request quote
/api/llm/deepseek-r1from $0.006233Request quote
/api/llm/llamafrom $0.002115Request quote
/api/llm/grokfrom $0.018578Request quote
/api/llm/qwenfrom $0.003898Request quote
/api/llm/mistralfrom $0.015152Request quote
/api/llm/perplexityfrom $0.022022Request quote
/api/llm/gpt-5.2from $0.013449Request quote
/api/llm/gpt-5.2-codexfrom $0.013449Request quote
/api/llm/kimifrom $0.004518Request quote
/api/llm/minimaxfrom $0.003282Request quote
/api/llm/glmfrom $0.005546Request quote
/api/llm/grok-codefrom $0.015149Request quote
/api/llm/seedfrom $0.004863Request quote
/api/llm/devstralfrom $0.004175Request quote
/api/llm/deepseek-v3.2from $0.003274Request quote
/api/llm/gemini-3-profrom $0.028883Request quote
/api/llm/gemini-3-flashfrom $0.008290Request quote
/api/llm/claude-sonnet-4.6from $0.042592Request quote
/api/llm/gpt-5.2-profrom $0.145674Request quote
/api/llm/qwen-coderfrom $0.002253Request quote
/api/llm/gpt-5.1from $0.010015Request quote
/api/llm/gpt-5.4from $0.035747Request quote
/api/llm/gpt-5.4-profrom $0.413239Request quote
/api/llm/gpt-5.3-codexfrom $0.013449Request quote
/api/llm/claude-opus-4.5from $0.070034Request quote
/api/llm/gemini-3.1-profrom $0.028883Request quote
/api/llm/gemini-3.1-flash-litefrom $0.004860Request quote
/api/llm/qwen3.5from $0.003660Request quote
/api/llm/deepseek-v3.2-specialefrom $0.003274Request quote
/api/llm/minimax-m2.7from $0.003488Request quote
/api/llm/llama-4-maverickfrom $0.002801Request quote
/api/llm/gpt-5-nanofrom $0.001773Request quote
/api/llm/o4-minifrom $0.008978Request quote
/api/llm/command-afrom $0.018586Request quote
/api/llm/claude-opus-4.8from $0.070034Request quote
/api/llm/qwen3.7-plusfrom $0.009663Request quote
/api/llm/qwen3.7-maxfrom $0.014078Request quote
/api/llm/glm-5.2from $0.008057Request quote
/api/llm/deepseek-v4-flashfrom $0.002004Request quote
/api/llm/deepseek-v4-flash-0731from $0.001875Request quote
/api/llm/deepseek-v4-profrom $0.007050Request quote
/api/llm/minimax-m3from $0.003488Request quote
/api/llm/gpt-5.6-lunafrom $0.004860Request quote
/api/llm/gpt-5.6-luna-profrom $0.004860Request quote
/api/llm/gpt-5.6-terrafrom $0.035740Request quote
/api/llm/gpt-5.6-terra-profrom $0.035740Request quote
/api/llm/gpt-5.6-solfrom $0.035735Request quote
/api/llm/gpt-5.6-sol-profrom $0.035735Request quote
/api/llm/claude-opus-5from $0.070034Request quote
/api/llm/claude-opus-5-fastUnavailableRequest quote
/api/llm/claude-sonnet-5from $0.028871Request quote
/api/llm/gemini-3.6-flashfrom $0.006577Request quote
/api/llm/gemini-3.5-flash-litefrom $0.003490Request quote
/api/llm/kimi-k3from $0.022022Request quote
/api/llm/grok-4.5from $0.028874Request quote
/api/llm/kat-coder-air-v2.5UnavailableRequest quote
/api/llm/kat-coder-pro-v2.5from $0.006508Request quote
/api/llm/longcat-2from $0.003488Request quote
/api/llm/inklingfrom $0.008292Request quote
/api/llm/muse-spark-1.1from $0.010006Request quote
/api/llm/aion-3.0from $0.022008Request quote
/api/llm/aion-3.0-minifrom $0.006231Request quote
/api/llm/hy3from $0.002335Request quote
/api/llm/ling-3-flashUnavailableRequest quote
/api/llm/glm-5.3from $0.011035Request quote
/api/llm/glm-5.3-flashfrom $0.002458Request quote
/api/llm/gpt-6-astrafrom $0.172960Request quote
/api/llm/claude-fable-5.1from $0.138638Request quote
/api/image/fast$0.015
/api/image/quality$0.05
/api/image/text$0.12
/api/image/face-swap$0.08
/api/image/nano-banana$0.10
/api/tts/lux$0.02
/api/code/run$0.005
/api/transcribe$0.10
/api/crypto/price$0.001
/api/crypto/markets$0.002
/api/crypto/history$0.003
/api/crypto/trending$0.001
/api/crypto/search$0.001
/api/wallet/balances$0.005
/api/wallet/transactions$0.005
/api/wallet/pnl$0.01
/api/token/prices$0.005
/api/token/metadata$0.002
/api/ipfs/pin$0.01
/api/ipfs/get$0.001
/api/embeddings$0.001
/api/web/scrape$0.005
/api/web/screenshot$0.01
/api/search/web$0.010
/api/search/contents$0.005
/api/tts/openai$0.01
/api/tts/elevenlabs$0.02
/api/ens/resolve$0.001
/api/ens/reverse$0.001
/api/tx/simulate$0.01
/api/travel/flights$0.02
/api/travel/hotels$0.02

How it works

The x402 protocol turns HTTP into a payment rail. Three steps, fully automated.

1

Agent calls an endpoint

Your agent makes a normal HTTP request — GET /api/crypto/price?ids=bitcoin

HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: eyJ4NDAyVmVyc2lvbiI6Miw...
Content-Type: application/json
{ "error": "X-PAYMENT header is required", "accepts": [...] }
2

Agent signs a payment

The @x402/fetch wrapper reads the 402 response, picks a network, signs a stablecoin transfer, and retries with the payment attached.

X-PAYMENT: <base64-encoded signed payment>
GET /api/crypto/price?ids=bitcoin
3

Engine verifies & responds

The engine verifies the payment on-chain (or via the facilitator), executes the API call, and streams back the result. The settlement receipt is in the response headers.

HTTP/1.1 200 OK
PAYMENT-RESPONSE: <settlement receipt>
{ "bitcoin": { "usd": 97234.12, "usd_24h_change": 2.31 } }

Quick start

Five lines to make your first paid API call.

TypeScript
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// 1. Create account and x402 client (needs USDC on Base)
const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
const client = new x402Client();
registerExactEvmScheme(client, { signer: account, networks: ["eip155:8453"] });

// 2. Wrap fetch — it handles 402 negotiation automatically
const paidFetch = wrapFetchWithPayment(fetch, client);

// 3. Call any endpoint — payment happens transparently
const res = await paidFetch(
  "https://x402engine.app/api/crypto/price?ids=bitcoin"
);
const data = await res.json();
console.log(data); // { bitcoin: { usd: 97234.12, usd_24h_change: 2.31 } }
OpenClaw Skill

Add 70+ APIs to your agent
in 3 lines of code

Install the x402engine skill and your agent can answer questions about crypto prices, generate images, run code, scrape the web, and more. Users see answers — never payments.

$ cd skills/x402engine
$ npm install
$ export EVM_PRIVATE_KEY=0x...

User: "what's the price of bitcoin?"
Agent: "Bitcoin is currently $97,500."
# payment handled invisibly — $0.001 USDC