Skip to main content
AI/ML API provides unified access to 300+ AI models, including models from OpenAI, Anthropic, Google, and DeepSeek.

Authentication

Set your AIMLAPI_API_KEY environment variable. Get your key at aimlapi.com.

Example

Install the openai package:
Use AI/ML API with your Agent:

Parameters

AIMLAPI extends the OpenAI-compatible interface and supports most parameters from the OpenAI model, where applicable.

Available Models

AI/ML API serves 300+ models from OpenAI, Anthropic, Google, Meta, DeepSeek, and others. The catalog changes often, so check the model database for current model IDs.