ChatModel, an EmbeddingsModel or both.
Dependencies
You do not need to depend on thedartantic_ai package to create a custom provider. The dartantic_interface package is all you need.
Creating a Custom Provider
Here’s a simple example of a custom provider that exposes aChatModel:
Custom Model
Here’s a minimal chat model example:Dynamic Provider Registration
If you’d like to participate in the named lookup of providers, you can add your custom provider to the provider map:Examples
Next Steps
- Providers - Current built-in providers
- Environment Setup - Configure API keys

