
Triangle LLM API
Integrate state-of-the-art AI capabilities into your applications with our powerful and flexible API. Enterprise-grade performance with UK data sovereignty.
API Explorer
Test API endpoints and see responses in real-time

Comprehensive Documentation
Everything you need to integrate Triangle LLM into your applications
API Documentation
Search through our extensive API docs
API Reference
Complete API docs
Code Examples
Ready-to-use snippets
Guides
Step-by-step tutorials
SDKs
Client libraries
Popular Documentation
Getting Started Guide
Learn how to set up your first Triangle LLM integration
Text Completions API
Complete reference for the text completions endpoint
Chat Completions Example
Build a chatbot using the chat completions API
Authentication Tutorial
Step-by-step guide to API key authentication
Embeddings API Reference
Generate text embeddings for semantic search
Rate Limiting Guide
Understanding and handling API rate limits
Fine-tuning Tutorial
Create custom models with fine-tuning
Error Handling Examples
Best practices for handling API errors
Quick-Start Examples
Get going with Triangle LLM in your favourite 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);