# Quickstart

> Create an API key, send your first detection request with cURL, Node.js or Python, and read the verdict.

To get a first verdict, create an account, create an API key and send one `POST /v1/detect` request. New accounts get free image checks to start, once, with no card. See [Pricing and plans](https://ringingbytes.com/docs/pricing).

An AI agent can ask for its own key with a person's approval. See [Agents](https://ringingbytes.com/docs/agents).

1. Sign up in the dashboard, open **API keys** and choose **Create key**. Copy the key when the dashboard shows it: it starts with `rb_live_`, and you will not see it again.

2. Store the key in an environment variable to keep it out of your code:

   ```sh
   export RINGING_BYTES_API_KEY="rb_live_..."
   ```

3. Upload an image as `multipart/form-data`:

   **cURL**
   ```sh
   curl https://api.ringingbytes.com/v1/detect \
     -H "Authorization: Bearer $RINGING_BYTES_API_KEY" \
     -F file=@photo.jpg
   ```

   **Node.js**
   ```js
   // Node.js 20 or later
   import { openAsBlob } from "node:fs";

   const form = new FormData();
   form.set("file", await openAsBlob("photo.jpg"), "photo.jpg");

   const response = await fetch("https://api.ringingbytes.com/v1/detect", {
     method: "POST",
     headers: { Authorization: `Bearer ${process.env.RINGING_BYTES_API_KEY}` },
     body: form,
   });
   const detection = await response.json();
   console.log(detection.verdict, detection.confidence);
   ```

   **Python**
   ```python
   import os
   import requests

   with open("photo.jpg", "rb") as f:
       response = requests.post(
           "https://api.ringingbytes.com/v1/detect",
           headers={"Authorization": f"Bearer {os.environ['RINGING_BYTES_API_KEY']}"},
           files={"file": f},
       )
   detection = response.json()
   print(detection["verdict"], detection["confidence"])
   ```

4. The response contains the finished result:

   ```json
   {
     "id": "det_flqtet817hvwmqiaxlf1",
     "object": "detection",
     "type": "image",
     "status": "completed",
     "source": "api",
     "file_name": "photo.jpg",
     "verdict": "likely_ai",
     "score": 0.9712,
     "confidence": "high",
     "signals": [
       {
         "name": "generated_classifier",
         "model": "smaug",
         "score": 0.9712,
         "raw_score": 0.9712,
         "detail": "Smaug-AI-Image-Detector (Abacus.AI): how strongly the image looks fully AI-generated, from three crops (not trained to detect small local edits)."
       },
       {
         "name": "c2pa",
         "found": false,
         "ai_generated": null,
         "generator": null,
         "detail": "No Content Credentials found (this proves nothing)",
         "validation_state": null,
         "signer": null,
         "issuer": null,
         "digital_source_type": null,
         "ai_tool": null
       },
       {
         "name": "metadata",
         "has_exif": false,
         "camera": null,
         "software": null,
         "ai_hint": false,
         "detail": "No camera metadata (normal for screenshots, messaging/social apps and AI images). Weak signal: metadata is easily stripped or forged."
       }
     ],
     "detector": "tell-1",
     "model_versions": { "smaug": "c7c95951e04a87b884a4ad479401b1128c3903bd" },
     "credits": 4,
     "processing_ms": 1840,
     "error": null,
     "created_at": "2026-11-25T14:47:17.584Z",
     "completed_at": "2026-11-25T14:47:19.431Z"
   }
   ```

## What the fields mean

- `verdict` is the answer: `likely_ai`, `uncertain` or `likely_human` (shown as "No AI signs found").
- `confidence` (`low`, `medium`, `high`) says how strong the evidence is. Show it next to the verdict, for example "Likely AI · high confidence".
- `score` runs from 0 (human) to 1 (AI). Use it to sort or to set your own thresholds. It is not a calibrated probability, so do not show it on its own.
- `signals` lists each check that ran and what it found.
- `detector` names the [detector release](https://ringingbytes.com/docs/detector-releases) that produced the result.
- `credits` is the unit we meter usage in: 4 for an image check, 12 with the `localize` option. A failed check is 0 credits, and you are not charged for it.
- Nothing is kept once this response is delivered, so keep the result if you need it. See [Data retention](https://ringingbytes.com/docs/data-retention).

[Understanding results](https://ringingbytes.com/docs/results) explains each field in detail. [Detect images](https://ringingbytes.com/docs/detect/images) covers URLs and the heatmap.
