magnitude.config.ts. If no LLM is configured and ANTHROPIC_API_KEY is available, Magnitude will use Claude Sonnet 4 automatically.
While a variety of LLM providers are supported, many of them do NOT have any visually grounded model. See LLM Configuration for details.
Magnitude uses BAML’s providers under the hood, so their docs may be a useful secondary reference for credential configuration.
magnitude.config.ts, like:
Providers
Google AI Studio
Google Vertex AI
gcloud CLI.
- Create a project in Google Cloud.
- Enable Vertex AI in that project by going to Vertex AI Dashboard an selecting “Enable all Recommended APIs”
- Install the
gcloudCLI (instructions) - Run
gcloud auth application-default login --project <your-project-id>
More info: BAML Google Vertex Provider Docs
Anthropic
OpenAI
OpenAI-compatible (OpenRouter, Ollama, etc.)
AWS Bedrock
Azure OpenAI
More info on authenticating with Azure: https://docs.boundaryml.com/ref/llm-client-providers/open-ai-from-azure
Configuring Moondream
Moondream cloud is the easiest way to get set up, and offers 5,000 free requests per day. Get an API key here. Moondream is open source and can also be self-hosted instead of using their cloud option. See here for instructions. If self-hosting, configure thebaseUrl to point to your server: