Authentication
Set yourAIMLAPI_API_KEY environment variable. Get your key at aimlapi.com.
Example
UseAI/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 provides access to 300+ models. Some popular models include:- OpenAI Models:
gpt-4o,gpt-4o-mini,o1,o1-mini - Anthropic Models:
claude-3-5-sonnet-20241022,claude-3-5-haiku-20241022 - Meta Models:
meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo,meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo - Google Models:
gemini-1.5-pro,gemini-1.5-flash - DeepSeek Models:
deepseek-chat,deepseek-reasoner