Coasty Computer Use API Pricing: Every Endpoint, Every Cent
Building agents that act on screen requires predictable billing. The Coasty computer use API charges per action step, not per API call. You need to know exactly how much each endpoint costs to keep your agent budget in check. This post lists every endpoint, its pricing unit, and real costs so you can build with confidence.
How it works
The core unit of billing for Coasty is the agent step. Each time the agent takes an action, click, type, move, or another high-level command, it consumes credits. Your costs depend on which endpoint you use and how many steps the server executes.
# Start a task run and monitor cost per step
export COASTY_API_KEY="your-api-key"
curl -X POST https://coasty.ai/v1/runs \
-H "X-API-Key: $COASTY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"machine_id": "machine-123",
"task": "open chrome and navigate to coasty.ai",
"cua_version": "v4",
"max_steps": 50,
"deadline_seconds": 300,
"on_awaiting_human": "pause"
}'
# Poll the run until it reaches a terminal state
run_id=$(curl -s -X POST https://coasty.ai/v1/runs \
-H "X-API-Key: $COASTY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"machine_id": "machine-123","task": "open chrome","cua_version":"v4","max_steps":20,"deadline_seconds":300,"on_awaiting_human":"pause"}' \
| jq -r '.id')
while true; do
status=$(curl -s "https://coasty.ai/v1/runs/$run_id" \
-H "X-API-Key: $COASTY_API_KEY" | jq -r '.state')
echo "Run $run_id state: $status"
if [[ "$status" =~ ^(succeeded|failed|cancelled|timed_out)$ ]]; then break; fi
sleep 2
donePricing by endpoint
- ●Task Runs: $0.05 per agent step. POST /v1/runs uses this unit. GET /v1/runs, GET /v1/runs/{id}, POST /v1/runs/{id}/cancel, POST /v1/runs/{id}/resume are free.
- ●Vision: POST /v1/predict costs $0.05 per prediction. It takes a base64 screenshot, instruction, and cua_version and returns actions and a status. You loop capture, predict, act until status is done.
- ●Sessions: POST /v1/sessions ($0.10) creates a stateful trajectory memory. POST /v1/sessions/{id}/predict costs $0.04 per prediction and provides memory-aware actions.
- ●Grounding: POST /v1/ground costs $0.03. It maps a screenshot + element description to x,y coordinates.
- ●Parsing: POST /v1/parse is free. It converts pyautogui code into structured actions.
A developer should remember: Task runs cost $0.05 per agent step. Use sessions or grounding when you need per-prediction costs or element localization.
Where this beats brittle automation
Traditional automation relies on fragile selectors or fixed APIs. When a web page changes, those selectors break. The Coasty computer use agent sees the screen and acts like a human. It can click menus, type in inputs, and handle dynamic layouts without brittle selectors. This makes it ideal for browsers, desktop apps, and terminal workflows that do not expose stable APIs.
Now you know the exact cost per agent step for every Coasty computer use API endpoint. Build cost-aware agents that see and act on screen. Get your API key at https://coasty.ai/developers.