Skip to main content
The REST API is for your own code: an agent you build, a workflow, a service. Each tool is one HTTP call, made with your API key.

The tool list is JSON Schema

GET /api/v1/tools returns every tool with its description and JSON Schema input, the format model SDKs accept as tool definitions. An agent built on any model SDK can pass that list to its model and send each tool call to POST /tools/{name}. Adding ?instructions=cloud includes the operating instructions an MCP agent gets, so an agent without an MCP client can read the same rules. The OpenAPI document behind the API reference describes every route, and you can generate a client from it. Besides the tools, the API has routes for keys, workspaces, uploads, webhooks, models, cost estimates and the balance. The balance and cost-estimate routes return the same data as get_balance and estimate_cost. GET /models lists image and video models only, and list_models adds voices and the account default. Routes outside /tools return the object itself, and an error as { error: { code, message, status } }. Two tools are only on the MCP server: get_api_session and show_media. Every other tool is available on every interface with one schema.

Pages

  • Authentication: keys, OAuth tokens, script sessions, choosing a workspace.
  • Calling tools: the request and response envelope, response types, errors, retries, idempotency.
  • Uploads: adding files by presigned upload or by URL.
  • Webhooks: job results posted to your URL.
  • Limits: sizes, counts, windows and rates.
  • CLI: the same API from a shell.
  • Examples: three complete exchanges.

Cost

The API itself is free. What a tool costs is charged to the account’s balances, the same on every interface. See Costs.