API Documentation

Integrate the Pnyx LLM network into your applications

Quick Start

1. Get your API key

Sign up for an account and generate your API key from the dashboard

2. Install SDK

Use our official SDKs or make direct HTTP requests to our API

3. Make your first call

Start with a simple chat completion request to test your integration

Example Request

curl https://api.pnyx.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    "temperature": 0.7
  }'

Available Endpoints

MethodEndpointDescriptionCategory
POST/v1/chat/completionsCreate a chat completionChat
POST/v1/completionsCreate a text completionCompletions
GET/v1/modelsList available modelsModels
GET/v1/models/{model}Retrieve model detailsModels
POST/v1/embeddingsCreate embeddingsEmbeddings
GET/v1/usageGet usage statisticsAccount

API Features

Global Network

Access multiple LLMs through a single unified API endpoint

Secure & Compliant

SOC 2 Type II certified with end-to-end encryption

Smart Routing

Automatically route requests to the best model for your task

99.9% Uptime

Reliable infrastructure with automatic failover

Rate Limits

Rate limits vary by subscription tier. Default limits for free tier:

60

Requests per minute

40,000

Tokens per minute

200

Requests per day

Official SDKs