Skip to documentation
Docs/Quick start

Quick start

Every capability uses the same flow: quote, confirm, execute.

API base URL: https://api.anyuse.app/v1

1. Prepare an API key

Sign in to the console and create an invocation key under API Keys. Your account needs sufficient available balance.

Environment variables
export ANYUSE_API_URL="https://api.anyuse.app"
export ANYUSE_API_KEY="YOUR_ANYUSE_API_KEY"

2. Choose a capability

Discover capabilities
curl "https://api.anyuse.app/v1/capabilities?q=search"

The response includes parameter schemas, examples, execution modes and current prices.

3. Quote and execute

cURL
# 1. Request a quote
curl "https://api.anyuse.app/v1/quotes" \
  -H "Authorization: Bearer $ANYUSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "search.serper.web",
  "input": {
    "country": "us",
    "language": "en",
    "query": "AI developer tools"
  }
}'

# 2. If requires_budget=true, set a maximum budget; otherwise use price_usd.
# Save the idempotency key and request body; reuse them for recovery.
curl "https://api.anyuse.app/v1/executions?wait_ms=10000" \
  -H "Authorization: Bearer $ANYUSE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: YOUR_SAVED_REQUEST_ID" \
  -d '{"quote_id":"QUOTE_ID","max_cost_usd":"QUOTED_PRICE"}'

# 3. Query results using the id from the execution response
curl "https://api.anyuse.app/v1/executions/EXECUTION_ID" \
  -H "Authorization: Bearer $ANYUSE_API_KEY"
Cost for this call$0.003
operationsearch.serper.web

Using the CLI

Installing the CLI requires Node.js 22.12 or later. npm · GitHub

npm
npm install -g @anyuse/cli
anyuse --version

Use the CLI to discover capabilities, create quotes and execute tasks. It shares API keys, budgets and execution records with the HTTP API.

CLI
anyuse capabilities search search
anyuse capabilities inspect search.serper.web
anyuse quote search.serper.web --input '{"query":"AI tools"}'
anyuse run --quote QUOTE_ID --max-cost QUOTED_PRICE --wait

Quotes incur no upstream costs. Confirm the budget before execution and save the idempotency key. If the response is lost, recover using the original request.

Explore APIs