Blog / AI Detection

Give your coding agent AI-image detection with one key

Connect withConflux to Claude Code or Cursor and your agent can check whether an image is AI-generated. Each call is priced before it runs and paid from prepaid credits.

AI DetectionwithConflux Team · Nov 21, 2026 · 4 min read

Your coding agent can read files, run tests and open pull requests. With one withConflux key it can also tell you whether an image looks AI-generated, without a vendor account, a monthly seat or a new SDK.

Key takeaways

  • One withConflux key gives Claude Code, Cursor or Windsurf the detect_image tool over MCP.
  • The same check is a plain REST call: POST /api/v1/tools/detect.image.
  • Each call is priced before it runs, charged from prepaid credits only when it succeeds, and test keys are never billed.

What the tool does

You send the public URL of an image. The tool returns a score from 0 to 100 for how likely it is that an AI generator made it, and a verdict: likely-ai from 70, likely-human up to 30, and uncertain in between. Sightengine runs the check behind the scenes. If you already have your own Sightengine key, connect it and calls go through it with no withConflux markup.

Connect it once

Create a key in your dashboard under Tools › Connect your agent. Keep it in an environment variable, not in the repository. Then add the MCP server. In Claude Code, run this in your terminal:

export WITHCONFLUX_KEY=cflx_test_...
claude mcp add --transport http withconflux https://withconflux.com/mcp \
  --header "Authorization: Bearer $WITHCONFLUX_KEY"

Cursor and Windsurf take a short JSON block instead. The MCP setup guide has all three, plus what to do when something does not connect.

Ask in plain words

Once connected, you don't call the tool by hand. Ask the agent:

Check whether the images in fixtures/uploads.json look AI-generated. Give me a table with the URL, the verdict and the score.

The agent calls detect_image once per URL. Each result comes back as JSON with a last line that tells you what the call cost:

{"url":"https://example.com/photo.jpg","verdict":"likely-human","score":12,"signals":[...]}
Cost: €0.0040 (1 per image) · provider Sightengine · 640 ms

The agent sees the price too. Before it calls anything, the tool list it gets from the server says what each tool costs per unit, so it can tell you up front what a batch will cost.

Or call it from your own code

The MCP tool and the REST endpoint run the same code. If the check belongs in your upload pipeline rather than in an agent session, call it directly:

curl https://withconflux.com/api/v1/tools/detect.image \
  -H "Authorization: Bearer $WITHCONFLUX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/photo.jpg"}'

The answer names the tool, the provider, the units, the cost and the result:

{
  "tool": "detect.image",
  "provider": "sightengine",
  "byok": false,
  "units": 1,
  "cost_eur": 0.004,
  "mode": "live",
  "result": { "url": "https://example.com/photo.jpg", "verdict": "likely-human", "score": 12, "signals": [...] }
}

Every response also carries x-cost-eur, x-provider and x-latency-ms headers, so you can log the cost of each call next to the result.

What it costs

At the time of writing the catalog price is €0.004 per image. The live price is always on the tool page and in the tool list your agent reads. Three rules apply to every call:

  • Priced first. The price is known before anything runs. If your credits can't cover it, or it would take the month past your spend cap, the call is refused and costs nothing.
  • Charged on success. If the image can't be downloaded or read, you are not charged.
  • Test keys are free. A test key (cflx_test_) is never billed. This check is cheap enough that a test key gets the real result.

Keep the key in bounds

Agents are good at doing a lot of something. Two settings keep that in check. First, give the key only the scopes it needs: a key with just the detect scope sees only the image check, and nothing else shows up in the agent's tool list. Second, set a monthly spend cap in your dashboard. A call that would pass it is refused before it reaches the provider.

!

A score is a likelihood, not proof. Use it to sort images for review, and send the uncertain ones to a person.

Where to see the calls

Tools › Tools & usage in your dashboard shows this week's live calls by tool and provider: how many, what they cost and how many succeeded. A filter splits API calls from agent (MCP) calls, so you can tell an agent session apart from your own code.


withConflux accounts are approved by our team, and trial credits come after approval. Request access, or read the MCP setup guide first.

Ready to try it?
One key, one bill, every content-AI vendor.
Read the docsSee the AI-image check
Keep reading
Keep reading
We use a single analytics cookie to understand traffic to this site. Nothing loads until you choose. See our Privacy Policy.