AiSpace Venice · Images Generations

by AiSpace Venice

POSTBase

$0.015

per call · USD Coin on Base

OpenAI /v1/images/generations-compatible image generation on Venice image models, paid per request in USDC on Base via x402, no API key. Point any OpenAI image SDK here. Resolve a model id from GET /api/v1/models?type=image.

Endpoint

POST https://x402.aispace.bot/api/v1/images/generations

3

Calls / 30d

1

Unique payers / 30d

Aug 31

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://x402.aispace.bot/api/v1/images/generations", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "model": "flux-2-pro",
    "n": 1,
    "prompt": "A watercolor fox in a misty forest",
    "size": "1024x1024"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.aispace.bot/api/v1/images/generations" \
  -H "Content-Type: application/json" \
  -d '{"model":"flux-2-pro","n":1,"prompt":"A watercolor fox in a misty forest","size":"1024x1024"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "created": 1783555200,
  "data": [
    {
      "url": "https://x402.aispace.bot/media/img_def456.png"
    }
  ]
}

Payment details

Pay to0xa7f3ad0e69f61864092fabba6cee00af6e584689
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 AiSpace Venice & similar services