Models
AI/ML API
The AI/ML API provider gives unified access to over 300+ AI models, including Deepseek, Gemini, ChatGPT, and others, via a single standardized interface.
The models run with enterprise-grade rate limits and uptime, and are ideal for production use.
You can sign up at aimlapi.com and view full provider documentation at docs.aimlapi.com.
Parameter | Type | Default | Description |
---|---|---|---|
id | str | "gpt-4o-mini" | The specific model ID used for generating responses. |
name | str | "AIMLApi" | The name identifier for the AI/ML API agent. |
provider | str | "AIMLApi:" + id | The provider of the model, combining "AIMLApi" with the model ID. |
api_key | Optional[str] | – | The API key for authenticating requests to the AI/ML API service. Retrieved from the environment variable AIMLAPI_API_KEY . |
base_url | str | "https://api.aimlapi.com/v1" | The base URL for making API requests to the AI/ML API service. |
max_tokens | int | 4096 | The maximum number of tokens to generate in the response. |