$0.01
per call · USD Coin on Base
Academic letter grade with red-pen marginalia for anything. $0.01 USDC.
Endpoint
POST https://api.anchor-x402.com/v1/grade3
Calls / 30d
1
Unique payers / 30d
Sep 1
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://api.anchor-x402.com/v1/grade", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"target": "def add(a, b): return a - b # surely this is correct"
}),
});
const data = await res.json();curl -X POST \
"https://api.anchor-x402.com/v1/grade" \
-H "Content-Type: application/json" \
-d '{"target":"def add(a, b): return a - b # surely this is correct"}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"letter_grade": "D",
"marginalia": [
"Function name says 'add' but operator says 'subtract' — pick a side.",
"The comment is the funniest thing in this codebase.",
"Add a test and your subconscious will thank you."
],
"summary": "Strong vibes, weak math. See me after class."
}Payment details
0x127462e296fac1a7f5cf33ba57bb2f0fff5cd0b6USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of News & Content and the homepage with a featured placement.
More from Grade & similar services
Otto AI · Crypto News
x402.ottoai.services
Importance-ranked crypto headlines with per-article source links and publish times, plus a sentiment-scored market brief. Regenerated hourly; meta carries the snapshot's age and a fresh/stale verdict.
X402stock · News
x402stock.xyz
Curated stock-market news with ticker tags, source, publisher, image, and timestamps. Pass `?ticker=AAPL` to filter. From x402stock, a pay-per-call market & economic data API for AI agents. No API key or account; pay in USDC via x402.
Otto AI · Equity News
x402.ottoai.services
Latest company news for a vendor-resolved equity: licensed Finnhub headlines from the trailing seven days with publication time, source, and summary. Only articles that name the company are served — labelled `primary` when the headline names it, `mentioned` when only the summary does — so a symbol-tagged story about another company never fills the list. Redirect URLs withheld; no sentiment is fabricated.