Urgent.News

What's breaking now, across thousands of outlets.

Tech

I built a pay-per-call image processing API that AI agents can pay for with USDC

I keep experimenting with the x402 protocol — HTTP 402 payment-gated APIs where AI agents pay per call in USDC on Base, no accounts or API keys. Yesterday it was QR codes; today it's image processing. Image Toolkit does four operations, 0.01 USDC each: resize — scale to width/height (aspect preserved if you pass only one) convert — PNG / JPEG / WebP compress — quality 1-95 (JPEG/WebP) thumbnail —…

A pay-per-call image processing API was developed by the author, allowing AI agents to make payments in USDC via the Base blockchain. The API, named Image Toolkit, offers four operations: resize, convert, compress, and thumbnail, each costing 0.01 USDC. To use the API, developers POST JSON containing an image in base64 format to a specified URL.

If payment is not made, a 402 response is returned with payment requirements. Upon payment, the image is processed and returned as base64. The payment process is facilitated by PayAI, and the API is discoverable through agent frameworks like agent402.tools and x402scan. The API is currently in its early stages, with no paying callers yet, but the author hopes to gather feedback from the developer community to improve the service.

The API is built using Python's standard library, Pillow, and a Caddy server with TLS enabled, running on a minimal $4 VPS.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Bulk URL Checker – Batch HTTP Status & Redirect Tracking for 100 URLs, SSRF-Protected

## Why I built this Checking URLs one at a time during a site migration or relaunch is tedious, and the tools that do it in bulk for free — Ahrefs, SEMrush, Screaming Frog — gate that behind a paid…

  • Bulk URL Checker aids site migrations with 100 URL checks per run
  • Tool checks redirects up to 20 hops, streaming real-time results
  • SSRF protection validates redirect destinations against private IPs

OpenRig - Peer to Peer donation based hardware sharing platform

This is a submission for Weekend Challenge: Generosity Edition What I Built I grew up teaching myself to code in Pakistan on hardware that struggled to run modern dev tools.

  • OpenRig is a peer-to-peer compute sharing platform built in 48 hours.
  • Donors register idle hardware to enable recipients to access resources.
  • Google Gemini AI matches recipients with hardware based on impact.

Building a Birthstone Lookup Into a Gift-Shop Checkout: An Engineering Walkthrough

If you run an online gift shop, you eventually hit a question that looks nothing like an engineering problem until it becomes one: "Can the customer just type their birthday and get the right…

  • Multiple birthstone lists exist, such as U.S. traditional, modern, mystical, and Ayurvedic
  • Systems must handle various calendar formats like DD/MM/YYYY and MM/DD/YYYY
  • Birthstone data stored in JSON file for maintainability and easy updates

More from Sunday 6 September →