Skip to main content
ARouter supports optional HTTP headers that identify your application in API requests. These headers are used for source tracking inside ARouter Dashboard analytics and activity views, helping you understand which apps or workflows are driving your API usage.

Headers

HTTP-Referer

Your application’s URL. Used to identify the source of the request.
HTTP-Referer: https://myapp.com

X-Title

Your application’s display name. Shows up in your Dashboard activity view.
X-Title: My AI App

Implementation

Include these headers in any request to the ARouter API:
from openai import OpenAI

client = OpenAI(
    base_url="https://api.arouter.ai/v1",
    api_key="lr_live_xxxx",
    default_headers={
        "HTTP-Referer": "https://myapp.com",
        "X-Title": "My AI App",
    },
)

response = client.chat.completions.create(
    model="openai/gpt-5.4",
    messages=[{"role": "user", "content": "Hello!"}],
)

Dashboard Activity

When you include these headers, your Dashboard activity view displays:
  • Referer: The source URL or app name associated with each request
  • Title: Your app’s display name for easy identification
This is especially useful when managing multiple applications or workflows under a single ARouter account. These headers are only used for ARouter-side analytics and attribution. They do not change model behavior or routing.