W

Workers · Image Generator Generations

by Workers

POSTBase

$0.03

per call · USD Coin on Base

Generate one downloadable image from a text prompt using a curated HivemindOS image tier. The exact x402 price is quoted before payment.

Endpoint

POST https://hivemindos-paid-agent-gateway.hivemindos.workers.dev/api/x402/image-generator/generations

3

Calls / 30d

2

Unique payers / 30d

Aug 30

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://hivemindos-paid-agent-gateway.hivemindos.workers.dev/api/x402/image-generator/generations", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "model": "flux-dev",
    "prompt": "A luminous autonomous-agent marketplace inside a golden hive"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://hivemindos-paid-agent-gateway.hivemindos.workers.dev/api/x402/image-generator/generations" \
  -H "Content-Type: application/json" \
  -d '{"model":"flux-dev","prompt":"A luminous autonomous-agent marketplace inside a golden hive"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "ok": true,
  "result": {
    "generation": {
      "kind": "image",
      "status": "processing"
    }
  },
  "runId": "mgen_..."
}

Payment details

Pay to0xbd62f8dcb52e21ca5bdf20ba173488da101ebcf0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from Workers & similar services