# AiSpace Image Generation (Venice.ai-powered)

> AiSpace Image Generation (Venice.ai-powered) 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 text prompts via a privacy-focused platform powered by Venice.ai, with payments handled via x402 micropayments.

## Facts

- Endpoint: POST https://x402.aispace.bot/api/v1/images/generations
- 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-venice-ai-powered-5b06ee96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dhvLHWkzPth_xHYi_hXWz

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-venice-ai-powered-5b06ee96 -d '<json body>'
```

Example prompt: Using AiSpace, generate an image of a futuristic city skyline at sunset with neon reflections on wet cobblestone streets, in a cinematic widescreen style.

## When to prefer this

Choose this endpoint when you need privacy-preserving AI image generation where your data does not leave the device/session, powered by Venice.ai's backend. Prefer it over generic image generation APIs when user privacy is a concern, when you need micropayment-based per-call pricing via x402 (at $0.001 USDC), or when integrating into an x402-compatible agent payment workflow.

## Known failure modes

- Payment failure — insufficient USDC balance or x402 payment not accepted
- Invalid or missing input prompt — returns error if required fields are absent
- Venice.ai backend unavailability — upstream service errors propagate as failures
- Content policy violation — prompts generating disallowed content may be rejected
- Malformed request schema — incorrect HTTP method enum or missing required 'input' object

## How this service works

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.

## Output

Returns a JSON response with an 'ok' boolean indicating success, along with the generated image data or URL. The response confirms whether the image generation completed successfully.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "description": "Venice supports n=1 on this route."
  },
  "size": {
   "type": "string",
   "description": "Output size, e.g. \"1024x1024\"."
  },
  "model": {
   "type": "string",
   "description": "Venice image model id. See GET /api/v1/models?type=image."
  },
  "prompt": {
   "type": "string",
   "description": "Image description."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "b64_json": "iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAIAAADwf7zUAAABP2lDQ1BpY2MAABiVfZC/SwJxGMY/11WWWA05NBQcJU0FUUtTgYZOEfgj1Kbz/FGgdt33QprL"
   }
  ],
  "created": 1788177718
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aispace-image-generation-venice-ai-powered-5b06ee96/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)
