API Documentation
Triangle LLM API Docs
Comprehensive documentation for integrating Triangle LLM into your applications. Get started with our powerful AI models in minutes.
Quick Start
Get up and running with Triangle LLM in 3 simple steps
1
Get API Key
Sign up and get your API key from the dashboard
2
Install SDK
Install our SDK for your preferred language
3
Make Request
Start making API calls to generate content
Code Examples
Try these examples in your preferred programming language
import { TriangleLLM } from '@triangle-llm/sdk';
const triangle = new TriangleLLM({
apiKey: process.env.TRIANGLE_API_KEY
});
const response = await triangle.completions.create({
model: 'triangle-pro',
prompt: 'Explain quantum computing in simple terms',
max_tokens: 150,
temperature: 0.7,
});
console.log(response.choices[0].text);
API Endpoints
Available endpoints and their current status
POST
/v1/completions
Generate text completionsstable
POST
/v1/chat/completions
Create chat completionsstable
POST
/v1/embeddings
Create text embeddingsbeta
GET
/v1/models
List available modelsstable