pixeloffice's picture
Deploy PixelRouter v1.4.0: Claude Messages API, /v1/reader, LiteLLM config
5051a3e verified
Raw History Blame Contribute Delete
3.8 kB
{
"openapi": "3.1.0",
"info": {
"title": "PixelRouter Universal OpenAI & Claude Gateway",
"version": "1.4.0",
"description": "Sub-35ms OpenAI & Anthropic Claude compatible API gateway, exact-match prompt cache, and Agent Web Highway by Pixel Office EU."
},
"servers": [
{
"url": "https://api.pixeloffice.eu/v1"
}
],
"paths": {
"/chat/completions": {
"post": {
"summary": "Create chat completion (OpenAI format, SSE streaming supported)",
"operationId": "createChatCompletion",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"model": {
"type": "string",
"default": "blun-auto"
},
"messages": {
"type": "array",
"items": {
"type": "object"
}
},
"stream": {
"type": "boolean",
"default": false
}
},
"required": [
"messages"
]
}
}
}
},
"responses": {
"200": {
"description": "Chat completion or SSE stream"
}
}
}
},
"/messages": {
"post": {
"summary": "Create Anthropic Claude message (Native Anthropic format)",
"operationId": "createClaudeMessage",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"model": {
"type": "string",
"default": "claude-3-haiku-20240307"
},
"max_tokens": {
"type": "integer",
"default": 1024
},
"messages": {
"type": "array",
"items": {
"type": "object"
}
},
"stream": {
"type": "boolean",
"default": false
}
},
"required": [
"max_tokens",
"messages"
]
}
}
}
},
"responses": {
"200": {
"description": "Anthropic Claude message or SSE stream"
}
}
}
},
"/reader": {
"post": {
"summary": "Agent Web Highway - High speed DOM cleansing to token-saving Markdown",
"operationId": "readWebPage",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Target web URL to clean"
}
},
"required": [
"url"
]
}
}
}
},
"responses": {
"200": {
"description": "Cleaned Markdown with Top 1KB Fact Anchors"
}
}
}
},
"/models": {
"get": {
"summary": "List available models and live wholesale pricing tiers",
"responses": {
"200": {
"description": "List of available models"
}
}
}
}
}
}