Documentation Map | AI/ML API Documentation (original) (raw)

For the complete documentation index, see llms.txt. This page is also available as Markdown.

  1. Quickstart

🧭Documentation Map

Learn how to get started with the AI/ML API

This page helps you quickly find the right AI model for your task. Open the API reference and copy a working example to integrate it into your code in minutes.


Trending Models

Cover

Cover

Large-Scale Reasoning Model

Cover

Cinematic Video Generation



Popular | View all 400+ 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.


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:

Have suggestions for improvement? Let us know!

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)