🧭Documentation Map

Learn how to get started with the AI/ML API

This documentation portal is designed to help you choose and configure the AI model that best suits your needsβ€”or one of our solutions (ready-to-use tools for specific practical tasks) from our available options and correctly integrate it into your code.

Have suggestions for improvement? Let us know!


Start with this code block πŸͺ Step-by-step example:

Setting Up πŸͺ Choose the SDK to use:

Supported SDKs

from openai import OpenAI

client = OpenAI(
    base_url="https://api.aimlapi.com/v1",
    api_key="<YOUR_AIMLAPI_KEY>",    
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Write a one-sentence story about numbers."}]
)

print(response.choices[0].message.content)


Browse Models

Popular | View all 200+ models >

Select the model by its Task, by its Developer or by the supported Capabilities:

If you've already made your choice and know the model ID, use the Search panel on your right.

Browse Solutions

  • AI Search Engine – if you need to create a project where information must be found on the internet and then presented to you in a structured format, use this solution.

  • OpenAI Assistants – if you need to create tailored AI Assistants capable of handling customer support, data analysis, content generation, and more.


Going Deeper

Use more text model capabilities in your project: πŸ“– ​Completion and Chat Completion

πŸ“– Function Calling

πŸ“– Streaming Mode

πŸ“– Vision in Text Models (Image-to-Text)

πŸ“– Code Generation

πŸ“– Thinking / Reasoning

πŸ“– Web Search

Miscellaneous: πŸ”— Integrations

πŸ“— Glossary

⚠️ Errors and Messages

❓ FAQ ​

Learn more about developer-specific features: πŸ“– Features of Anthropic Models

Have a Minute? Help Make the Docs Better!

We’re currently working on improving our documentation portal, and your feedback would be incredibly helpful! Take a quick 5-question survey (no personal info required!)

You can also rate each individual page using the built-in form on the right side of the screen:

Last updated

Was this helpful?