XRToken API Docs

List available models

API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai

Returns the list of models supported by the platform.

Authentication is optional, but the response is tiered based on whether a tr- API key is supplied:

  • Without a key (marketing view): only model metadata is returned — no price fields, and restricted channels (e.g. Bedrock / Azure Foundry / xAI Grok, which require account-level authorization) are filtered out.
  • With a valid key: the full list is returned (including input_per_1m / output_per_1m / price_per_unit), filtered to channels visible to the caller's account.

An invalid key does not return 401 — it silently falls back to the marketing view.

GET
/v1/models

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication (OpenAI format). Pass in the Authorization header:

Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Response Body

application/json

curl -X get "https://api.xrtoken.ai/v1/models"
{
  "object": "list",
  "data": [
    {
      "id": "openai/gpt-4o",
      "object": "model",
      "created": 1750000000,
      "owned_by": "xrtoken",
      "display_name": "GPT-4o",
      "type": "chat",
      "billing_type": "token",
      "currency": "CNY",
      "available": true,
      "input_per_1m": 5,
      "output_per_1m": 15,
      "output_per_1m_1080p": 30,
      "output_per_1m_with_video": 20,
      "output_per_1m_1080p_with_video": 40,
      "output_per_1m_4k": 60,
      "output_per_1m_4k_with_video": 80,
      "flex_price_factor": 0.5,
      "price_per_unit": 0.04
    }
  ]
}