# PreTestAds > Ad pre-testing powered by a brain-encoding (fMRI-trained) neural model. Upload an image or video ad and get a predicted attention score benchmarked against 76 top-performing TikTok ads. Score is a percentile (0-100) with a label: weak / moderate / strong. ## Agent API (x402 — pay per request, no account, no API key) AI agents can buy a single scoring run for $5.00 USDC using the x402 payment protocol (HTTP 402). No signup, no API key. Payment is accepted on two networks — pay on whichever chain you hold USDC: - Solana (scheme `exact`, USDC) - Base (scheme `exact`, USDC) ### Submit media for scoring POST https://pretestads.com/api/v1/score Body (JSON): {"media_url": "https://example.com/ad.mp4", "window_seconds": 15} or multipart/form-data with a `file` field (and optional `window_seconds`). - Accepted media: MP4 / MOV / AVI video, or JPG / PNG / WebP image. Max 500MB. - `window_seconds`: 3, 5, 15, 30, or 60 (default 15). Video is trimmed to this window. - First request without payment returns HTTP 402 with an `accepts` array (price, asset, network, payTo). Sign a payment with an x402 buyer SDK (e.g. `x402-fetch`) and retry with the payment header; the server verifies and settles via the facilitator before queueing the job. - Success: HTTP 202 `{"id", "status", "status_url", "payment": {"network", "transaction"}}` ### Poll for the result (free, no payment) GET https://pretestads.com/api/v1/score/{id} Returns `{"status": "pending|processing|complete|failed", "score": 0-100, "label": "weak|moderate|strong", "verdict": "...", "engagement_timeseries": [...]}`. Scoring typically completes in 5-8 minutes. One payment buys exactly one scoring run. Replayed payment proofs are rejected. ## Human product - https://pretestads.com — web app with accounts, credits, and subscriptions.