Quick Start
AI.ML is a fast, developer-focused AI inference platform supporting state-of-the-art models for text, image, and video generation.
It uses an OpenAI-compatible API, making integration straightforward for teams already familiar with OpenAI SDKs.
Integration Basics
- Register and get your API key from the dashboard.
- Configure your code to point to the AI.ML API endpoint.
Sample Code
javascript
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'your-api-key',
baseURL: 'https://api.ai.ml/openai',
});
const response = await openai.chat.completions.create({
model: "llama-3.1-8b-instruct",
messages: [{role: "user", content: "Hello!"}]
});AI.ML supports both SDK and HTTP REST requests.
Last updated on