Skip to main content

Documentation Index

Fetch the complete documentation index at: https://sessiongenerator.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

import requests

BASE_URL = "https://api.session-generator.com/api/v1"
API_KEY = "API_KEY" #Specify the key from the dashboard

headers = {
    "SESSION-GEN-API-Key": API_KEY
}

def check_balance():
    print("--- Checking the balance ---")
    response = requests.get(f"{BASE_URL}/balance", headers=headers)
    print(f"Status: {response.status_code}")
    print(f"Response: {response.json()}\n")

if __name__ == "__main__":
    check_balance()