The PixelRAG search server exposes a FastAPI HTTP API for visual document retrieval. It is served byDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/StarTrail-org/PixelRAG/llms.txt
Use this file to discover all available pages before exploring further.
pixelrag serve and available publicly at api.pixelrag.ai with no authentication required. You can search a pre-built index of 8.28 million Wikipedia pages immediately — no setup needed — or point the same client code at a self-hosted instance once you have built your own index.
Base URLs
| Environment | Base URL | Notes |
|---|---|---|
| Hosted (no auth) | https://api.pixelrag.ai | Pre-built Wikipedia index, always live |
| Self-hosted | http://localhost:30001 | Default port; change with --port |
Authentication
The hostedapi.pixelrag.ai endpoint requires no API key. All requests are accepted without any Authorization header.
For self-hosted deployments, PixelRAG has no built-in authentication mechanism. The server binds to 0.0.0.0 by default. If you need to restrict access, place an nginx reverse proxy or similar in front of the server and handle authentication there.
The hosted endpoint has CORS fully open (
allow_origins: ["*"]), so it can be called directly from browser JavaScript.Endpoints Summary
| Method | Path | Description |
|---|---|---|
POST | /search | Batch search with text, image, or embedding queries |
GET | /status | Index statistics and server info |
GET | /health | Liveness probe |
GET | /departments | Available department filters |
GET | /tile/{article_id}/{tile_index}/{chunk_index} | Serve tile image by ID |
GET | /tile?path=... | Serve tile image by path (legacy) |
POST | /reconstruct | Reconstruct stored embeddings by vector_id |
Request Tracing
Pass anX-Request-ID header to correlate your client logs with server-side log entries. The value must be 64 characters or fewer and contain only alphanumeric characters, hyphens (-), or underscores (_). Values that fail this check are silently replaced by a server-generated 16-hex-character ID.
Every response includes X-Request-ID regardless of whether the client supplied one.
Content Types
| Situation | Content-Type |
|---|---|
All request bodies (/search, /reconstruct) | application/json |
| All JSON response bodies | application/json |
Tile image responses (/tile/...) | image/jpeg or image/png depending on the stored file |