Skip to main content
A run renders one workflow, named by its slug, with your prompt and your character. You start it, poll it until it settles, then download what it made.

Build a character and generate with it. Paste into Cursor, Claude Code or Codex to add the Omnichar API to your project.

Open in Cursor
You need a key with runs:write to start runs and runs:read to read them. New keys don’t have either, so tick both when you create the key. See Authentication.

Start a run

POST /v1/runs · scope runs:write
char_id is the id of a character you created with POST /v1/chars, one licensed to your team, or one you built in Omnichar Cloud. A name the workflow does not have is refused with 422, and the error lists the names it accepts:
Send an Idempotency-Key so a retried request does not start a second run. See Safe retries.

Workflows

Every workflow takes its prompt in inputs.prompt.text. “Required” means the run is refused unless it casts a character or brings a reference image. For video, duration is 5 to 15 seconds and resolution defaults to 480p. aspect_ratio is one of 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9, and the reference workflows also take adaptive, their default. A value a model doesn’t offer is refused with 422. The dashboard offers a few more workflows. They are left out here because they may change without notice.
What each run costs is on Pricing.

Wait for the run

GET /v1/runs/{id} · scope runs:read
status moves through queued, dispatching and running to one of succeeded, failed or canceled. A failed run carries error.message. Runs send no webhooks, so poll every few seconds, backing off as the run gets older. An image usually takes under a minute and a video a few minutes.

Get the outputs

GET /v1/runs/{id}/outputs · scope runs:read
Download each url before expiresAt. Ask for the outputs again to get fresh links. continuity is the identity match score explained in Scoring.

In sandbox

With an sk_test_ key, a run goes through the same checks, including the input names above, then finishes about 10 seconds later with a placeholder: a grey image, or a short clip for video. Nothing is charged. See Sandbox.

Errors

See Errors for the full list.