api-docs/docs at main Β· aimlapi/api-docs

description

Learn how to get started with the AI/ML API

🧭 Documentation Map

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 image
Pro-Grade Image ModelNano-Banana-2-new.jpggemini-3.1-flash-image.md
Top Video Generatorphoto_2025-11-10_18-53-24.jpgsora-2-t2v.md
Smarter Reasoning & Codinggemini3.1pro.pnggemini-3-1-pro-preview.md

Start with this code block

πŸš€ Setup guide

🧩 SDKs

▢️ Run in Playground

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 400+ models >

ChatGPTOpenAI
DeepSeekDeepSeek
Fluxflux

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

{% hint style="info" %} If you've already made your choice and know the model ID, use the Search panel on your right. {% endhint %}

{% tabs %} {% tab title="Models by TASK" %} {% content-ref url="api-references/text-models-llm/" %} text-models-llm {% endcontent-ref %}

{% content-ref url="api-references/image-models/" %} image-models {% endcontent-ref %}

{% content-ref url="api-references/video-models/" %} video-models {% endcontent-ref %}

{% content-ref url="api-references/music-models/" %} music-models {% endcontent-ref %}

{% content-ref url="api-references/speech-models/" %} speech-models {% endcontent-ref %}

{% content-ref url="api-references/moderation-safety-models/" %} moderation-safety-models {% endcontent-ref %}

{% content-ref url="api-references/3d-generating-models/" %} 3d-generating-models {% endcontent-ref %}

{% content-ref url="api-references/vision-models/" %} vision-models {% endcontent-ref %}

{% content-ref url="api-references/embedding-models/" %} embedding-models {% endcontent-ref %} {% endtab %}

{% tab title="Models by DEVELOPER" %} Alibaba Cloud: Text/Chat Image Video Text-to-Speech Embedding

Anthracite: Text/Chat

Anthropic: Text/Chat Embedding

Assembly AI: Speech-To-Text

BAAI: Embedding

Baidu: Text/Chat

ByteDance: Text/Chat Image Video

Cohere: Text/Chat

DeepSeek: Text/Chat

Deepgram: Speech-To-Text Text-to-Speech

ElevenLabs: Text-to-Speech Voice Chat Music

Flux: Image

Google: Text/Chat Image Video Music Vision(OCR) Embedding

Gryphe: Text/Chat

Hume AI: Text-to-Speech

Inworld: Text-to-Speech

Kling AI: Image Video

Krea: Video

LTXV: Video

Meta: Text/Chat

Microsoft: Text-to-Speech

MiniMax: Text/Chat Video Music Voice-Chat

Mistral AI: Text/Chat Vision(OCR)

Moonshot: Text/Chat

NousResearch: Text/Chat

NVIDIA: Text/Chat

OpenAI: Text/Chat Image Speech-To-Text Embedding

Perplexity: Text/Chat

PixVerse: Video

RecraftAI: Image

Reve: Image

Runway: Video

Stability AI: Image Music 3D-Generation

Sber AI: Video

Tencent: Image Video 3D

Together AI: Embedding

VEED: Video

xAI: Text/Chat Image

Zhipu: Text/Chat {% endtab %}

{% tab title="Text Models by CAPABILITY" %} {% content-ref url="capabilities/completion-or-chat-models.md" %} completion-or-chat-models.md {% endcontent-ref %}

{% content-ref url="capabilities/streaming-mode.md" %} streaming-mode.md {% endcontent-ref %}

{% content-ref url="capabilities/code-generation.md" %} code-generation.md {% endcontent-ref %}

{% content-ref url="capabilities/thinking-reasoning.md" %} thinking-reasoning.md {% endcontent-ref %}

{% content-ref url="capabilities/function-calling.md" %} function-calling.md {% endcontent-ref %}

{% content-ref url="capabilities/image-to-text-vision.md" %} image-to-text-vision.md {% endcontent-ref %}

{% content-ref url="capabilities/web-search.md" %} web-search.md {% endcontent-ref %} {% endtab %} {% endtabs %}

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:

Have suggestions for improvement? Let us know!