SWARMDEVELOPERS
OpenAI-compatible · pay-per-job in ETH

Run AI on the swarm.

A decentralized GPU network for inference. Get an API key with your wallet, top up with ETH, and submit jobs to thousands of operator machines. No servers, no GPU bills, no lock-in.

Testnet beta on Base Sepolia · switching from OpenAI is a base-URL change.

generate.sh
# one POST — runs on a real operator GPU
curl https://api.swarm.green/v1/images \
  -H "Authorization: Bearer $SWARM_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"a swarm of golden bees,
       cinematic","width":1024,"height":1024}'
How it works

Three steps to your first job.

01

Connect & sign in

Connect your wallet and sign one message. We mint an API key bound to your address — no email, no password.

02

Top up credits

Send ETH to your credits address. It's added 1:1 as compute credit, confirmed on-chain. Spend only what you use.

03

Submit jobs

Call the OpenAI-compatible API. Jobs run on verified operator GPUs; failed jobs are auto-refunded to your balance.

Console

Your developer dashboard.

Connect your wallet to get an API key

Sign in with your wallet to mint (or load) your key, see your balance, run jobs, and review history.

Credits
Jobs run
Spent
Price / job

Treat this like a password — anyone with it can spend your credits. Bound to .

Job history

JobPromptSizeStatusCostWhenResult
No jobs yet — run one in the Playground.

Top up credits

Sends ETH to your credits address and adds an equal amount of compute credit (1:1), confirmed on Base Sepolia.

Deposit history

AmountWhenTransaction
No deposits yet.
API reference

OpenAI-compatible. Minimal.

Base URL https://api.swarm.green. Authenticate with Authorization: Bearer <key>.

POST /v1/images

Submit an image-generation job. Returns a job id; credits are deducted on submit and refunded if it fails.

{ "prompt": "...",
  "width": 1024, "height": 1024,
  "steps": 4 }

GET /v1/images/:id

Poll a job. When status is verified, url points at the result.

{ "id": "img_...",
  "status": "verified",
  "url": "/api/jobs/.../result.png" }

GET /v1/jobs

Your job history + usage summary (Bearer auth).

GET /v1/account

Credit balance, price per job, and your credits address (Bearer auth).