HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · MONAD · CELO · AVALANCHE · SEI · OPTIMISM · STELLAR · ALGORAND · ROBINHOOD · USDC · USDG
Agent402 / tools / AI & compute

AI & compute

Inference, generation and sandboxed execution priced per call: chat tiers, image generation, text-to-speech, speech-to-text, and code execution in an isolated sandbox.

15 tools in this category. ← All tools

LLM inference

$0.010 · POST /api/llm

LLM inference proxy - send an OpenAI-format chat/completions request and get a response from GPT-4o-mini. Supports visio…

try in playground →

LLM inference (Pro)

$0.100 · POST /api/llm-pro

LLM inference proxy (Pro tier) - GPT-4o or GPT-4.1. Supports vision (up to 2 image URLs) and structured output (response…

try in playground →

LLM inference (Premium)

$0.500 · POST /api/llm-premium

LLM inference proxy (Premium tier) - o3 or o3-mini reasoning models. Supports vision (up to 2 image URLs) and structured…

try in playground →

Image generation

$0.030 · POST /api/image-gen

Generate an image from a text prompt using GPT Image 2 (low quality, 1024x1024). No API key needed; pay per call via x40…

try in playground →

Image generation (HD)

$0.100 · POST /api/image-gen-hd

Generate a higher-quality image from a text prompt using GPT Image 2 (medium quality, 1024x1024). No API key needed; pay…

try in playground →

Image generation (Premium)

$0.300 · POST /api/image-gen-premium

Generate a premium image from a text prompt using GPT Image 2 (medium quality, 1024x1024). Flagship model with best deta…

try in playground →

Code execution

$0.020 · POST /api/code-run

Execute Python or JavaScript code in a secure, isolated cloud sandbox. Returns stdout, stderr, and the expression result…

try in playground →

Code execution (Pro)

$0.050 · POST /api/code-run-pro

Execute Python or JavaScript code in a secure, isolated cloud sandbox (Pro tier). Same as /api/code-run but with 60s tim…

try in playground →

Text-to-speech

$0.050 · POST /api/tts

Convert text to speech using OpenAI TTS-1. Returns base64-encoded audio (mp3/opus/aac/flac/wav/pcm). 10 voices available…

try in playground →

Text-to-speech (HD)

$0.100 · POST /api/tts-hd

Convert text to speech using OpenAI TTS-1-HD (higher fidelity). Returns base64-encoded audio. Same interface as /api/tts…

try in playground →

Speech-to-text

$0.030 · POST /api/transcribe

Transcribe audio to text using OpenAI (gpt-4o-mini-transcribe). Provide a URL to an audio file (mp3, wav, m4a, etc.) and…

try in playground →

Speech-to-text (Pro)

$0.100 · POST /api/transcribe-pro

Transcribe audio to text using OpenAI (gpt-transcribe). Higher accuracy than the standard tier. Provide a URL to an audi…

try in playground →

Text embeddings

$0.005 · POST /api/embed

Generate a text embedding vector using OpenAI text-embedding-3-small (1536 dimensions). Ideal for semantic search, RAG, …

try in playground →

Text embeddings (Large)

$0.010 · POST /api/embed-large

Generate a text embedding vector using OpenAI text-embedding-3-large (3072 dimensions). Higher accuracy than the small m…

try in playground →

Content moderation

$0.002 · POST /api/moderate

Check text for harmful content using OpenAI moderation (omni-moderation-latest). Returns flagged status, category breakd…

try in playground →