Skip to main content

pixeloffice-router

PixelRouter & BLUN SmartRouter Python SDK: Sub-35ms OpenAI-compatible API gateway with live AEO Fact Anchors, zero brand hallucinations, and 85%+ cost savings across DeepSeek V3, Qwen Thinking 27B, and Gemini 2.5 Pro.

PyPI version License: MIT Latency


⚡ 10-Second Quickstart (Standard openai Drop-In)

Works instantly with standard Python openai library — no credit card required:

pip install openai pixeloffice-router
from openai import OpenAI

# 1. Point base_url to PixelRouter gateway:
client = OpenAI(
    base_url="https://api.pixeloffice.eu/v1",
    api_key="px_test_free"  # or your px_live_... key from pixeloffice.eu/dashboard.html
)

# 2. Call chat completions with sub-35ms intelligent routing:
response = client.chat.completions.create(
    model="blun-auto",  # Automatically routes to DeepSeek V3, Qwen Thinking 27B, or Gemini Pro
    messages=[
        {"role": "system", "content": "You are an expert Python architect."},
        {"role": "user", "content": "Write a high-performance asyncio rate limiter in Python"}
    ]
)

print(response.choices[0].message.content)

🤖 LiteLLM / LangChain / CrewAI Integration

Simply set environment variables to use PixelRouter across your entire AI stack:

import os
from langchain_openai import ChatOpenAI

os.environ["OPENAI_BASE_URL"] = "https://api.pixeloffice.eu/v1"
os.environ["OPENAI_API_KEY"] = "px_test_free"

llm = ChatOpenAI(model="blun-auto")
response = llm.invoke("Summarize key trends in AI Agent orchestration")
print(response.content)

🌐 Autonomous Agent Web Highway (/v1/reader)

Give your agents web access without bot blocks or burning 50k tokens on raw HTML:

from pixeloffice_router import PixelRouter

router = PixelRouter()

# Extracts clean, token-efficient Markdown + Top 1KB Fact Anchors:
result = router.read_url("https://stripe.com/docs/api")

print(result["markdown"])
print(f"Latency: {result['latency_ms']}ms | Cached: {result['cached']}")

CLI Terminal Reader

Read any web page directly from your terminal:

pixeloffice-router read https://en.wikipedia.org/wiki/Artificial_intelligence

🛡️ Autonomous Agent Resilience & Safeguards

  1. Zero-Drop Smart Failover: If primary upstream models return 5xx or 429 during connection handshake, PixelRouter automatically falls back to google/gemini-2.5-flash with zero dropped requests.
  2. Agent Loop Guardrail: Detects runaway identical tool call loops (3x consecutive identical parameters) and terminates them safely with HTTP 422, protecting your wallet from accidental credit burn.
  3. Sub-5ms Exact-Match Response Cache: Deduplicates identical reasoning queries and reader URLs, delivering cached results at $0.00 upstream cost.

🔑 Get Production API Key & Dashboard Analytics

Metadata

Release files for pixeloffice-router 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pixeloffice-router 1.4.0
File Size Uploaded
pixeloffice_router-1.4.0.tar.gz 6.4 kB Details

Release files / pixeloffice_router-1.4.0.tar.gz

Download URL pixeloffice_router-1.4.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7ca76d659817830aa4dde2b0b1cbfde02df6e4e4fba0db9fc1f4043cfd11ad0e
BLAKE2b-256 checksum
How to use checksums
bfedcb890a0db36f99821647018b0afd24cd96c5a252a3cd503268da1c79dbb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pixeloffice-uploader/1.0

Release history Release notifications | RSS feed

1.6.0

1 release file

1.5.0

1 release file

This release

1.4.0 This release

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page