API

Simple REST API. One endpoint.

POST an image, get a confidence score. No SDK required. Base URL: https://api.airegco.com

Authentication

X-API-Key header.

All /v1/* endpoints require an API key. Create one in the Dashboard, then pass it as the X-API-Key request header. Keys start with airegco_.

Never expose your API key client-side

Call /v1/predict from your backend. If you need browser-side detection, use the /try endpoint (10 free checks, no key required) or proxy through your own server.

Endpoints

All available routes.

POST/checkCheck a receipt. Returns AI-forensics and OCR-consistency signals plus a combined verdict.
POST/tryPublic, no-auth check. IP rate-limited to 1 per 24h.
GET/meGet current user profile and credit balance.
GET/credits/balanceGet current credit balance in USD.
GET/usageGet last 100 usage log entries. Add ?group_by=api_key to aggregate by key.
POST/keysCreate a new API key. Returns the raw key (shown once).
GET/keysList all API keys (without the raw value).
DELETE/keys/{id}Revoke an API key by ID.
Code examples

Check a receipt.

curl -X POST https://api.airegco.com/check \
  -H "X-API-Key: airegco_your_key" \
  -H "Content-Type: application/json" \
  -d '{"image": "'"$(base64 -w0 receipt.jpg)"'"}'
{
  "receipt_id": "rcpt_a1b2c3d4",
  "external_id": null,
  "verdict": { "flagged": true, "reason": "ai_generated_probability", "confidence": 0.91 },
  "signals": {
    "image": { "ai_generated_probability": 0.91, "model_version": "efficientnet_b4_fft_receipts_v1" },
    "ocr": { "math_consistent": true, "fields": { "subtotal": 47.5, "tax": 3.8, "total": 51.3 }, "extraction_method": "regex" }
  },
  "metadata": { "processing_time_ms": 847 }
}
Pricing

Pay as you go.

Per receipt check$0.0015
Per 1,000 images$1.50
$5 → 3,334 detections
$25 → 16,667 detections
$100 → 66,667 detections

Credits never expire. No subscription. Contact us for volume pricing.