Alting developer overview
1
2
3
4
5
6
7
8
9
10
11
import OpenAI from 'openai';
const openai = new OpenAI({
baseURL: 'https://alting.ai/api/v1',
apiKey: $ALTING_API_KEY,
});
const completion = await openai.chat.completions.create({
model: 'openai/gpt-4o',
messages: [
{ role: 'user', content: 'Who is Genghis Khan?' },
],
});
Meet our models
GPT-4o
GPT-4o is a general purpose model that excels in a wide range of tasks.
Claude 3.5 Sonnet
Claude 3.5 Sonnet is a state-of-the-art language model that excels in coding tasks.
Gemini Experimental 1114
Gemini Experimental 1114 is currently the best performing models according to the latest benchmarks.
Explore our guides
Chat completions
Generate text using natural language
Image generation
Generate images using natural language
Text to speech
Generate speech from text
Function calling
Call custom functions and external tools
Structured output
Return structured data in JSON
Full API reference
View the full list of endpoints and parameters