AIMLAPI website screenshot

AIMLAPI

AIMLAPI is a unified AI model API gateway providing access to 400+ state-of-the-art AI models from OpenAI, Anthropic, Google, Meta, DeepSeek, Mistral, Stability AI, and 40+ other providers through a single OpenAI-compatible API. Supported modalities include text/chat LLMs, image generation, video generation, music generation, speech-to-text, text-to-speech, vision/OCR, embeddings, and 3D generation.

1 APIs 10 Features
Artificial IntelligenceMachine LearningAI ModelsLLMImage GenerationVideo GenerationSpeechEmbeddingsAPI GatewayDeveloper Tools

APIs

AIMLAPI

Access 400+ AI models from 40+ providers via a single OpenAI-compatible REST API. Supports chat completions, image generation, video generation, speech models, embeddings, music...

Collections

GraphQL

AIMLAPI GraphQL API

AIMLAPI is an AI model aggregation API providing access to 200+ AI models including GPT-4, Claude, Llama, Stable Diffusion, Midjourney, and more through a single OpenAI-compatib...

GRAPHQL

Pricing Plans

Aimlapi Plans Pricing

3 plans

PLANS

Rate Limits

Aimlapi Rate Limits

5 limits

RATE LIMITS

FinOps

Features

400+ AI Models

Access to 400+ models from OpenAI, Anthropic, Google, Meta, DeepSeek, Mistral, Stability AI, and 40+ providers.

OpenAI-Compatible API

Drop-in replacement for OpenAI API — use existing OpenAI client libraries with AIMLAPI endpoint.

Text and Chat Completions

Chat completions, completion, function calling, streaming, reasoning, and code generation.

Image Generation

Generate images via DALL-E, Flux, Stable Diffusion, and other image generation models.

Video Generation

Generate video via Sora 2, Runway, and other video generation models.

Speech Models

Text-to-speech and speech-to-text transcription via Whisper and other speech models.

Music Generation

AI music generation via dedicated music models.

Vision and OCR

Image understanding, visual question answering, and OCR via vision-capable LLMs.

Embeddings

Generate vector embeddings for semantic search and RAG applications.

Playground

Online playground for experimenting with all available models without writing code.

Use Cases

AI Chatbot Development

Build conversational AI chatbots and virtual assistants using leading LLMs.

Content Generation

Automate text, image, video, and music content generation for media and marketing.

RAG Applications

Build retrieval-augmented generation applications using embeddings and LLMs.

Code Generation

Integrate AI code generation and review capabilities into developer tools.

Document Processing

Extract information and summarize documents using vision and LLM models.

Voice Applications

Add speech-to-text transcription and text-to-speech synthesis to applications.

Integrations

OpenAI SDK

Use the official OpenAI Python and Node.js SDKs with AIMLAPI base URL.

LangChain

Integrate AIMLAPI models with LangChain for agentic AI workflows.

LlamaIndex

Use AIMLAPI with LlamaIndex for RAG and document intelligence pipelines.

Vercel AI SDK

Build AI-powered web apps using Vercel AI SDK with AIMLAPI as backend.

Python

Native Python integration via requests library or OpenAI client.

Node.js

Node.js integration via OpenAI npm package pointed at AIMLAPI endpoint.

Semantic Vocabularies

Aimlapi Context

5 classes · 10 properties

JSON-LD

API Governance Rules

AIMLAPI API Rules

15 rules · 6 errors 8 warnings 1 info

SPECTRAL

JSON Structure

Aimlapi Api Key Structure

5 properties

JSON STRUCTURE

Aimlapi Chat Completion Request Structure

8 properties

JSON STRUCTURE

Aimlapi Chat Completion Response Structure

6 properties

JSON STRUCTURE

Aimlapi Embedding Request Structure

4 properties

JSON STRUCTURE

Aimlapi Image Generation Request Structure

6 properties

JSON STRUCTURE

Aimlapi Message Structure

3 properties

JSON STRUCTURE

Aimlapi Model Info Structure

4 properties

JSON STRUCTURE

Example Payloads

Aimlapi Api Key Example

5 fields

EXAMPLE

Aimlapi Message Example

3 fields

EXAMPLE

Aimlapi Model Info Example

4 fields

EXAMPLE

Resources

🔗
LinkedIn
LinkedIn
👥
GitHubOrganization
GitHubOrganization
📰
Blog
Blog
💰
Pricing
Pricing
🔗
Documentation
Documentation
💬
FAQ
FAQ
📄
ChangeLog
ChangeLog
📝
Signup
Signup
🔗
Affiliate
Affiliate
📜
PrivacyPolicy
PrivacyPolicy
📜
TermsOfService
TermsOfService
🔗
SpectralRules
SpectralRules
🔗
Vocabulary
Vocabulary
🔗
LlmsText
LlmsText

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: AIMLAPI AI/ML API Documentation
  version: 1.0.0
request:
  auth:
    type: bearer
    token: '{{bearerToken}}'
items:
- info:
    name: API Key Management
    type: folder
  items:
  - info:
      name: AIMLAPI Disable API Key
      type: http
    http:
      method: PUT
      url: http://{{baseurl}}/api-keys/:id/disable
      params:
      - name: id
        value: <number>
        type: path
        description: '(Required) '
    docs: AIMLAPI Disable API Key
  - info:
      name: AIMLAPI Enable API Key
      type: http
    http:
      method: PUT
      url: http://{{baseurl}}/api-keys/:id/enable
      params:
      - name: id
        value: <number>
        type: path
        description: '(Required) '
    docs: AIMLAPI Enable API Key
- info:
    name: Models
    type: folder
  items:
  - info:
      name: AIMLAPI List Models
      type: http
    http:
      method: GET
      url: http://{{baseurl}}/models
    docs: Lists the currently available engines, and provides basic information about each one such as the owner and availability.
- info:
    name: Threads > Runs
    type: folder
  items:
  - info:
      name: AIMLAPI Get Runs
      type: http
    http:
      method: GET
      url: http://{{baseurl}}/threads/:threadId/runs
      params:
      - name: threadId
        value: '500123'
        type: path
    docs: AIMLAPI Get Runs
  - info:
      name: AIMLAPI Create Run
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/threads/:threadId/runs
      params:
      - name: threadId
        value: '500123'
        type: path
      body:
        type: json
        data: '{}'
    docs: AIMLAPI Create Run
  - info:
      name: AIMLAPI Get Run
      type: http
    http:
      method: GET
      url: http://{{baseurl}}/threads/:threadId/runs/:runId
      params:
      - name: threadId
        value: '500123'
        type: path
      - name: runId
        value: '500123'
        type: path
    docs: AIMLAPI Get Run
  - info:
      name: AIMLAPI Update Run
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/threads/:threadId/runs/:runId
      params:
      - name: threadId
        value: '500123'
        type: path
      - name: runId
        value: '500123'
        type: path
      body:
        type: json
        data: '{}'
    docs: AIMLAPI Update Run
- info:
    name: Threads > Messages
    type: folder
  items:
  - info:
      name: AIMLAPI Get Messages
      type: http
    http:
      method: GET
      url: http://{{baseurl}}/threads/:threadId/messages
      params:
      - name: limit
        value: example_value
        type: query
      - name: order
        value: example_value
        type: query
      - name: before
        value: example_value
        type: query
      - name: after
        value: example_value
        type: query
      - name: threadId
        value: '500123'
        type: path
    docs: AIMLAPI Get Messages
  - info:
      name: AIMLAPI Create Message
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/threads/:threadId/messages
      params:
      - name: threadId
        value: '500123'
        type: path
      body:
        type: json
        data: '{}'
    docs: AIMLAPI Create Message
  - info:
      name: AIMLAPI Get Message
      type: http
    http:
      method: GET
      url: http://{{baseurl}}/threads/:threadId/messages/:messageId
      params:
      - name: threadId
        value: '500123'
        type: path
      - name: messageId
        value: '500123'
        type: path
    docs: AIMLAPI Get Message
  - info:
      name: AIMLAPI Update Message
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/threads/:threadId/messages/:messageId
      params:
      - name: threadId
        value: '500123'
        type: path
      - name: messageId
        value: '500123'
        type: path
      body:
        type: json
        data: '{}'
    docs: AIMLAPI Update Message
- info:
    name: Threads
    type: folder
  items:
  - info:
      name: AIMLAPI Create Thread
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/threads
      body:
        type: json
        data: '{}'
    docs: AIMLAPI Create Thread
- info:
    name: Assistants
    type: folder
  items:
  - info:
      name: AIMLAPI List Your Assistants
      type: http
    http:
      method: GET
      url: http://{{baseurl}}/assistants
    docs: AIMLAPI List Your Assistants
  - info:
      name: AIMLAPI Create Assistant
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/assistants
      body:
        type: json
        data: '{}'
    docs: AIMLAPI Create Assistant
  - info:
      name: AIMLAPI Get Assistant
      type: http
    http:
      method: GET
      url: http://{{baseurl}}/assistants/:assistantId
      params:
      - name: assistantId
        value: '500123'
        type: path
    docs: AIMLAPI Get Assistant
  - info:
      name: AIMLAPI Update Assistant
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/assistants/:assistantId
      params:
      - name: assistantId
        value: '500123'
        type: path
      body:
        type: json
        data: '{}'
    docs: AIMLAPI Update Assistant
- info:
    name: Chat
    type: folder
  items:
  - info:
      name: AIMLAPI Create Chat Message Completion
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/chat/completions
      headers:
      - name: Content-Type
        value: application/json
      - name: Accept
        value: application/json
      body:
        type: json
        data: '{}'
    docs: You can read about parameters here.
- info:
    name: Images
    type: folder
  items:
  - info:
      name: AIMLAPI Create Image
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/images/generations
      body:
        type: json
        data: '{}'
    docs: Creates an image given a prompt.
- info:
    name: '[WIP] Completions'
    type: folder
  items:
  - info:
      name: AIMLAPI Create Completion
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/completions
      body:
        type: json
        data: '{}'
    docs: Creates a completion for the provided prompt and parameters.
- info:
    name: Voice
    type: folder
  items:
  - info:
      name: AIMLAPI Speech to Text
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/stt
      body:
        type: json
        data: '{}'
    docs: AIMLAPI Speech to Text
  - info:
      name: AIMLAPI Text to Speech
      type: http
    http:
      method: POST
      url: http://{{baseurl}}/tts
      body:
        type: json
        data: '{}'
    docs: This request returns an audio file.
bundled: true