AIMLAPI
Unified API for 400+ AI models across text, image, video, and audio. OpenAI-compatible with serverless inference.
At a glance: AIMLAPI has 27 models listed on Inference Hub: 18 LLMs, 4 image models, 2 embedding models, 1 coding model, 1 video model and 1 speech-to-text model. The cheapest text model is Gemini 2.5 Flash at $0.390 input and $3.25 output per 1M tokens, and the most expensive is GPT-5.4 Pro at $41.26 input and $247.57 output per 1M tokens. Image generation starts at $0.0039 per image with Flux 1 Schnell. Free tier: available. Prices are checked against AIMLAPI's own pricing every week.
Features
Compliance
None listed
Pricing Model
per tokenDetails
https://api.aimlapi.com/v1 Model Catalog (27)
AIMLAPI guides
Gemini API Pricing 2026: Every Model, the Free Tier and the Cheapest Provider
Gemini API pricing per 1M tokens: Gemini 4, 3.8 Flash, 3.1 Pro, 2.5 and Gemma. What the free tier covers, 50% Batch/Flex discounts, cheapest providers.
Nov 2026Claude API Pricing 2026: Every Model, Batch and Caching Discounts, and the Cheapest Provider
Claude API cost per 1M tokens for Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2, plus 50% Batch and prompt caching discounts and the cheapest provider.
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.
Run AIMLAPI? Add a "Prices tracked on Inference Hub" badge to your site, or email hello@inferencehub.org if a price here is wrong.