Authentication
Set yourCOMETAPI_KEY
environment variable. Get your API key from here.
Example
UseCometAPI
with your Agent
:
View more examples here.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
id | str | "gpt-5-mini" | The id of the model to use |
name | str | "CometAPI" | The name of the model |
api_key | Optional[str] | None | The API key for CometAPI (defaults to COMETAPI_KEY env var) |
base_url | str | "https://api.cometapi.com/v1" | The base URL for the CometAPI |
CometAPI
extends the OpenAI-compatible interface and supports most parameters from the OpenAI model.