Skip to main content
GET /v1/discounts/my-discounts
Returns information about your currently active discounts, including the discount percentage and time remaining until the discount expires or rotates.
VoidAI offers daily rotating discounts on select models. Discounts typically rotate at 6 PM CET.

Response

discounts
array
Array of active discount objects.
next_rotation
integer
Unix timestamp of the next discount rotation.

Examples

Check Your Discounts

import requests

response = requests.get(
    "https://api.voidai.app/v1/discounts/my-discounts",
    headers={"Authorization": "Bearer sk-voidai-your_key_here"}
)

data = response.json()

if data["discounts"]:
    print("Your active discounts:")
    for discount in data["discounts"]:
        print(f"  {discount['model']}: {discount['percentage']}% off")
        print(f"    Time remaining: {discount['time_remaining']}")
else:
    print("No active discounts")

Response Example

{
  "discounts": [
    {
      "model": "claude-3-5-sonnet",
      "percentage": 25,
      "expires_at": 1701716400,
      "time_remaining": "5h 23m"
    },
    {
      "model": "gpt-4o",
      "percentage": 15,
      "expires_at": 1701716400,
      "time_remaining": "5h 23m"
    }
  ],
  "next_rotation": 1701716400
}

No Active Discounts

{
  "discounts": [],
  "next_rotation": 1701716400
}
Plan your high-volume workloads around your discount schedule to maximize savings!