Guide
Build with the REST API
Make images, video, voice and full ads from your own code, with the price before every job.
- InYour code
- DoEstimate, create, poll
- OutFiles in your app
Who it is for
Developers adding ad making to a store, a tool or a workflow.
Why it works
Every job has a free estimate, a price cap you set and an automatic refund when it fails. Retries with an idempotency key never charge twice.
The steps in Staglight
Each step and what it does.
-
Get an API key
Sign up, confirm your email, then make a key in the studio.
-
Estimate
Send the same body as the job and get its price, for free.
-
Create and poll
Create the job, then ask for it with wait until it is done.
-
Download
Each finished job has signed links to its files.
Tips
- Get the estimate first: it is free.
- Send an Idempotency-Key on every paid call.
- Poll with wait so the answer comes when the job ends.
Ready when you are
Open it in Staglight and follow the same steps.
Try next
-
Guide
Make ads from your AI assistant
Connect Staglight to your AI chat app or code editor over MCP and ask for ads in plain words.
- Your AI assistant
- Connect once
- Ads made from chat
-
Preset
Giant product video
The crowd walks up to your giant product while the camera tilts up to it. With sound.
- Add your giant product picture
- Generate on Seedance 2.0 Mini
- A short video
-
ReferencePreset
Fire breath
The person in your photo turns into a robot and breathes a wall of fire.
- Add a photo of a person
- Generate on Seedance 2.5
- A short video