Skip to main content
Use the object model config for a custom endpoint:
A bare string such as model: "openai/..." carries no url, so the router resolves it to the built-in provider for that prefix. Use the object form for Nito.
Or an AI SDK provider instance, which Mastra accepts anywhere a model is expected:

Privacy

Use a catalog ID, not an OpenAI name. For attested hardware use a :confidential variant; GET /v1/models lists their :confidential IDs. Encrypted needs client-side encryption and extra headers, which these frameworks do not add. See Privacy Levels.

Framework Integrations

The shared pattern.

OpenAI Compatibility

What differs.

Privacy Levels

The four levels.