Run a multi-step content task in the background
spawn_background_task is several tools in one async job. Treating a single generate as a pipeline wastes credits.
spawn_background_task is several tools in one async job. Treating a single generate as a pipeline wastes credits.
Run a recurring video series is one agent job. schedule_workflow regenerates on a cadence. Scheduling the same MP4 is a different job.
Inspect the agent's proposed tool steps, drop the ones you do not want, and only then dispatch. Nothing generates until you approve.
Server-side publishing needs a narrower key than generation, plus its own rate limit. Scope a key to posting and pace it so a bug cannot generate.
Long renders don't have to freeze the conversation. How to hand a slow multi-step job to a background task and keep briefing the agent on the next scene.
A repeatable batch pattern: cost the run before dispatch, split dispatch from collection, respect the rate limit, and survive one bad model name.
One catalog, three ways in. Compared on iteration speed, batch scale, review flow and who can operate each, with a recommendation per role.
A background task name is the saved-workflow key. Name it by intent so a later re-run updates one recipe instead of spawning a v2 row.
The free 480p preview (5-second per-user cooldown) caps at 10 clips and 180 seconds. Build an iterate loop that respects all three gates before you export.
POST /quick-generate runs one image or video generate without chat memory. Use it for scripted one-shots; keep /chat for anything that has to remember a brief.
Plant engineers discount polished automation reels. The sim-and-real-line pair is the proof format that survives them, and cycle-time numbers wait for FAT.
Browser-approval login cannot run on a build runner. Set up a scoped key, inject it as a secret, and keep the job fully non-interactive.
There is no Idempotency-Key header. Mint your own batch ID, persist the request ID as soon as you have it, and make timeouts safe without charging twice.
Install the CLI, mint a key, dispatch an image and a video job over HTTP, poll status, and pull the finished file down without opening the web app.