Balance
curl --request GET \
--url https://www.stealthgpt.ai/api/stealthify/balance \
--header 'api-token: <api-token>'import requests
url = "https://www.stealthgpt.ai/api/stealthify/balance"
headers = {"api-token": "<api-token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-token': '<api-token>'}};
fetch('https://www.stealthgpt.ai/api/stealthify/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.stealthgpt.ai/api/stealthify/balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-token: <api-token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.stealthgpt.ai/api/stealthify/balance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-token", "<api-token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.stealthgpt.ai/api/stealthify/balance")
.header("api-token", "<api-token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.stealthgpt.ai/api/stealthify/balance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-token"] = '<api-token>'
response = http.request(request)
puts response.read_body{
"credits": 123,
"payg": {},
"payg.mode": "<string>",
"payg.unbilledCredits": 123,
"payg.lastUsageReportAt": {}
}Endpoints
Balance
Check your account balance with the /api/stealthify/balance endpoint
GET
/
api
/
stealthify
/
balance
Balance
curl --request GET \
--url https://www.stealthgpt.ai/api/stealthify/balance \
--header 'api-token: <api-token>'import requests
url = "https://www.stealthgpt.ai/api/stealthify/balance"
headers = {"api-token": "<api-token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-token': '<api-token>'}};
fetch('https://www.stealthgpt.ai/api/stealthify/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.stealthgpt.ai/api/stealthify/balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-token: <api-token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.stealthgpt.ai/api/stealthify/balance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-token", "<api-token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.stealthgpt.ai/api/stealthify/balance")
.header("api-token", "<api-token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.stealthgpt.ai/api/stealthify/balance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-token"] = '<api-token>'
response = http.request(request)
puts response.read_body{
"credits": 123,
"payg": {},
"payg.mode": "<string>",
"payg.unbilledCredits": 123,
"payg.lastUsageReportAt": {}
}The
/api/stealthify/balance endpoint allows you to check your current account balance and available words without making any content generation requests.
Request Parameters
string
required
Your unique API authentication token. You can find this in your StealthGPT dashboard under the API Key tab.
Response
number
Number of words available in your account
object | null
Pay-as-you-go (metered) billing status and any usage pending billing. When
null, the account is not enrolled in metered billing.string
Current pay-as-you-go billing mode. One of
metered_active, metered_past_due, or metered_setup_required.number
Words accumulated for metered billing that have not yet been reported/flushed.
string (ISO 8601 date-time) | null
Last time metered usage was reported/flushed (ISO 8601 date-time string).
Example Request
curl --location 'https://www.stealthgpt.ai/api/stealthify/balance' \
--header 'api-token: YOUR_API_TOKEN'
import requests
response = requests.get(
'https://www.stealthgpt.ai/api/stealthify/balance',
headers={
'api-token': 'YOUR_API_TOKEN'
}
)
print(response.json())
const axios = require('axios');
axios.get('https://www.stealthgpt.ai/api/stealthify/balance', {
headers: {
'api-token': 'YOUR_API_TOKEN'
}
}).then(response => {
console.log(response.data);
});
Example Response
{
"credits": 985000,
"payg": {
"mode": "metered_active",
"unbilledCredits": 12450,
"lastUsageReportAt": "2026-02-13T10:15:30.000Z"
}
}
Usage Notes
- This endpoint is lightweight and can be called frequently to track your balance
- No words are consumed when checking your balance
- Use this endpoint to implement balance tracking in your applications or to check before making requests