Skip to content
CaptchaSonic

Geetest v4 Captcha Solver

Solve GeeTest v4 challenges using the GeetestImage task type. Set gtv: 4 and provide the v4 captchaId. The question field determines the challenge mode.

Supported Modes

ModequestionInputResponse
SlideslideBackground + slider (2 images)[x, y] coordinates
IconiconMain image + examplesClick coordinates
SVG Icongeetest_svgicon:<prompt>Main SVG + example imageObject index + geometry
Nine-Gridnine9 grid imagesMatching cell indices
Winlinzewinlinze25 grid imagesCell indices

Create Task — Slide

POST/createTask
Hostapi.captchasonic.com
Content-Typeapplication/json
{
    "apiKey": "YOUR_API_KEY",
    "task": {
        "type": "GeetestImage",
        "gtv": 4,
        "question": "slide",
        "queries": ["BASE64_BACKGROUND", "BASE64_SLIDER"],
        "captchaId": "e392e1d7fd421dc63325744d5a2b9c73"
    }
}

Response

{
    "code": 200,
    "msg": "",
    "answers": [142, 160]
}

Create Task — Icon Click

{
    "apiKey": "YOUR_API_KEY",
    "task": {
        "type": "GeetestImage",
        "gtv": 4,
        "question": "icon",
        "queries": ["BASE64_MAIN_IMAGE"],
        "examples": ["BASE64_TARGET_1", "BASE64_TARGET_2"],
        "captchaId": "e392e1d7fd421dc63325744d5a2b9c73"
    }
}

Create Task — SVG Icon

Use geetest_svgicon when GeeTest renders the challenge as SVG. Send the main SVG plus the example image and include the target count in the question text.

POST/createTask
Hostapi.captchasonic.com
Content-Typeapplication/json
{
    "apiKey": "YOUR_API_KEY",
    "task": {
        "type": "GeetestImage",
        "captchaId": "54088bb07d2df3c46b79f80300b0abbe",
        "queries": ["main-image-svg-base64"],
        "examples": ["example-png-base64"],
        "question": "geetest_svgicon:Select 1 images with",
        "websiteURL": "https://gt4.geetest.com/demov4/icon-popup-en.html"
    }
}

SVG Icon Response

{
    "code": 200,
    "msg": "",
    "answers": {
        "objects": [0],
        "cell": 0,
        "col": 0,
        "row": 0,
        "cols": 2,
        "rows": 2,
        "x": 0.242,
        "y": 0.24,
        "viewbox_x": 72.5,
        "viewbox_y": 62.5,
        "frame": 2,
        "loop_ms": 5864,
        "visible_from_ms": 2446,
        "visible_to_ms": 4193,
        "score": 0.592
    }
}

objects contains the matching object index. Geometry fields give the normalized position, SVG viewBox translation and grid dimensions; timing fields describe the animation frame in which the icon was visible.

Task Parameters

PropertyTypeRequiredDescription
typestring✅GeetestImage or GeetestClassification
gtvintegerNoGeeTest version — 4 for v4
questionstring✅slide, icon, nine, match, winlinze, or geetest_svgicon:<prompt>
queriesstring[]✅Base64-encoded images
examplesstring[]Icon / SVG IconTarget reference images
captchaIdstring✅GeeTest v4 captcha_id
websiteURLstring✅Page containing the GeeTest challenge
proxystringNoProxy URL if needed

API Playground

POST
Log in to auto-fill your API key
Payload
Response

Hit Send to see response

⌘ + Enter

Parameters

apiKeystringYOUR_API_KEY
taskobject{...}
└ typestringGeetestImage
└ gtvnumber4
└ questionstringslide
└ queriesarray[2 items]
└ captchaIdstringe392e1d7fd421dc63325744d5a2b9c…

Error Codes

1KEY_DOES_NOT_EXIST
2NO_SLOT_AVAILABLE
3ZERO_BALANCE
10ERROR_BAD_PARAMETERS
12ERROR_CAPTCHA_UNSOLVABLE
14PLAN_EXPIRED
16RATE_LIMITED
17DAILY_LIMIT_EXCEEDED
18QUOTA_LIMIT_EXCEEDED
21SERVICE_UNAVAILABLE
Code
terminal