Grade · Grade

by Grade

POSTBaseSolanaPolygon

$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/grade

3

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
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
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

Pay to0x127462e296fac1a7f5cf33ba57bb2f0fff5cd0b6
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Polygon
Schemesexact

Is this your API?

Pin it to the top of News & Content and the homepage with a featured placement.

Get featured →

More from Grade & similar services