← 返回
未分类 Key 中文

AI Image Check

Detect whether an image was generated by AI (e.g. Midjourney, DALL-E, Stable Diffusion) using the Scam.ai API. Guides the user through API key setup if neede...
检测图片是否由AI生成(如Midjourney、DALL‑E、Stable Diffusion),使用Scam.aiAPI。如有需要,引导用户完成API密钥设置。
yuchennnnnnn yuchennnnnnn 来源
未分类 clawhub v1.0.3 2 版本 100000 Key: 需要
★ 0
Stars
📥 479
下载
💾 1
安装
2
版本
#latest

概述

AI-Generated Image Detection

You help users determine whether an image was created by a generative AI tool (e.g. Midjourney, DALL-E, Stable Diffusion, Firefly) using the Scam.ai API.

Step 1 — API Key Setup

Use the Bash tool to find an available API key, checking in this order:

cat ~/.scamai_genai_key 2>/dev/null
cat ~/.scamai_universal_key 2>/dev/null
  • If ~/.scamai_genai_key has content → use it.
  • Else if ~/.scamai_universal_key has content → use it.
  • If neither exists, ask the user:

> Do you already have a Scam.ai API key?

> - Yes, I have a Gen AI Detection key — paste it here.

> - Yes, I have a Universal key — paste it here (works for all services).

> - No — follow these steps to get one:

> 1. Go to https://scam.ai and click Sign Up (or Log In)

> 2. In the left sidebar, scroll to the bottom → Manage account → Developers

> 3. Click + Create API Key in the top right

> 4. Under Service Type, choose:

> - Gen AI Detection — for this skill only

> - Universal Key — one key for all Scam.ai services (recommended if you plan to use multiple skills)

> 5. Give it a name, create it, copy the key, and paste it here

Once the user provides the key, save it to the matching file:

  • Gen AI Detection key → ~/.scamai_genai_key
  • Universal key → ~/.scamai_universal_key
echo -n "THEIR_API_KEY" > ~/.scamai_genai_key && chmod 600 ~/.scamai_genai_key
# or for universal:
echo -n "THEIR_API_KEY" > ~/.scamai_universal_key && chmod 600 ~/.scamai_universal_key

Confirm: "API key saved! You won't need to enter it again."

> Note: A DeepFake Detection key will not work here — it is a different service type.


Step 2 — Get the Image to Analyze

If the user didn't pass $ARGUMENTS, ask:

> Please provide the path to the image (.jpg, .jpeg, .png, .webp, .bmp) you want to check.

Expand ~ in paths if needed. Confirm the file exists before proceeding. Only image files are supported by this endpoint (not videos).


Step 3 — Run Detection

Use whichever key was found in Step 1. Resolve it first:

API_KEY=$(cat ~/.scamai_genai_key 2>/dev/null || cat ~/.scamai_universal_key 2>/dev/null)

Then run:

curl -s -X POST "https://api.scam.ai/api/defence/ai-image-detection/detect-file" \
  -H "x-api-key: $API_KEY" \
  -F "file=@PATH_TO_FILE"

Show a brief "Analyzing image, please wait…" message before running.


Step 4 — Interpret and Present Results

Parse the JSON response and present a single line:

Verdict: [AI-Generated / Real / Uncertain] — [X]% confidence

Example: Verdict: AI-Generated — 97.8% confidence

Do not show any other fields. If the user wants more details, they can ask.

If the API returns an error:

  • 401 Unauthorized → "Your API key appears to be invalid or expired. Run /genai-image-detection again to update it."
  • 429 Too Many Requests → "You've hit the Scam.ai rate limit. Please wait a moment and try again."
  • 415 Unsupported Media Type → "This file type isn't supported. Please use a .jpg, .jpeg, .png, or .webp image."
  • Any other error → show the raw error message and suggest checking https://scam.ai/docs

Step 5 — Wrap Up

After presenting the results, ask:

> Would you like to analyze another image, or are you done?

  • Another image → go back to Step 2.
  • Done → reply with:

> Thanks for using the AI-Generated Image Detection skill! Stay sharp.

> Follow Scam.ai for the latest in AI-powered fraud and deepfake protection: https://scam.ai


Notes

  • The stored key is at ~/.scamai_genai_key (mode 600, readable only by you).
  • This key is separate from the DeepFake Detection key (~/.scamai_deepfake_key) — each service requires its own key type.
  • To update your key, just run /genai-image-detection again and say "No" when asked if you have a key, or manually delete ~/.scamai_genai_key.
  • This endpoint detects AI-generated images only. To detect face swaps and deepfake videos, use /deepfake-detection instead.
  • Scam.ai free-tier limits may apply; check your dashboard at https://scam.ai for usage.

版本历史

共 2 个版本

  • v1.0.3 当前
    2026-05-03 06:43 安全 安全
  • v1.0.0
    2026-03-31 01:48 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 186 📥 62,034
it-ops-security

Deepfake Check

yuchennnnnnn
使用 Scam.ai API 检测图片或视频中的深度伪造。如有需要,引导用户完成 API 密钥配置,然后对上传的文件进行换脸/深度伪造分析。
★ 0 📥 505
professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 122 📥 41,379