For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Search
/
Ask AI
Help on Discord
Home
Guide
Examples
BAML Reference
Playground
Agents.md
Changelog
Skip to navigation
Prompt Syntax
Variables
Copy page
See
template_string
to learn how to add variables in .baml files
Overview
init
generate
test
serve
dev
fmt
comments
Environment Variables
string
int / float
bool
array (list)
map (dictionary)
image / audio
Types
function
test
template_string
client<llm>
class
enum
generator
with_options(..)
AbortSignal / Cancellation
Collector
logging / env vars
AsyncClient / SyncClient
TypeBuilder
ClientRegistry
client Option
OnTick
Multimodal
Image
Audio
Pdf
Video
Overview
BamlValidationError
BamlClientFinishReasonError
BamlAbortError
use{FunctionName} Hook
HookInput
HookOutput
HookData
What are attributes?
@alias / @@alias
@description / @@description
@skip
@assert
@check
Jinja in Attributes
@@dynamic
Overview
AWS Bedrock
Anthropic
Google AI: Gemini
Google: Vertex
OpenAI
OpenAI Responses API
OpenAI from Azure
OpenRouter
openai-generic
Microsoft Foundry (openai-generic)
Cerebras (openai-generic)
Groq (openai-generic)
Hugging Face (openai-generic)
Respan (openai-generic)
Llama API (openai-generic)
Litellm (openai-generic)
LM Studio (openai-generic)
Ollama (openai-generic)
Vercel AI Gateway (openai-generic)
Tinfoil (openai-generic)
TogetherAI (openai-generic)
Unify AI (openai-generic)
vLLM (openai-generic)
Timeout Configuration
Connection Pooling
Retry Policy
Fallback
Round Robin
What is jinja?
Jinja Filters
ctx.output_format
ctx.client
_.role
Variables
Conditionals
Loops
baml.cliPath
baml.generateCodeOnSave
baml.enablePlaygroundProxy
baml.syncExtensionToGeneratorVersion