Write typed functions that call models and process their results.
Write functions, prompts, and data models in BAML. Run them directly with the CLI, or generate an SDK to call them from your application. Functions can call models, transform data, handle errors, and run work concurrently.
Open language
BAML is open source. Read the compiler and runtime source, report bugs, or contribute changes.
Start learning
Install Canary and run a function, then read the BAML book.
Reference
Look up declaration syntax in the language reference and library APIs in standard packages. Select your toolchain version when checking a library API.
Language bridges
Generate an SDK to call BAML functions from your application.