API v3 — Live

One line.
Instant AI.

Not a coding tool — an engine that makes anything computational on the fly. Your users never see code. They just get something that was impossible two minutes ago.

Get API Key Read the Docs
// Spin up an AI coding environment in one call const sandbox = await fetch('https://codefast.ai/api/sandbox/create-sandbox', { method: 'POST', headers: { 'x-api-key': YOUR_KEY } }) // Send a prompt — Claude writes, runs, and returns code const result = await fetch(`/api/code/${id}/sessions/${sid}/messages`, { method: 'POST', body: JSON.stringify({ content: 'Build a REST API with auth' }) }) // That's it. Sandbox has running code, git history, terminal access.

Everything you need. Nothing you don't.

Each sandbox is a full development environment with AI built in.

📦

Instant Sandboxes

Spin up isolated cloud environments in seconds. Each gets its own filesystem, terminal, and network. Kill when done.

🧠

AI Sessions

Claude is built into every sandbox. Send a message, get working code. Review diffs, manage todos, share sessions.

💻

Terminal & Files

Full PTY terminal access. Read, write, search files. Find symbols across the codebase. All via REST API.

🔀

Git Built In

Every session gets version control. Commit, push, restore, branch. Clone sessions to new sandboxes.

🔑

Multi-Provider

Bring your own AI keys. Claude, GPT, Gemini — switch providers per session. Credentials synced to sandbox.

🛡️

API Keys & Limits

Create keys, set sandbox limits, manage users. Full admin API for billing and access control.

A complete IDE,
behind one REST API

40+ endpoints covering sandboxes, AI sessions, file operations, terminal, git, and monitoring. Everything your users need to code with AI — without building any of it yourself.

Explore API Docs →
POST/api/sandbox/create-sandbox
POST/api/code/{id}/sessions
POST/api/code/{id}/sessions/{sid}/messages
GET/api/code/{id}/files/content
POST/api/code/{id}/pty
POST/api/git/{id}/sessions/{sid}/sync
GET/api/code/{id}/sessions/{sid}/diff
DEL/api/sandbox/{id}

Make anything
computational.

One API. Invisible sandboxes. Let your users do things that weren't possible two minutes ago.

Get Started Free