create_image_uploads
Gets upload links so an AI that can run commands can send files from your computer to test_images.
For AI apps that can run commands: Claude Code, Codex, Cursor, or claude.ai with code execution on. Each link is on tespr.vercel.app, takes one PNG or JPG up to 4 MB, works for 2 hours, and comes with an id to pass to test_images. Files nobody tests are deleted after a day.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
count | 1 to 6 | Yes | How many files you'll upload. |
Uploading
Send each file with a PUT to its link, with the file's type. Your AI runs this for you:
curl -sS -X PUT -H "Content-Type: image/png" --data-binary @checkout.png "<upload link>"Use image/jpeg for JPG files. Convert or shrink other files first; on a Mac, sips -s format png -Z 2000 in.webp --out out.png. Tespr answers {"uploaded": "img_…"}, or {"error": "…"} saying what to fix.
Response
One line per file with its id and the curl command, plus structuredContent.uploads: a list of id, upload_url and method.
If the upload is blocked
Some AI apps run commands in a sandbox that only reaches domains you've allowed. If curl can't connect, allow tespr.vercel.app (in claude.ai: Settings → Capabilities, on paid plans). You don't need to allow any other domain. Otherwise, use public image links or upload the images in the Tespr app.
