# Bria Image Expand (Outpainting)

> Bria Image Expand (Outpainting) is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-13).

Expands an image beyond its original borders using the Bria Expand AI model, generating realistic content to fill a larger canvas.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/image-expand
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-70d860c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cvdokbISOj1KdYW_ge5AJ

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 x402-deployer-x402-deployer-workers-dev-70d860c0 -d '<json body>'
```

Example prompt: Take this product photo (https://example.com/product.jpg) and expand it to a 1920x1080 canvas, placing the original image centered, so the AI fills in the background around it using the Bria Expand model.

## When to prefer this

Choose this endpoint when you need to outpaint or expand an image with a commercially licensed model (Bria Expand), especially when the output will be used in commercial projects. Prefer this over open-source alternatives when commercial licensing is required and you need realistic, high-quality border generation with controllable canvas sizing and placement.

## Known failure modes

- Invalid image URL or unreachable source image returns an error
- Canvas dimensions smaller than original image dimensions cause a validation error
- Unsupported image format results in processing failure
- Placement coordinates that put the original image outside the canvas bounds return an error
- Payment failure via x402 protocol results in 402 response before processing begins

## How this service works

AI image outpainting / image expansion. Bria Expand model. Generates realistic content beyond original borders. Set canvas size + original placement. Commercial-license model.

## Output

Returns an outpainted image with the original content placed at the specified position within a larger canvas, with realistic AI-generated content filling the expanded areas beyond the original borders.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "image_url",
      "canvas_width",
      "canvas_height"
     ],
     "properties": {
      "seed": {
       "type": "number",
       "description": "Random seed for reproducible output. Optional; random if omitted."
      },
      "prompt": {
       "type": "string",
       "description": "Text hint describing what to generate in the expanded area. Optional."
      },
      "image_url": {
       "type": "string",
       "description": "Source image URL to expand."
      },
      "original_x": {
       "type": "number",
       "description": "X offset of the original image within the new canvas. Optional; must pair with original_y."
      },
      "original_y": {
       "type": "number",
       "description": "Y offset of the original image within the new canvas. Optional; must pair with original_x."
      },
      "canvas_width": {
       "type": "number",
       "description": "Target canvas width in pixels. 256-4096."
      },
      "canvas_height": {
       "type": "number",
       "description": "Target canvas height in pixels. 256-4096."
      },
      "original_width": {
       "type": "number",
       "description": "Width of the original image within the new canvas. Optional; must pair with original_height."
      },
      "original_height": {
       "type": "number",
       "description": "Height of the original image within the new canvas. Optional; must pair with original_width."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "width": {
       "type": "integer"
      },
      "height": {
       "type": "integer"
      },
      "image_url": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-70d860c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
