Pro image generation · Images PRO

by Pro image generation

POSTBaseArbitrumPolygonMonadAvalancheeip155:1329OptimismFraxtaleip155:42220

$0.05

per call · USD Coin on Base

Higher-fidelity text-to-image over x402 - OpenAI images wire (prompt in, inline base64 out) at $0.05 per picture. Served by FLUX.2 Pro (about 9 seconds per image, 1024x1024 JPEG) with Qwen Image 3 at 1K as the failover. n locked to 1, text-to-image only, size and quality fixed. Point any OpenAI SDK's images.generate() at base_url https://agent402.tools/v1 and call /images/pro.

Endpoint

POST https://agent402.tools/v1/images/pro

4

Calls / 30d

2

Unique payers / 30d

Sep 7

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://agent402.tools/v1/images/pro", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "prompt": "A photorealistic still life of a brass astrolabe on a walnut desk, soft window light"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent402.tools/v1/images/pro" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A photorealistic still life of a brass astrolabe on a walnut desk, soft window light"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "created": 1750000000,
  "data": [
    {
      "b64_json": "/9j/4AAQSkZJRgABAQAAAQABAAD…",
      "media_type": "image/jpeg"
    }
  ],
  "model": "black-forest-labs/flux.2-pro",
  "usage": {
    "completion_tokens": 4096,
    "prompt_tokens": 11,
    "total_tokens": 4107
  }
}

Payment details

Pay to0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon, Monad, Avalanche, eip155:1329, Optimism, Fraxtal, eip155:42220
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Pro image generation & similar services