R

Recoupable · Image Generate

by Recoupable

GETbase

$0.15

per call · USD Coin on base

Generate an image from a text prompt using AI

Endpoint

GET https://api.recoupable.dev/api/x402/image/generate

6

Calls / 30d

4

Unique payers / 30d

Aug 29

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://api.recoupable.dev/api/x402/image/generate", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api.recoupable.dev/api/x402/image/generate?files=Optional+pipe-separated+list+of+files.+Format%3A+url1%3AmediaType1%7Curl2%3AmediaType2.+Example%3A+https%3A%2F%2Fexample.com%2Fimage.png%3Aimage%2Fpng%7Chttps%3A%2F%2Fexample.com%2Ffile.jpg%3Aimage%2Fjpeg&prompt=Text+prompt+describing+the+image+to+generate" \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0xbaf31935ed514e8f7da81d0a730ab5362deeeeb7
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 Recoupable & similar services