Coasty Computer Use API Pricing, Every Endpoint, Every Cent
Automating desktops usually means brittle selectors or an endless loop of API calls. Coasty turns that around. It actually sees the screen and acts like a human. The API gives you vision, stateful sessions, autonomous task runs, and a versioned workflow DSL. Every endpoint has a real price. You can budget by credit. This post lists every endpoint, field, and cost so you can build a complete computer use agent without surprises.
Vision and actions
- ●POST /v1/predict $0.05 per call. Takes base64 screenshot, instruction, and cua_version. Returns actions and status. Loop capture, predict, act until status is done.
- ●POST /v1/parse is free. Turns PyAutoGUI code into structured actions.
- ●POST /v1/ground $0.03 maps a screenshot plus element description to x,y coordinates.
#!/usr/bin/env bash
# Simple vision loop using Coasty Computer Use API
# Requires: COASTY_API_KEY env var
set -euo pipefail
BASE_URL="https://coasty.ai/v1"
API_KEY="${COASTY_API_KEY}"
cua_version="v3"
IMAGE_PATH="screenshot.png"
while true; do
# 1. Capture screen
screenshot=$(base64 -w 0 "$IMAGE_PATH")
# 2. Predict actions
response=$(curl -sS --fail \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d "{\"screenshot\":\"$screenshot\",\"instruction\":\"Click the OK button\",\"cua_version\":\"$cua_version\"}" \
"$BASE_URL/predict")
echo "$response" | jq -r ".actions[] | .type.x.y" || true
# 3. Check status
status=$(echo "$response" | jq -r ".status")
echo "status: $status"
[ "$status" = "done" ] && break
sleep 1
doneStateful sessions
- ●POST /v1/sessions $0.10 per call. Creates a session with id and stores trajectory memory.
- ●POST /v1/sessions/{id}/predict $0.04 per call. Runs prediction within a session. The server remembers previous steps, making long tasks cheaper and more reliable.
Sessions are billed $0.10 to create and $0.04 for each prediction inside that session.
Task runs (server-driven agent)
- ●POST /v1/runs $0.05 per agent step. Takes machine_id, task, cua_version, optional instructions, system_prompt, max_steps, deadline_seconds, on_awaiting_human, and webhook_url.
- ●GET /v1/runs lists all runs.
- ●GET /v1/runs/{id} returns a single run with state, timestamp, and final result.
- ●POST /v1/runs/{id}/cancel cancels a run.
- ●POST /v1/runs/{id}/resume resumes after a pause.
- ●GET /v1/runs/{id}/events streams Server-Sent Events. You can reconnect with the Last-Event-ID header.
- ●States: queued, running, awaiting_human, succeeded, failed, cancelled, timed_out.
Workflows (versioned JSON DSL)
- ●POST /v1/workflows saves a versioned workflow.
- ●POST /v1/workflows/{id}/runs starts a run from a workflow.
- ●POST /v1/workflows/runs runs an inline workflow.
- ●Step types: task, assert, if, loop, parallel, human_approval, retry, succeed, fail.
- ●Conditions are structured objects. Variables look like {{inputs.x}} and stepId.field.
- ●Hard guards: budget_cents, max_iterations, deadline_seconds.
- ●Task steps are billed $0.05 each.
Machines (cloud VMs)
- ●POST /v1/machines provisions a cloud VM you can start, stop, and snapshot.
- ●The agent drives real desktops, browsers, and terminals, not just API calls.
Billing and integrations
- ●Prepaid USD wallet. 1 credit = $0.01.
- ●Webhooks are HMAC signed (header Coasty-Signature: t=unix,v1=hex).
- ●Idempotency-Key header makes writes safe to retry.
- ●Scopes gate keys.
- ●MCP server lets you drive Coasty from Cursor, Claude Desktop, or other MCP clients.
Where this beats brittle automation
Selectors break when UI changes. APIs change faster than you can patch code. Coasty actually sees the screen and mimics human clicks, keystrokes, and scrolling. That means you do not need brittle selectors. You just give a natural language instruction and let the agent figure out where to click. Stateful sessions keep a trajectory so each step is cheaper and more accurate. Autonomous task runs and workflows let you orchestrate multi-step pipelines and guarantee success with asserts and hard guards. All of this is priced per step and per endpoint, so you can budget by credit.
Now you know every Coasty endpoint, field, and price. Build a computer use agent that sees the screen, remembers state, and scales with workflows. Get your API key at https://coasty.ai/developers.