Developer Reference

Gateway Integration Guide

Integrate 1Rute into your existing applications in minutes using standard OpenAI SDKs, Anthropic SDKs, or raw HTTP endpoints.

Integration Architecture

1Rute acts as a transparent reverse proxy between your application code and upstream AI providers.

Base URL (OpenAI Compatible):
https://api.1rute.com/v1
Base URL (Anthropic Compatible):
https://api.1rute.com
Auth Header:
Authorization: Bearer sk-1rute-...
BASH
curl https://api.1rute.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1rute-your-key" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "user",
        "content": "Hello from 1rute Gateway!"
      }
    ]
  }'

Independent Verification

How to Verify Model Authenticity Yourself

Do not take our word for it. We encourage every developer to independently benchmark our gateway endpoints against official provider APIs.

TEST 01 / REASONING

Head-to-Head Reasoning & Output Fidelity

Send an identical complex reasoning or logic prompt (e.g. subtle code refactoring, tricky math, or system prompt constraints) to both 1Rute (api.1rute.com) and the official API using temperature: 0. Fake or distilled models will fail to maintain subtle constraints.

Test Baselinetemp: 0 • exact diff
TEST 02 / CAPABILITY

Multimodal Vision & Tool-Calling Invariants

Submit an image input or structured JSON function schema. Middlemen running unauthorized open-source clones or downgraded checkpoints will fail or return schema validation errors.

Payload Scopeimages • tools / json
TEST 03 / CONTEXT

Context Window Stress & Retrieval

Pass a high-token prompt with a needle-in-a-haystack query up to the model's active cap. Verify the model processes the context and retrieves the needle without silent truncation.

Evaluationneedle retrieval to cap

Privacy Guarantee

Stateless Ingress & Zero Payload Retention

1Rute operates as a stateless streaming reverse proxy. Prompt payloads and completion streams pass directly through temporary memory and are immediately discarded. We record only operational billing telemetry: token counts, timestamps, duration, and model IDs. Upstream processing is governed by respective provider policies.

Payload Persistence0 bytes persisted (ram only)

Throughput & Limits

Production Context Caps & Anti-Exhaustion

To protect shared throughput from noisy-neighbor token exhaustion attacks, high-capacity models enforce an active stability cap (e.g. ~700k tokens). Requests that exceed the active limit are rejected pre-flight with 400 context_length_exceeded before any tokens are debited.

Pre-flight Guard400 rejected • 0 tokens debited