Agno lets you build and run AI agents in Python. Agno includes an officialDocumentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
CometAPI model provider, so you can use CometAPI directly from agno.models.cometapi without creating a custom adapter.
Prerequisites
- Python 3.10+
- The Agno Python package
- A CometAPI account with an active API key — get yours in the dashboard
Configure the integration
Create an Agno agent
Use Agno’s official Replace
CometAPI provider:your-model-id with a current model ID from the CometAPI Models page.How Agno connects to CometAPI
Agno’s officialCometAPI provider reads COMETAPI_KEY from your environment and uses https://api.cometapi.com/v1 as the default base URL. It extends Agno’s OpenAI-compatible model interface internally, but your application code should import and instantiate CometAPI.
You can also pass the API key or base URL explicitly when your runtime cannot read environment variables:
List available models
Agno’s provider exposesget_available_models() for checking the model IDs available through your CometAPI account:
Troubleshooting
Authentication errors
Authentication errors
Confirm that
COMETAPI_KEY is set in the same shell session that runs agent.py. If the variable is missing, Agno raises an authentication error before sending the model request.Model errors
Model errors
Confirm that the
id value matches a model ID from the CometAPI Models page. You can also call CometAPI().get_available_models() to inspect model availability from your account.