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: a client-supplied outputId becomes the generation id, so a retried request returns the same job and does not double-charge.

By domain

Generate

Library

Pipeline

Brand

Inspiration

Editor

Account

The endpoint tables on these pages are generated from the route contract, so every method, path and scope is checked against the route code before a release. Request fields come from the same contract. For the full shape of an answer, see the SDK types, and contenthero schema get commands dumps every command’s input schema from the CLI.