arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

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


Start with this code block 🚀 🧩

▶️


hashtag
Browse Models

Popular |

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

circle-info

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

Alibaba Cloud:

Anthracite:

Anthropic:

Assembly AI:

Baidu:

ByteDance:


hashtag
Going Deeper

hashtag
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 (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?

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

VEED: Video

xAI: Text/Chat Image

Zhipu: Text/Chat

Completion and Chat Completionchevron-rightStreaming Modechevron-rightCode Generationchevron-rightThinking / Reasoningchevron-rightFunction Callingchevron-rightVision in Text Modelschevron-rightWeb Searchchevron-right

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

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)

Pro-Grade Image Model

Top Video Generator

Smarter Reasoning & Coding

View all 400+ models >
Search panelarrow-up-right
text-sizeText Models (LLM)chevron-right
image-landscapeImage Modelschevron-right
videoVideo Modelschevron-right
guitarMusic Modelschevron-right
waveformVoice/Speech Modelschevron-right
cube3D-Generating Modelschevron-right
eyeVision Modelschevron-right
binaryEmbedding Modelschevron-right
Text/Chat
Image
Video
Text-to-Speech
Embedding
Text/Chat
Text/Chat
Embedding
Speech-To-Text
Text/Chat
Text/Chat
Image
Video
a quick 5-question surveyarrow-up-right
Let us know!arrow-up-right
Setup guide
SDKs
Run in Playgroundarrow-up-right

Cover
Cover
Cover
ChatGPT
DeepSeek
Flux