Triangle LLM Logo
Triangle LLM
Neural Network Visualization

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

Neural Network Visualization

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

Guide

Learn how to set up your first Triangle LLM integration

quickstart
setup
authentication

Text Completions API

Reference

Complete reference for the text completions endpoint

completions
api
reference

Chat Completions Example

Example

Build a chatbot using the chat completions API

chat
example
javascript

Authentication Tutorial

Tutorial

Step-by-step guide to API key authentication

auth
security
tutorial

Embeddings API Reference

Reference

Generate text embeddings for semantic search

embeddings
vectors
search

Rate Limiting Guide

Guide

Understanding and handling API rate limits

rate-limits
optimization
best-practices

Fine-tuning Tutorial

Tutorial

Create custom models with fine-tuning

fine-tuning
custom-models
training

Error Handling Examples

Example

Best practices for handling API errors

errors
debugging
best-practices

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);