# AiSpace Image Generation

> AiSpace Image Generation is a paid API for AI agents from x402.aispace.bot, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates AI images from a text prompt using Venice.ai-powered models on the AiSpace privacy-focused platform

## Facts

- Endpoint: POST https://x402.aispace.bot/api/v1/image/generate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aispace-image-generation-c9d0429d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qeV9TSv7M7hnvsu8lEtow

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aispace-image-generation-c9d0429d -d '<json body>'
```

Example prompt: Using AiSpace, generate an image of a futuristic city at sunset with neon lights and flying cars, using the venice-sd35 model.

## When to prefer this

Choose this endpoint when you need privacy-conscious AI image generation backed by Venice.ai at a low per-call cost of $0.001 USDC, especially when data privacy is a priority and you want to pay per generation without a subscription. Prefer this over other image APIs when you specifically want Venice.ai model quality (e.g. venice-sd35) with x402 micropayment support.

## Known failure modes

- Missing required 'prompt' or 'model' query parameter returns a 400 error
- Invalid model name causes generation failure
- Payment of 0.001 USDC not provided or rejected results in 402 Payment Required
- Prompt content policy violation may reject the request
- Network timeout if generation takes too long

## How this service works

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.

## Output

Returns a JSON object with an 'ok' boolean indicating whether the image generation request succeeded. The generated image data or URL is expected as part of the response payload.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "example": "venice-sd35",
   "description": "Venice image model id. See GET /api/v1/models?type=image (e.g. flux-2-pro, venice-sd35, gpt-image-2)."
  },
  "prompt": {
   "type": "string",
   "description": "Image description. Up to ~2000 chars."
  },
  "style_preset": {
   "type": "string",
   "description": "Optional named style. See GET /api/v1/image/styles (e.g. \"Cinematic\", \"Anime\")."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aispace-image-generation-c9d0429d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.aispace.bot](https://www.zero.xyz/host/x402.aispace.bot/llms.txt)
