# AiSpace Image Edit

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

Edits or modifies an existing image using AI, powered by Venice.ai, via a privacy-focused platform

## Facts

- Endpoint: POST https://x402.aispace.bot/api/v1/image/edit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aispace-image-edit-a3a2be01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EP34Dx1G7hhzUrHroiHjK

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-edit-a3a2be01 -d '<json body>'
```

Example prompt: Can you use AiSpace to edit this image and remove the background, keeping the subject intact?

## When to prefer this

Choose this endpoint when you need privacy-preserving AI image editing backed by Venice.ai, especially when data sovereignty matters and you want edits processed without storing data server-side. Prefer over generic image APIs when using the x402 micropayment protocol at low per-call cost ($0.001 USDC).

## Known failure modes

- Missing required 'input' field returns validation error
- Invalid HTTP method (only GET, HEAD, DELETE accepted in schema) causes rejection
- Payment not provided or insufficient USDC balance triggers 402 response
- Malformed query parameters cause processing failure
- Image source inaccessible or invalid returns error

## How this service works

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.

## Output

Returns a JSON response with an 'ok' boolean indicating whether the image edit operation completed successfully, along with any resulting edited image data or reference.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image": {
   "type": "string",
   "description": "HTTPS URL or plain base64 (no data: prefix)."
  },
  "model": {
   "type": "string",
   "description": "Venice inpaint/edit model id. See GET /api/v1/models?type=inpaint."
  },
  "prompt": {
   "type": "string",
   "description": "Edit instruction describing the desired change."
  },
  "return_binary": {
   "type": "boolean",
   "description": "Gateway-owned. Omit for a raw image file (default). false = JSON { id, images: [base64], format } like generate. true = force the file. Stripped before Venice."
  },
  "enhance_prompt": {
   "type": "boolean",
   "description": "Optional. Vision-aware rewrite of the edit instruction. Extra credits when a rewrite is generated."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Response body is raw binary media, not JSON. Trust the sniffed content type over the header.",
  "type": "binary",
  "contentType": "image/png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aispace-image-edit-a3a2be01/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)
