API Documentation

Integrate the Pnyx LLM network into your applications

Quick Start

1. Create an Account

Sign up for an account with your email.

2. Get your API key

Generate your private API key from the dashboard.

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

API Features

Global Network

Access multiple LLMs through a single unified API endpoint

Live Metrics

Track your usage and billing

Smart Routing

Automatically route requests to the best model for your task

Rate Limits

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

10

Requests per Minute

N/A

Tokens Limit

50

Requests per Day