Introduction
Welcome to the AI/ML API!
| setting-up.md | supported-sdks.md | kit.png | Group 39481.png | |
| examples.md | parameters.md | Code.png | Group 39482.png | |
| models | chat.md | image.md | Link.png | Group 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_KEYcurl --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 }'