Skip to content

Billing Transparency

Siraya AI uses a transparent billing system to ensure every call is precisely metered and billed. Pricing differs across models, and the same model may be priced differently across providers.

Model Prices

Model prices for each provider are listed on the model detail page.

Billing Items

You can enable usage accounting in your requests by including the usage parameter:

usage-accounting

import requests
import json

response = requests.post(
  url="https://llm.siraya.pro/v1/chat/completions",
  headers={
    "Authorization": "Bearer <API_Keys>",
    "Content-Type": "application/json"
  },
  data=json.dumps({
    "model": "z-ai/glm-5", 
    "messages": [
      {
        "role": "user",
        "content": "What is the meaning of life?"
      }
    ],
    "usage": {
      "include": True
    }
  })
)
print(response.json())
curl https://llm.siraya.pro/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API_Keys>" \
  -d '{
  "model": "gemini-3.1-pro-preview",
  "messages": [
    {
      "role": "user",
      "content": "What is the meaning of life?"
    }
  ],
  "usage": {
      "include": true
    }
}'

When usage accounting is enabled, the response will include

  • usage object with detailed token information
  • cost object with the total amount charged to your account.
  • cost_details object with the breakdown of the total cost.
{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "logprobs": null,
      "message": {
        "content": "The question \"What is the meaning of life?\" is perhaps the most famous question in human history. Because there is no single, universally agreed-upon answer, it is usually approached through several different lenses:\n\n**1. The Philosophical Perspective**\n*   **Existentialism:** Thinkers like Jean-Paul Sartre and Albert Camus argued that the universe has no inherent meaning. Therefore, we are free to—and indeed must—create our own meaning through our choices and actions.\n*   **Nihilism:** This philosophy suggests that life is without objective meaning, purpose, or intrinsic value. While this sounds bleak, \"optimistic nihilism\" suggests that because nothing matters on a cosmic scale, you are free to enjoy your life without the pressure of a grand destiny.\n*   **Aristotelianism:** Aristotle believed the goal of human life is *Eudaimonia*, often translated as \"happiness\" or \"flourishing,\" achieved through virtuous action and fulfilling your potential.\n\n**2. The Biological Perspective**\nFrom an evolutionary standpoint, the \"meaning\" of life is the continuation of life itself. This involves:\n*   **Survival:** Staying alive long enough to reproduce.\n*   **Reproduction:** Passing on genes to the next generation.\n*   **Adaptation:** Evolving to fit changing environments to ensure the survival of the species.\n\n**3. The Religious and Spiritual Perspective**\nFor many, meaning is derived from a higher power or cosmic order.\n*   **Theistic religions** often view life as a time to know, love, and serve a Creator, or to prepare for an afterlife.\n*   **Eastern philosophies** (like Buddhism and Hinduism) often focus on enlightenment, breaking the cycle of reincarnation, or realizing the oneness of all things.\n\n**4. The Personal Perspective**\nIn the modern world, many people find meaning in:\n*   **Connection:** Loving others and being part of a community.\n*   **Contribution:** Leaving the world better than you found it (work, art, volunteering).\n*   **Experience:** Enjoying the simple pleasures of existence.\n*   **Learning:** Pursuing knowledge and understanding.\n\n**A Synthesis**\nUltimately, the answer is likely subjective. If the universe does not provide a pre-written script for your life, **the meaning of life is whatever you determine it to be.** For many people, it is simply the pursuit of happiness and the creation of a life that feels worthwhile to them.",
        "reasoning_content": "The user is asking for the \"meaning of life,\" a profound philosophical question.\nThere is no single, universally agreed-upon answer.\nI should provide a comprehensive overview that covers different perspectives:\n1.  **Philosophical:** Nihilism, Existentialism, Hedonism, etc.\n2.  **Religious/Spiritual:** Serving a higher power, achieving enlightenment, karma.\n3.  **Scientific/Biological:** Evolution, survival, reproduction.\n4.  **Personal/Subjective:** Creating your own meaning, relationships, helping others.\n\nMy strategy will be to present these categories clearly, acknowledging the complexity of the question while offering structured insights. I will aim for a tone that is thoughtful and balanced.",
        "role": "assistant"
      }
    }
  ],
  "cost": 0.002279,
  "cost_details": {
    "audio_cost": 0,
    "byok_cost": 0,
    "completion_cost": 0.0022672236,
    "discount_rate": 1,
    "image_cost": 0,
    "is_byok": false,
    "native_web_search_cost": 0,
    "plugin_web_search_cost": 0,
    "prompt_cache_read_cost": 0,
    "prompt_cache_write_1_h": 0,
    "prompt_cache_write_5_min": 0,
    "prompt_cache_write_cost": 0,
    "prompt_cost": 0.00001128,
    "reasoning_cost": 0,
    "tools_cost": 0,
    "video_cost": 0
  },
  "created": 1772677252,
  "id": "1591353d3b71467b8af791877eb46d6b",
  "model": "z-ai/glm-5",
  "object": "chat.completion",
  "request_id": "33211b5509d44753888821b7ed0b0a33",
  "usage": {
    "completion_tokens": 659,
    "completion_tokens_details": {
      "reasoning_tokens": 148
    },
    "input_tokens": 0,
    "output_tokens": 0,
    "prompt_tokens": 12,
    "prompt_tokens_details": {},
    "server_tool_use": {
      "web_search_requests": ""
    },
    "total_tokens": 671,
    "ttft": 0
  }
}

usage

Item Description
total_tokens
prompt_tokens Total tokens of input prompts
completion_tokens Total tokens of model-generated output
prompt_tokens_cache_read
prompt_tokens_cache_write
reasoning_tokens Total tokens of reasoning prompts
native_web_search_requests
plugin_web_search_requests
input_images
input_videos
input_audios
output_images
output_videos
output_audio

cost_details

Item Description
prompt_cost Cost for processing input prompts
completion_cost Cost for model-generated output
image_cost Cost for image processing or generation
video_cost Cost for video processing or generation
audio_cost Cost for audio processing or generation
native_web_search_cost Cost for invoking native web search functionality
plugin_web_search_cost Cost for invoking plugin web search functionality
tools_cost Cost for invoking tool callings
prompt_cache_read_cost Cost for cache read operations
prompt_cache_write_cost Cost for cache write operations
prompt_cache_write_5_min Cost for 5-minute cache write operations
prompt_cache_write_1_h Cost for 1-hour cache write operations
reasoning_cost Cost for internal reasoning computations
discount_rate Effective discount rate
is_byok Whether is byok
byok_cost Cost for byok