Skip to main content
ContentHero exposes one backend surface three ways. They are the same operations under different skins.

Base URL and auth

Send your API key as a bearer token:

TypeScript SDK

The SDK is a hand-written kernel: typed inputs and outputs, idempotency keys, and smart-wait plus polling helpers. The MCP server and the CLI both ride it.

Conventions

  • Async: generation endpoints smart-wait, then return an outputId to poll at GET /studio/generate/{outputId}.
  • Chaining: references accept a raw URL or an output-id token <uuid>-<N>.
  • Cost preflight: generation accepts a cost-only mode (getCost: true) that charges nothing.
  • Scopes: keys are scope-gated; a 403 names the missing scope. See API Keys.
  • Rate limits: per-key, returning 429 when exceeded.
  • Idempotency: generation accepts an idempotency key so a retried request does not double-charge.

By domain

Generate

Pipeline

Brand

Inspiration

Account

These pages document the endpoints, their methods, scopes, and purpose. The authoritative contract for exact request and response shapes is the SDK types, and contenthero schema dumps every command’s input schema from the CLI.