Agent quickstart

Four endpoints, three of them free-tier, one payment flow. Everything here is copy-paste and returns JSON.
Design premise. An agent should be able to answer "does this artefact carry the disclosure fields it is supposed to carry?" without a browser, without an account, and without a human in the loop. So the free tier needs no key, and the paid path is a standard HTTP 402 handshake rather than a signup page.

Base URL and spec

Base:  https://wanhetools.top
Spec:  https://wanhetools.top/openapi.json   (OpenAPI 3.1)
Health: GET https://wanhetools.top/api/v1/health

1. Check a piece of text free

Scans for AI-labelling gaps and Chinese advertising-law issues. Deterministic rule engine: same input, same output.

curl -s -X POST https://wanhetools.top/api/v1/check \
  -H "Content-Type: application/json" \
  -d '{"text":"本图由AI生成,效果全网最好","locale":"zh"}'

Response shape (trimmed):

{
  "ok": true,
  "verdict": "共 1 条(高风险 1 · 待确认 0 · 提示 0)",
  "counts": { "risk": 1, "warn": 0, "info": 0, "total": 1 },
  "checks_run": {
    "ai_label": { "name": "AI生成合成内容标识", "issues": 0 },
    "ad_law":   { "name": "广告法",              "issues": 1 }
  }
}

Note the split: ai_label issues and ad_law issues are reported separately. They have different legal bases and different fixes — collapsing them into one "compliance score" destroys the only part a user can act on.

2. Audit an image for provenance signals free

curl -s -X POST https://wanhetools.top/api/v1/audit-image \
  -H "Content-Type: application/json" \
  -d '{"file_base64":"'"$(base64 -w0 output.jpg)"'","filename":"output.jpg"}'

Looks across C2PA/JUMBF, XMP, EXIF and IPTC, and reports which containers were detected — see the provenance field guide for why that matters.

3. Verify the six California fields free

California SB 1000 (Chapter 861, Statutes of 2026, effective 2026-09-30) requires a latent disclosure covering six named fields in generated image, video and audio content (Bus. & Prof. Code § 22757.3(a)(1)). This endpoint reports each one.

curl -s -X POST https://wanhetools.top/api/v1/verify-sb1000 \
  -H "Content-Type: application/json" \
  -d '{"file_base64":"'"$(base64 -w0 output.jpg)"'","filename":"output.jpg"}'
{
  "level": "partial",
  "fields": [
    { "key": "provider_name",       "status": "present" },
    { "key": "system_name_version", "status": "present" },
    { "key": "time_date",           "status": "present" },
    { "key": "unique_id",           "status": "absent"  },
    { "key": "created_or_altered",  "status": "absent"  },
    { "key": "assistive_tech",      "status": "not_yet_required" }
  ]
}

Two things about this shape are deliberate:

4. Produce an evidence report free

For when the output has to be filed rather than read. Returns a report carrying its own SHA-256, the tool version, the timestamp, and a per-file content digest — without storing the content.

curl -s -X POST https://wanhetools.top/api/v1/evidence-report \
  -H "Content-Type: application/json" \
  -d '{"client":"Example Co","files":[
        {"file_base64":"'"$(base64 -w0 a.jpg)"'","filename":"a.jpg"},
        {"file_base64":"'"$(base64 -w0 b.png)"'","filename":"b.png"}]}'
{
  "ok": true,
  "report_sha256": "c75fd5b7…",
  "summary": { "files_checked": 2, "level_complete": 1,
               "level_partial": 0, "level_none": 1, "errors": 0 },
  "note": "Report stored server-side. Content is not retained; only SHA-256 digests are recorded."
}

Max 50 files per report, 6 MB each. File content is not retained — only digests — which keeps the service outside the scope of "collecting more personal information than necessary" that several of these statutes care about.

5. The paid path: HTTP 402

Per-call metered access uses the standard 402 handshake. There is no signup and no API key. Call the metered resource without credentials and you get a bill:

curl -i -X POST https://wanhetools.top/api/a2m/demo/a2m/resource \
  -H "Content-Type: application/json" \
  -d '{"text":"待检内容","check":["ai_label","ad_law"]}'
HTTP/1.1 402 Payment Required
payment-needed: eyJwcm90b2NvbCI6IHsib3V0X3RyYWRlX25vIjogIk9SREVS… (base64)

{
  "code": "Payment-Needed",
  "message": "请先支付 (通道未开通,暂不可付) CNY 以访问资源",
  "out_trade_no": "ORDER_1791592566364_ec5c07db10ba",
  "amount": "(通道未开通,暂不可付)",
  "currency": "CNY",
  "goods_name": "AI 内容合规检查"
}

The payment-needed header decodes to the same manifest plus two fields worth knowing about:

After payment, retry the same request with the proof attached:

curl -s -X POST https://wanhetools.top/api/a2m/demo/a2m/resource \
  -H "Content-Type: application/json" \
  -H "Payment-Proof: <proof>" \
  -d '{"text":"待检内容","check":["ai_label","ad_law"]}'

A request without valid proof is rejected with a fresh 402 and is not charged — repeated unauthenticated calls generate new bills, they do not generate charges.

6. Installable agent Skills

If your client supports Skills, install one instead of writing HTTP calls:

7. Rate limits, privacy, limits of the service

Free tier60 requests / minute / IP, no key, no account
StatefulnessStateless. Content is not retained; evidence reports record SHA-256 digests only.
Evidence reportMax 50 files, 6 MB each, stored server-side as JSON + HTML
Not providedLegal advice. Certification. Truthfulness verification. Signature validation of C2PA manifests.
What this service will not do. It will not help remove, hide, tamper with or bypass a provenance mark. Those requests are refused, and the refusal is deliberate: the demand for removal tooling is real and large, and it is not a market worth serving.

8. Machine-readable status

If you are deciding whether to depend on this, read /status.json first. It reports daemon health, the audit-ledger entry count and hash-chain integrity, the coverage list, five known limitations, and an explicit list of what is not published. A status page that only reports good news is not a status page.

Wanhe AI Tools · Home · OpenAPI spec · SB 1000 field guide · Provenance fields · Partners · Privacy
Technical documentation. Not legal advice.

陕ICP备2026034641号-1 · 陕公网安备61072202000248号