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.

20 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.150 · POST /api/image-gen-premium

Generate a larger image from a text prompt using GPT Image 2 (medium quality): 1536x1024 landscape by default, 1024x1536…

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 (lite)

$0.005 · POST /api/tts-lite

Convert text to speech with Kokoro-82M, a fraction of the price of /api/tts. Returns base64-encoded mp3 or pcm. The same…

try in playground →

Text-to-speech

$0.120 · POST /api/tts

Convert text to speech with ElevenLabs Eleven v4 Turbo: returns audio (the base64-encoded file in the format asked for: …

try in playground →

Text-to-speech (HD)

$0.240 · POST /api/tts-hd

Convert text to speech with ElevenLabs Eleven v4, its most expressive model (inline audio tags such as [whispering] are …

try in playground →

Speech-to-text

$0.030 · POST /api/transcribe

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

try in playground →

Speech-to-text (Pro)

$0.100 · POST /api/transcribe-pro

Transcribe audio to text using OpenAI (gpt-transcribe) - the same model as /api/transcribe with a longer cap. Provide a …

try in playground →

Speech-to-text (OpenAI transcription wire)

$0.030 · POST /v1/audio/transcriptions

OpenAI's own transcription wire: POST multipart/form-data with a `file` part and get the transcript back. Point any Whis…

try in playground →

Speech-to-text, long audio (OpenAI transcription wire)

$0.100 · POST /v1/pro/audio/transcriptions

OpenAI's transcription wire on the ten-minute tier: POST multipart/form-data with a `file` part. Same model as /v1/audio…

try in playground →

Text embeddings

$0.002 · 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 →

Typed judgment

$0.001 · POST /v1/judge

Ask a typed question about any content and get an answer your code can branch on, not prose to parse. Send state (the co…

try in playground →

Decisions (OpenAI wire)

$0.001 · POST /v1/decisions

OpenAI's Decisions API on its own wire: point an OpenAI SDK's base URL here and client.decisions.create works unchanged,…

try in playground →