# Stability AI Outpaint via Locus x402

> Stability AI Outpaint via Locus x402 is a paid API for AI agents from stability-ai.x402.paywithlocus.com, paid per call via x402, $0.046/call, status unknown (last checked 2026-09-13).

Extends an existing image outward in any direction (up, down, left, right) using AI-guided outpainting, paid per call via x402 USDC microtransaction.

## Facts

- Endpoint: POST https://stability-ai.x402.paywithlocus.com/stability-ai/outpaint
- Price: $0.046/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stability-ai-outpaint-via-locus-x402-5d28b769
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RLFy6uRGWTRNLlV0ClrGx

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 stability-ai-outpaint-via-locus-x402-5d28b769 -d '<json body>'
```

Example prompt: Take this product photo and extend it 200 pixels on the left and 200 pixels on the right using the prompt 'clean white studio background', with creativity set to 0.5, and return the result as a PNG.

## When to prefer this

Choose this endpoint when you need to expand the borders of an existing image using AI-generated content guided by a text prompt — for example, widening product photos, extending landscape compositions, or adding headroom/legroom to portraits. It is distinct from text-to-image (no source image) or inpainting (filling interior regions); outpaint specifically adds new pixels outside the original canvas boundaries. Prefer this over generic image editors when you need seamless AI-generated fill that matches the original image's style and content.

## Known failure modes

- Invalid or missing source image — returns error if 'image' field is absent or malformed
- Pixel expansion values too large or negative — may return validation error
- Creativity value outside 0–1 range — rejected with parameter error
- Unsupported output format string — returns format validation error
- Payment failure or insufficient USDC — x402 payment not settled, request rejected
- Seed value out of valid range — may cause generation error
- Network timeout on async result — status URL must be polled for completion

## How this service works

Generative AI platform for images, 3D models, and audio — text-to-image, editing, upscaling, and more.

## Output

Returns a JSON object with a 'data' field containing the outpainted image result, a 'request' object with a unique request ID and a status URL for polling, a 'payment' object confirming the settled USDC amount (~$0.046), and a 'success' boolean. The actual image data is accessible via the request status URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "up": {
   "type": "number"
  },
  "down": {
   "type": "number"
  },
  "left": {
   "type": "number"
  },
  "seed": {
   "type": "number"
  },
  "image": {
   "type": "string"
  },
  "right": {
   "type": "number"
  },
  "prompt": {
   "type": "string"
  },
  "creativity": {
   "type": "number"
  },
  "output_format": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stability-ai-outpaint-via-locus-x402-5d28b769/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stability-ai.x402.paywithlocus.com](https://www.zero.xyz/host/stability-ai.x402.paywithlocus.com/llms.txt)
