Authentication
Set yourCOMETAPI_KEY
environment variable. Get your API key from here.
Example
UseCometAPI
with your Agent
:
View more examples here.
Params
Parameter | Type | Default | Description |
---|---|---|---|
id | str | "gpt-5-mini" | The specific model ID used for generating responses. |
name | str | "CometAPI" | The name identifier for the CometAPI agent. |
provider | str | "CometAPI" + id | The provider of the model, combining "CometAPI" with the model ID. |
api_key | Optional[str] | - | The API key for authenticating requests to the CometAPI service. Retrieved from the environment variable COMETAPI_KEY . |
base_url | str | "https://api.cometapi.com/v1" | The base URL for making API requests to the CometAPI service. |
CometAPI
also supports the params of OpenAI.