AiSpace Venice · Image Edit

by AiSpace Venice

POSTBaseSolana

$0.025

per call · USD Coin on Base

Prompt-driven single-image edit on Venice models — send an image plus an instruction and get the edited result, paid per request in USDC on Base via x402, no API key. Resolve a model id from GET /api/v1/models?type=inpaint.

Endpoint

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

14

Calls / 30d

2

Unique payers / 30d

Sep 3

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/edit", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "image": "https://example.com/portrait.png",
    "model": "qwen-image-2-edit",
    "prompt": "Add a pair of round glasses and a subtle smile",
    "return_binary": false
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.aispace.bot/api/v1/image/edit" \
  -H "Content-Type: application/json" \
  -d '{"image":"https://example.com/portrait.png","model":"qwen-image-2-edit","prompt":"Add a pair of round glasses and a subtle smile","return_binary":false}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "contentType": "image/png",
  "note": "Default body is raw image bytes, not JSON. Write the body to a file. Send return_binary: false (or Accept: application/json with no */* and no image/*) for JSON { id, images: [base64], format } like generate.",
  "type": "binary"
}

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