API reference
Base URL, authentication and every endpoint.
Base URL
https://pinerouter.ai/v1The API follows OpenAI's format, so OpenAI's SDKs and most OpenAI-compatible tools work by changing the base URL. Anthropic's Messages format works too.
Authentication
Authorization: Bearer sk-...Create keys in the console under API keys. Every endpoint page has a playground: paste your key under Authorization and send a real request.
Endpoints
Chat completions
POST /v1/chat/completions
Responses
POST /v1/responses
Claude messages
POST /v1/messages
List models
GET /v1/models
Start a job
POST /v1/jobs
Get a job
GET /v1/jobs/{taskId}
Create image
POST /v1/images/generations
Edit image
POST /v1/images/edits
Create video
POST /v1/videos
Get video
GET /v1/videos/{id}
Limits, billing and error codes: Keys, billing and limits.
