/api/captcha_self/generate
Total calls: 1
Generate CAPTCHA
Generate one CAPTCHA and return its captcha_id, base64 image and validity period.
Optional: char = character image (digits + uppercase letters); arithmetic = addition / subtraction
Optional: only applies when kind=char; valid range 4-6 (default 4)
- Request method GET with parameters in the query string; public Endpoint, no project signature required.
- captcha_id must be sent back to verify together with the answer; image can be used directly as an <img src>.
- The response includes Cache-Control: no-store, so CAPTCHA images are not cached or reused by browsers or proxies.
- Each IP can generate at most 60 CAPTCHAs per minute; exceeding this returns 20040.
| Field | Type | Description |
|---|---|---|
| captcha_id | string | Captcha ID, pass it back when verifying |
| kind | string | Kind: char/arithmetic |
| image | string | base64 image (data URI) |
| expire_in | int | TTL (seconds) |
{"captcha_id": "9f1c1f14-6b0a-4a3e-9c31-2c9b6f0d1a55", "kind": "char", "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...", "expire_in": 300}