Skip to content
Docs menu

The eight steps

Eight small steps, each ending with something you can run.

You build the product in the order a real project grows: prove one call, make it a scene, make it safe, make it robust, then make it shareable. Every step shows the same code in Python, TypeScript and Rust, and every step ends with something you can run and check.

The plan

StepYou addYou are done when
1. Your first soundOne wave.generate call and one download.A playable rain.mp3 exists and the program prints its file id and cost.
2. Three layers in one callA list of prompts for bed, detail and depth.Three files exist, and the prompts are visibly different.
3. Add musicA Composer call and the master file.A music file exists next to the layers.
4. Sessions and downloadsThe session id, kept and reused.You can download a file again from only its id and session.
5. Balance and costA balance check before spending, and a cost total.With a zero balance the program stops before spending.
6. Background jobsasync music for long tracks, and waiting for the job.A two-minute track completes without holding a connection open.
7. Error handlingOne handler for every error kind.You have seen each message by running against the mock.
8. Manifest and command lineA manifest.json and argument parsing.A colleague with only a key can run it and get the same folder.
Tip

Each step builds on the one before it, but each also runs on its own. If something breaks, go back to the last step that worked.

In this section