# AgentRXI Image Inpainting

> AgentRXI Image Inpainting is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Edit a specific region of an image by providing the image, a mask (white = area to repaint), and a text prompt describing what to paint there

## Facts

- Endpoint: GET https://agentrxi.com/v1/image/inpaint?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-image-inpainting-bf91c03a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uLnOeq9DMey2fFBQuAgjg

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 agentrxi-image-inpainting-bf91c03a
```

Example prompt: Can you remove the car in the background of this photo? Here's the image URL: https://example.com/photo.jpg — I'll also provide a mask where the car is marked in white: https://example.com/mask.png. Use the prompt 'empty street with pavement' to fill it in.

## When to prefer this

Choose this endpoint when you need to edit a specific region of an existing image using a mask — for object removal, background replacement, or adding items to a scene. Prefer it over full image generation when you want to preserve most of the original image and only change a defined area. It's a pay-per-call API ideal for agent workflows that need programmatic image editing without a subscription.

## Known failure modes

- Missing prompt parameter — required field, returns error if absent
- Invalid or inaccessible image/mask URLs — returns error if image cannot be fetched
- Mask and image dimensions mismatch — may cause unexpected results or error
- strength value out of 0-1 range — may be rejected or clamped
- Neither image_url/image_base64 nor mask_url/mask_base64 provided — ambiguous input
- Store flag adds $0.001 cost; link expires after 7 days

## How this service works

Edit part of an image: send the image and a mask (white = area to repaint) with a prompt, and get the edited image back. Remove objects, replace backgrounds or add items. Add store=true (+$0.001) to get a 7-day share link instead of the data inline. Also callable as GET with the same fields as query parameters.

## Output

Returns the edited image as inline base64 data (or, if store=true, a 7-day shareable URL link to the result image), with the specified masked region repainted according to the prompt while the rest of the image remains unchanged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "store": {
       "type": "boolean",
       "description": "Return a 7-day share link (+$0.001)"
      },
      "prompt": {
       "type": "string",
       "description": "What to paint in the masked area"
      },
      "mask_url": {
       "type": "string"
      },
      "strength": {
       "type": "number",
       "description": "0-1"
      },
      "image_url": {
       "type": "string"
      },
      "mask_base64": {
       "type": "string"
      },
      "image_base64": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-image-inpainting-bf91c03a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
