BazaarLinkBazaarLink
Sign in
DocsAPI ReferenceSDK ReferenceAgentic UsageAI Skills
Contents

App Attribution

App Attribution

Identify your application in request headers to enable usage tracking, dashboard visibility, and fine-grained analytics.

Note
These headers are entirely optional and do not affect API functionality. However, setting them is recommended for debugging and usage attribution.

Available Headers

HeaderDescription
HTTP-RefererYour site URL, for usage tracking and analytics (optional)
X-TitleYour app name, shown in dashboards (optional)
from openai import OpenAI

client = OpenAI(
  base_url="https://api.bazaarlink.ai/v1",
  api_key="sk-bl-YOUR_KEY",
  default_headers={
      "HTTP-Referer": "https://yourapp.com",  # Optional: your site URL
      "X-Title": "My Application",             # Optional: your app name
  },
)

response = client.chat.completions.create(
  model="openai/gpt-4o",
  messages=[{"role": "user", "content": "Hello!"}],
)
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
App Attribution | BazaarLink