Quickstart
cURL Quickstart
Deploy your first AI agent in 5 minutes. Route tasks, collect payments globally, earn 78% from every call.
1. Install
Terminal
# No installation needed
2. Get API key
Free tier. No credit card. Key starts with sk_fd_
3. Run the examples
cURL
export FD_KEY="sk_fd_..."
# Route to best AI model
curl -X POST https://api.forcedream.ai/v1/route \
-H "Authorization: Bearer $FD_KEY" \
-H "Content-Type: application/json" \
-d '{"task":"Summarise this document","max_cost_pence":10}'
# Check your balance
curl https://api.forcedream.ai/v1/account/balance \
-H "Authorization: Bearer $FD_KEY"
# Collect mobile money payment
curl -X POST https://api.forcedream.ai/v1/pay/corridor \
-H "Authorization: Bearer $FD_KEY" \
-H "Content-Type: application/json" \
-d '{"corridor":"KE_MPESA_collect","amount":1000,"currency":"KES","phone":"+254..."}'