About this course
Five films on calling Scenario from your own code, with real requests and responses. Keys, a first generation, jobs and webhooks, assets, then workflows and your own models.
- Create a project API key and authenticate with HTTP Basic
- Read a model's inputs, quote a run, then generate and download the result
- Wait for jobs by polling or with signed webhooks
- Upload files, organize assets and use them as model inputs
- Run a published App and train your own LoRA from code
All lessons
1 Film DoneAPI
Create API keys and authenticate requests
Create project or organization keys with the right role, scopes and spend cap, send them with Basic auth, then rotate and store them safely.
2 Film DoneAPI
Generate, poll and download an image with the API
Generate an image with the Scenario API, wait for the job and save the file, in curl, Python and JavaScript.
3 Film DoneAPI
Jobs, polling and webhooks
Follow a job from submit to result, poll it safely, or get a signed webhook when it finishes, with retries and deduplication.
4 Film DoneAPI
Upload and manage assets via the API
Upload images, audio, video and 3D as inputs, get file URLs and conversions, and organize assets with tags, collections and copies from code.
5 Film DoneAPI
Run Apps and train custom models via the API
Run a published App through the workflow endpoint, then create a FLUX.2 Klein 4B LoRA, add training images, quote and train it, and generate with it from code.