# SingIt Image-to-Image Edit

> SingIt Image-to-Image Edit 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 transform an existing image using a text prompt and optional mask, returning a modified PNG image encoded in base64.

## Facts

- Endpoint: POST https://ask.singitai.app/v1/images/image2image?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-to-image-edit-b87a98a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zRisF8wxo26_RNw-UYlGA

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-to-image-edit-b87a98a8 -d '<json body>'
```

Example prompt: Take this photo of a living room and change the wall color to deep navy blue, keeping everything else the same — use the 1024x1024 output size.

## When to prefer this

Choose this endpoint when you need to programmatically edit or transform an existing image using a text prompt, especially in a pay-per-call workflow without long-term API key commitment. It supports multiple input images (up to four), optional masking for inpainting, and uses the x402 micropayment protocol on Base or Solana — making it ideal for agent pipelines that need on-demand image editing billed in USDC.

## Known failure modes

- Unsupported image format or malformed data URI returns a 4xx error
- Mask provided alongside multiple images is rejected (mask only supported with a single image)
- Requested output size not supported by the chosen edit model
- Model ID not found in /v1/images/models catalog
- Payment not settled via x402 protocol results in 402 Payment Required
- Image dimensions or file size exceed model limits

## 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 with one element holding the edited image as a base64-encoded PNG string (`b64_json`), plus a `billing` object indicating the currency used (USDC) for the $0.066 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-to-image-edit-b87a98a8/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)
