AiSpace Venice · Image Generate

by AiSpace Venice

POSTBaseSolana

$0.015

per call · USD Coin on Base

Text-to-image generation on Venice models (Flux, SD3.5, GPT-Image, HunyuanImage, and more), paid per request in USDC on Base via x402, no API key. Resolve a model id from GET /api/v1/models?type=image and an optional style from GET /api/v1/image/styles.

Endpoint

POST https://x402.aispace.bot/api/v1/image/generate

200

Calls / 30d

7

Unique payers / 30d

Sep 10

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/image/generate", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "height": 1024,
    "model": "flux-2-pro",
    "prompt": "A neon-lit cyberpunk street at night, cinematic lighting, photorealistic",
    "width": 1024
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.aispace.bot/api/v1/image/generate" \
  -H "Content-Type: application/json" \
  -d '{"height":1024,"model":"flux-2-pro","prompt":"A neon-lit cyberpunk street at night, cinematic lighting, photorealistic","width":1024}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "id": "yidY-aAgyVYbeSQfKnu4gaLS2FhTus0k",
  "images": [
    "UklGRkaBAABXRUJQVlA4IDqBAACQZwGdASoAAgACPhkMhEGhBFcvbAQAYSm3i1vP/1fFy8M/nmmzw39XzLNN9Nt+/Ez/o+YH9G/2fQs58/xP/neqj+H/6f1l"
  ],
  "request": {
    "data": {
      "embed_exif_metadata": false,
      "format": "webp",
      "height": 512,
      "hide_watermark": false,
      "model": "venice-sd35",
      "prompt": "a dot",
      "return_binary": false,
      "safe_mode": true,
      "seed": -238869555,
      "steps": 20,
      "width": 512
    },
    "success": true
  },
  "timing": {
    "inferenceDuration": 3377,
    "inferencePreprocessingTime": 3389,
    "inferenceQueueTime": 557,
    "total": 3953
  }
}

Payment details

Pay to0xa7f3ad0e69f61864092fabba6cee00af6e584689
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
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