NEW标准的 createTask 和 in.php API。更换地址即可连接。查看 API 文档
GATESOLVER
开始使用

最简单的 AWS WAF Image Classification 验证码识别 API

GateSolver 用 AI 自动识别 AWS WAF Image Classification 验证码。1,000 次 $0.42,通常 1 秒 内出结果,只为成功的任务付费。

什么是 AWS WAF Image Classification 验证码?

AWS WAF 图片分类用于回答 AWS WAF 验证码中的图片题(选出相同物品、核对数量等)。

选择返回的 objects 编号对应的图片,或输入返回的值。

AWS WAF Image Classification

< 1s · $0.42 / 1k

为什么用 GateSolver 识别 AWS WAF Image Classification

价格与速度

任务 type速度价格
AwsWafClassification< 1s$0.42 / 1k

AWS WAF Image Classification 识别方法:API 指南

只需两次请求:用 createTask 创建任务,用 getTaskResult 获取答案。

第 1 步:创建任务

POST https://gatesolver.com/createTask

字段必填说明
type是AwsWafClassification
images是题目图片的 base64 数组
question是题目文本(例如 aws:grid:bed)

请求

{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AwsWafClassification",
    "images": [
      "/9j/4AAQSkZJRgABAQ..."
    ],
    "question": "aws:grid:bed"
  }
}

响应

{
  "errorId": 0,
  "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

第 2 步:获取结果

POST https://gatesolver.com/getTaskResult

用 taskId 每 1 秒查询一次结果。status 为 processing 时继续等待,变为 ready 后使用 solution。

请求

{
  "clientKey": "YOUR_API_KEY",
  "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

响应

{
  "errorId": 0,
  "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006",
  "status": "ready",
  "solution": {
    "objects": [
      1,
      4
    ]
  }
}

选择返回的 objects 编号对应的图片,或输入返回的值。

代码示例

import requests, time

API = "https://gatesolver.com"
KEY = "YOUR_API_KEY"
task = {
    "type": "AwsWafClassification",
    "images": [
        "/9j/4AAQSkZJRgABAQ..."
    ],
    "question": "aws:grid:bed"
}

r = requests.post(f"{API}/createTask", json={"clientKey": KEY, "task": task}).json()
task_id = r["taskId"]
while True:
    time.sleep(1)
    res = requests.post(f"{API}/getTaskResult", json={"clientKey": KEY, "taskId": task_id}).json()
    if res.get("status") == "ready":
        print(res["solution"])
        break
    if res.get("errorId"):
        raise RuntimeError(res["errorCode"])

AWS WAF Image Classification 常见问题

AWS WAF Image Classification 1,000 次多少钱?

AWS WAF Image Classification 价格:1,000 次 $0.42。每 1 次任务从余额扣除,只为出结果的任务付费。

AWS WAF Image Classification 多快能出结果?

通常 1 秒 内出结果。每隔几秒调用 getTaskResult,status 变为 ready 后即可使用答案。

AWS WAF Image Classification 任务使用哪个 type?

默认 type:AwsWafClassification。其他名称(如使用代理的版本)也按相同价格接收。

失败会扣费吗?

不会。未识别成功或超时的任务不收费。

支持的其他验证码