Unified API for 400+ AI models across text, image, video, and audio. OpenAI-compatible with serverless inference.

Features

OpenAI Compatible
Streaming
Batching
Fine-tuning
Embeddings
Vision
Audio
Function Calling
JSON Mode

Compliance

SOC 2
HIPAA
GDPR

Pricing Model

per token
Free tier: Available

Details

Models 27
API Base https://api.aimlapi.com/v1
Audio / MusicEmbeddingsImage GenerationLLM InferenceVideo Generation

Model Catalog (27)

Model Type Input $/1M Output $/1M Context Speed Status
Claude 4.5 Haiku
Anthropic
llm $1.38 $6.88 — —
Claude 4.6 Opus
Anthropic
llm $6.50 $32.50 — —
Claude 4.6 Sonnet
Anthropic
llm $4.13 $20.63 — —
DeepSeek R1
DeepSeek · 671B MoE
llm $0.688 $2.96 — —
DeepSeek V3
DeepSeek · 671B MoE
llm $0.399 $1.57 — —
DeepSeek V3.1
DeepSeek · 671B MoE
llm $0.894 $2.34 — —
Flux 1 Schnell
Black Forest Labs
image gen $0.0039/img — — —
Flux 2 Pro
Black Forest Labs
image gen $0.039/img — — —
GLM 4.7
Zhipu AI
llm $0.780 $2.86 — —
GLM 5
Zhipu AI · 744B
llm $1.30 $4.16 — —
GPT-5.4
OpenAI
llm $3.25 $19.50 — —
GPT-5.4 Pro
OpenAI
llm $41.26 $247.57 — —
Gemini 2.5 Flash
Google
llm $0.390 $3.25 — —
Gemini 3 Flash
Google
llm $0.650 $3.90 — —
Gemini 3.1 Pro
Google
llm $2.60 $15.60 — —
Imagen 4 Ultra
Google
image gen $0.078/img — — —
Kimi K2
Moonshot AI · 1T MoE (32B active)
llm $0.784 $3.16 — —
Kimi K2.5
Moonshot AI · 1T MoE (32B active)
llm $0.780 $3.90 — —
Kimi K2.6
Moonshot AI · 1T MoE (32B active)
llm $1.24 $5.20 262k —
Kimi K2.7 Code
Moonshot AI · 1T MoE (32B active)
code $1.24 $5.20 262k —
Seedream 5.0 Lite
ByteDance
image gen $0.045/img — — —
Veo 3.1
Google
video gen $0.260/sec — — —
Whisper Large V3
OpenAI · 1.5B
speech to_text $0.0001/sec — — —
o3
OpenAI
llm $2.60 $10.40 — —
o4 Mini
OpenAI
llm $1.43 $5.72 — —
text-embedding-3-large
OpenAI
embedding $0.169 — — —
text-embedding-3-small
OpenAI
embedding $0.026 — — —

AIMLAPI API FAQ

Is the AIMLAPI API free?

Yes, AIMLAPI has a free tier. Paid usage is billed per model.

What is the cheapest AIMLAPI model?

Text-embedding-3-small at $0.03 in per 1M tokens, based on the 27 models we track for AIMLAPI.

How many models does AIMLAPI offer?

We track 27 AIMLAPI models: 18 LLM, 4 image generation, 2 embedding, 1 coding, 1 video generation, 1 speech-to-text.

Is the AIMLAPI API OpenAI-compatible?

Yes. AIMLAPI exposes an OpenAI-compatible endpoint, so you can use the OpenAI SDKs by changing the base URL and API key.