---
title: "The Scenario API"
kind: course
level: Advanced
updated: 2026-10-16
canonical: https://learn.scenario.com/courses/scenario-api
---

Last updated: 2026-10-16

# The Scenario API

> 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.

What you will learn:

- 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

## Lessons

- [Create API keys and authenticate requests](https://learn.scenario.com/api/api-keys-and-authentication.md): Create project or organization keys with the right role, scopes and spend cap, send them with Basic auth, then rotate and store them safely. (updated 2026-10-12)
- [Generate, poll and download an image with the API](https://learn.scenario.com/api/api-quickstart.md): Generate an image with the Scenario API, wait for the job and save the file, in curl, Python and JavaScript. (updated 2026-10-16)
- [Jobs, polling and webhooks](https://learn.scenario.com/api/jobs-polling-and-webhooks.md): Follow a job from submit to result, poll it safely, or get a signed webhook when it finishes, with retries and deduplication. (updated 2026-10-12)
- [Upload and manage assets via the API](https://learn.scenario.com/api/upload-and-manage-assets-via-api.md): Upload images, audio, video and 3D as inputs, get file URLs and conversions, and organize assets with tags, collections and copies from code. (updated 2026-10-12)
- [Run Apps and train custom models via the API](https://learn.scenario.com/api/custom-models-via-api.md): 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. (updated 2026-10-12)

Source: https://learn.scenario.com/courses/scenario-api
