API Documentation
Integrate FRAUDGPT directly into your tools, bots, and workflows. RESTful. Stateless. Anonymous.
Authentication
All requests require an X-API-Key header. Obtain your key from the Dashboard after registration.
X-API-Key: your_api_key_here
Never expose your API key in client-side JavaScript. Use a backend proxy.
Endpoints
GET
/chat_stream.php?mode=ask&prompt=TEXT&model=MODEL
SSE streaming chat. Returns word-by-word token stream. Use EventSource client.
POST
/chat_api.php
JSON API for single-turn completion. Returns full response in one request.
GET
/api.php?action=balance
Check remaining token balance for authenticated user.
Code Examples
cURL (SSE Streaming)
curl -N -H "X-API-Key: YOUR_KEY" \
"https://fraudgpt.gl/chat_stream.php?mode=ask&prompt=Hello&model=default"
Python (Single-turn)
import requests
url = "https://fraudgpt.gl/chat_api.php"
headers = {
"X-API-Key": "YOUR_KEY",
"Content-Type": "application/json"
}
payload = {
"mode": "ask",
"prompt": "Analyze this target",
"model": "hermes-405b"
}
resp = requests.post(url, json=payload, headers=headers)
print(resp.json()["reply"])
JavaScript (EventSource)
const source = new EventSource(
"https://fraudgpt.gl/chat_stream.php?mode=ask&prompt=Hello&model=default&api_key=YOUR_KEY"
);
source.onmessage = (e) => {
const data = JSON.parse(e.data);
if (data.token) process.stdout.write(data.token);
};
Response Format
{
"reply": "Here is the analysis you requested...",
"tokens_used": 336,
"balance": 14856,
"model": "venice-uncensored"
}
Rate Limits
| Tier | Requests / Minute | Requests / Hour | Max Tokens / Request |
| Initiate | 30 | 500 | 2,048 |
| Operator | 120 | 5,000 | 4,096 |
| Ghost | 500 | 25,000 | 8,192 |
| WhALES | Unlimited | Unlimited | 32,768 |
Exceeding limits returns HTTP 429 with a Retry-After header. Upgrade your tier to increase quotas.