Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Welcome to the AI/ML API!

setting-up.mdsupported-sdks.mdkit.pngGroup 39481.png
examples.mdparameters.mdCode.pngGroup 39482.png
modelschat.mdimage.mdLink.pngGroup 39483.png

Overview of the API

AI/ML API provides a suite of powerful AI functionalities, including text completion, image inference, speech to text, and text to speech. Our API ensures effortless integration, robust performance, and secure API key management.

Key Features

  • Inference: Easily evaluate models for text, images, and more.
  • API Key Management: Securely manage your API keys.
  • Broad Model Selection: Access a diverse range of models for various AI tasks.

Getting Started

To start using the AI/ML API, follow the Quickstart guide to set up your environment and make your first API call.

Authentication

API Key Management

To use the AI/ML API, you need an API key. Generate and manage your API keys from your account dashboard.

Sending your first request

Include your API key in the Authorization header as a Bearer token:

Authorization: Bearer YOUR_API_KEY
curl --request POST \
  --url https://api.aimlapi.com/chat/completions \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'content-type: application/json' \
  --data '{
    "model": "gpt-4o",
    "messages": [
        {
            "role": "user",
            "content": "What kind of model are you?"
        }
    ],
    "max_tokens": 512,
    "stream": false
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors