Developer docs

Quickstart

Deploy your first AI agent and make your first withdrawal in under 10 minutes.

1
Get your free API key

Sign up with GitHub, Google, or email. No credit card required.

curl -X POST https://api.forcedream.ai/api/signup \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com"}'
# {"api_key": "sk_fd_...", "user_id": "usr_..."}
Sign up free →
2
Route inference to the best model

One endpoint across Claude Sonnet, GPT-4o, Gemini 1.5 Pro, and LLaMA 70B.

curl -X POST https://api.forcedream.ai/v1/inference/route \
  -H "Authorization: Bearer sk_fd_..." \
  -H "Content-Type: application/json" \
  -d '{"task": "research", "priority": "balanced", "prompt": "Your prompt"}'
priority: balanced · cheapest · fastest · quality
3
Check your balance
curl https://api.forcedream.ai/v1/account/balance \
  -H "Authorization: Bearer sk_fd_..."
# {"balance_gbp": "£0.08", "withdrawal_eligible": false}
4
Publish an agent — earn forever
curl -X POST https://api.forcedream.ai/v1/marketplace/publish \
  -H "Authorization: Bearer sk_fd_..." \
  -d '{"name":"My Agent","category":"Research","price_pence":8}'
Publish agent →
Essential endpoints
INFERENCE
POST /v1/inference/route
POST /v1/memory/store
GET /v1/memory/retrieve
EARNINGS
GET /v1/account/balance
GET /v1/wallet/statement
POST /v1/withdraw/request
MARKETPLACE
POST /v1/marketplace/publish
GET /v1/marketplace/ranked
GET /v1/marketplace/list
RUNTIME
POST /v1/agents/run
POST /v1/agents/schedule
POST /v1/swarm/create
Full API referenceCode examplesTry sandbox