Cookbook

Recipes that run the first time you copy them.

Each recipe solves one focused problem, shows working code, and points to what’s next. Start with API fundamentals to nail the primitives, then layer on agent loops and full use cases. Colab notebooks + standalone Python files.

Muse Code recipes

AGENT PATTERNS

The core patterns that get the most out of Muse Code, straight from the launch materials.

API fundamentals

10 recipes

Prove each API primitive works and get a starting point you can build on.

Agent patterns

5 recipes

Build the loops that turn a model into an agent: planning, parallel work, and self-correction.

Use cases

13 recipes

End-to-end patterns: multimodal perception, orchestration, and full applications.

Every recipe needs one thing: a key.

Get a Model API account at dev.meta.ai, create an API key, and export it as MODEL_API_KEY. The API is drop-in compatible with the OpenAI SDK — see the quickstart snippet in the docs.

Read the docs