# SingIt Image Edits

> SingIt Image Edits is a paid API for AI agents from ask.singitai.app, paid per call via x402, $0.066/call, status unknown (last checked 2026-12-02).

Edit or modify an existing image using a text prompt, returning a new image as base64 JSON, paid per call in USDC via x402.

## Facts

- Endpoint: POST https://ask.singitai.app/v1/images/edits?utm_source=zero.xyz
- Price: $0.066/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/singit-image-edits-0edcc808
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vZL8UfBTLnyD3qsABkhXa

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 singit-image-edits-0edcc808 -d '<json body>'
```

Example prompt: Take this product photo (here's the PNG data URI) and remove the background, replacing it with a plain white studio backdrop — use the 1024x1024 size and pick whatever edit model is available.

## When to prefer this

Choose this endpoint when you need AI-powered image editing (inpainting, background replacement, style changes) paid per-call in USDC with no API key registration required, especially in crypto-native or x402-compatible agent workflows. Prefer it over OpenAI's native image edit endpoint when you want pay-as-you-go crypto settlement on Base or Solana. Ideal for agents that need to edit images programmatically without managing subscriptions.

## Known failure modes

- Unsupported image format or malformed data URI returns a 400 error
- Model ID not found in /v1/images/models returns an error or fallback
- Mask provided alongside multiple images (only allowed with single image) causes rejection
- Requested output size not supported by the chosen model returns an error
- Payment not settled (insufficient USDC balance) returns a 402 Payment Required
- Rate limit on free tier (20 calls/day) exceeded returns a 429 or similar error

## How this service works

Image editing API with PNG, JPEG or WEBP input and an optional mask. Pay in USDC on Base or Solana. Owner-set spend limits via MCP/API keys.

## Output

A JSON object containing a `data` array where each item has a `b64_json` field with the edited image encoded as a base64 PNG, plus a `billing` object indicating the currency used (USDC) for the per-call charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "const": 1,
   "description": "Number of output images; only one is supported."
  },
  "mask": {
   "type": "string",
   "description": "Mask data URI with at least 65536 pixels (for example 256×256); only with one image."
  },
  "size": {
   "type": "string",
   "description": "Output size supported by the edit model, for example 1024x1024."
  },
  "image": {
   "type": [
    "string",
    "array"
   ],
   "oneOf": [
    {
     "type": "string"
    },
    {
     "type": "array",
     "items": {
      "type": "string"
     },
     "maxItems": 4,
     "minItems": 1
    }
   ],
   "description": "PNG, JPEG or WEBP data URI, or up to four data URIs; each must contain at least 65536 pixels (for example 256×256)."
  },
  "model": {
   "type": "string",
   "description": "Edit model from GET /v1/images/models."
  },
  "prompt": {
   "type": "string",
   "description": "The requested edit."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "b64_json": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII="
   }
  ],
  "billing": {
   "currency": "USDC"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/singit-image-edits-0edcc808/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ask.singitai.app](https://www.zero.xyz/host/ask.singitai.app/llms.txt)
