VoidAI offers daily rotating discounts on select models. Discounts typically rotate at 6 PM CET.
Response
array
Array of active discount objects.
integer
Unix timestamp of the next discount rotation.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get your active discounts and time remaining
GET /v1/discounts/my-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")
const response = await fetch('https://api.voidai.app/v1/discounts/my-discounts', {
headers: {
'Authorization': 'Bearer sk-voidai-your_key_here'
}
});
const data = await response.json();
if (data.discounts.length > 0) {
console.log('Your active discounts:');
for (const discount of data.discounts) {
console.log(` ${discount.model}: ${discount.percentage}% off`);
console.log(` Time remaining: ${discount.time_remaining}`);
}
} else {
console.log('No active discounts');
}
curl https://api.voidai.app/v1/discounts/my-discounts \
-H "Authorization: Bearer sk-voidai-your_key_here"
{
"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
}
{
"discounts": [],
"next_rotation": 1701716400
}
