Skip to main content
ARouter provides developers access to hundreds of models through a single API. If you operate an AI model or inference provider, integrating with ARouter lets you reach developers who are already building on the ARouter API — without requiring them to change their code.

Why Partner with ARouter

  • Instant developer reach — Developers using ARouter can access your models immediately without signing up for a separate account or SDK
  • Zero-friction switching — Developers can try your model by changing a single string (model: "yourprovider/your-model")
  • Traffic growth — Your models appear in the ARouter model catalog and are accessible via the unified /v1/models endpoint
  • Transparent pricing — You set your prices; ARouter reflects them accurately to end users

Integration Requirements

To integrate with ARouter, your API must provide:

1. OpenAI-Compatible Endpoints

ARouter routes requests using the OpenAI API format. Your endpoint should accept:
POST /v1/chat/completions
With standard OpenAI request/response format including streaming via Server-Sent Events (SSE).

2. Model IDs

Each model you expose should have a unique, stable model ID. ARouter uses the provider/model convention:
yourprovider/your-model-name

3. Usage Reporting

Your response must include the usage object with accurate token counts:
{
  "usage": {
    "prompt_tokens": 100,
    "completion_tokens": 50,
    "total_tokens": 150
  }
}

What ARouter Handles

Once integrated, ARouter handles the following transparently for your users:
ResponsibilityARouterYour API
API key managementRoutes requests with injected credentialsValidates credentials
Provider health monitoringCircuit breaker + key pool health checksResponds to requests
Rate limitingTracks per-key and per-user limitsEnforces your rate limits
Usage recordingRecords tokens and costReturns usage in response
StreamingPasses through SSE streamProduces SSE stream
Error normalizationStandardizes error codesReturns native errors

Model Metadata

ARouter exposes rich model metadata to developers via the /v1/models endpoint. For each model you provide, you can supply:
{
  "id": "yourprovider/your-model",
  "name": "Your Model Name",
  "description": "A brief description of capabilities.",
  "context_length": 128000,
  "architecture": {
    "input_modalities": ["text", "image"],
    "output_modalities": ["text"],
    "tokenizer": "cl100k_base",
    "instruct_type": "chatml"
  },
  "pricing": {
    "prompt": "0.000002",
    "completion": "0.000006"
  },
  "supported_parameters": ["tools", "temperature", "max_tokens", "structured_outputs"]
}

Supported Endpoint Types

Endpoint TypeDescription
OpenAI Chat CompletionsStandard chat with streaming
OpenAI EmbeddingsText embeddings via /v1/embeddings
Anthropic MessagesNative Anthropic message format
Gemini GenerateContentNative Gemini format
Custom endpointsVia the Provider Proxy (/{yourprovider}/{path})

Provider Proxy

Developers can also send requests directly to your API through ARouter’s provider proxy, bypassing the model-routing layer entirely:
POST /{yourprovider}/v1/chat/completions
This is useful for developers who want to use your native API format while still benefiting from ARouter’s key management and billing.

Getting Started

To integrate your models with ARouter:
  1. Contact us at providers@arouter.ai with your API documentation and model catalog
  2. Provide credentials — API keys or OAuth credentials for ARouter to use
  3. Review model metadata — Confirm model IDs, pricing, context lengths, and supported parameters
  4. Test integration — ARouter team validates routing and response format compatibility
  5. Go live — Your models appear in the ARouter catalog and are accessible immediately

Data Handling

ARouter respects your data policies:
  • Request/response data is not stored by default — see Data Collection
  • You can specify whether your endpoints support Zero Data Retention (ZDR)
  • Developers can opt into or out of data collection per request

Pricing and Revenue

ARouter reflects your pricing accurately to developers. You set the per-token prices; ARouter adds no markup for standard routing. Developers are billed by ARouter and you are compensated according to your agreed rate. Contact providers@arouter.ai for commercial terms.