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
Method | Endpoint | Description | Category |
---|---|---|---|
POST | /v1/chat/completions | Create a chat completion | Chat |
POST | /v1/completions | Create a text completion | Completions |
GET | /v1/models | List available models | Models |
GET | /v1/models/{model} | Retrieve model details | Models |
POST | /v1/embeddings | Create embeddings | Embeddings |
GET | /v1/usage | Get usage statistics | Account |
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