# Stability AI Outpaint

> Stability AI Outpaint is a paid API for AI agents from Stability AI at stability-ai.mpp.paywithlocus.com, paid per call via MPP, $0.057/call, status unknown (last checked 2026-10-10, last successful call 2026-06-16).

Extends an existing image beyond its original borders by generating new content in specified directions (up, down, left, right) using AI outpainting

## Facts

- Endpoint: POST https://stability-ai.mpp.paywithlocus.com/stability-ai/outpaint?utm_source=zero.xyz
- Price: $0.057/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-10
- Last successful call: 2026-06-16
- Success rate: 33% of calls made through Zero
- Rating: 4.0 / 5 from 1 review
- Activations on Zero: 3
- Provider: Stability AI
- Docs: https://platform.stability.ai/docs/api-reference
- Website: https://stability.ai
- Tags: image-generation, stable-diffusion, upscaling, 3d, ai, media
- Canonical page: https://www.zero.xyz/c/stability-ai-outpaint-4362c34f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BShqy2VeCCSpcZ2lQEsr2

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-4362c34f -d '<json body>'
```

Example prompt: Take this image and extend it by adding 512 pixels on the left and right sides and 256 pixels on the bottom using Stability AI's outpaint — use the prompt 'lush forest path with dappled sunlight' to guide the expansion and set creativity to 0.6, output as PNG.

## When to prefer this

Use this endpoint when you need to expand an image's canvas beyond its original boundaries with coherent AI-generated content — ideal for making portrait images wider, adding sky/ground to landscapes, or extending product photos. Prefer this over inpainting when the goal is to add new border regions rather than fill masked areas within the existing image. Choose this over upscaling endpoints when you want to add genuinely new content around the edges rather than increase resolution.

## Known failure modes

- Invalid or unreadable source image returns an error
- Pixel expansion values of 0 in all directions returns unchanged image or error
- Creativity value outside 0–1 range causes validation error
- Unsupported output_format string causes rejection
- Image too large for processing returns size limit error
- Missing required 'image' field returns 400 bad request

## How this service works

Extend image borders by generating new content outside the frame.

## Output

Returns an outpainted image in the requested format (JPEG, PNG, or WebP) with the original image embedded in the center and newly AI-generated content filling the expanded border regions as specified by the pixel direction parameters.

## Example request

```json
{
 "up": 100,
 "down": 100,
 "left": 100,
 "seed": 42,
 "image": "iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAHdElNRQfqBQUQNzggFlbcAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI2LTA1LTA1VDE2OjU1OjU2KzAwOjAwuxoOLQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNi0wNS0wNVQxNjo1NTo1NiswMDowMMpHtpEAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjYtMDUtMDVUMTY6NTU6NTYrMDA6MDCdUpdOAAB6RUlEQVR42iT967J13XYQ5rXeWj+Ow5xrve+39xZSsDBEAslGoJgSRkDhuJKUnTgmGDCJY0QZBydxKglF+SpzGU7QPnzfWmvOOcbo59aaf+S5kcf8f375D369MAx/3n5jfxl6hkE4j6/wdmsjfNfcF51fNB59hDB1WysOhrsJOm9nl+dvcPv67jy9V0r6NpYyv6i9oXu8ru+jHN+2ZkKsw9tRZc74oxvS5e12+3PkQ9w4vtnLOfvxMiM2NFckduMvyUV6O/J2lQD4NJ5+dy8/1dOfbyPfbouoQFY6xrEv/oB5Sp3bsm27ioH63d3mtjGJfi7C+X+k63fCm/kLc0pYfyUtqhRvO61jtve32zYqGpbvcJ35J3U/m6fZ7fBv4ALCxC+64ysEUwy+ZLXP7G43M0y55scPv4SxS/LXS2wrv8mOoUd/e8CsP+dQ+H1zH9r0SgPe/FNmhfcf+ld5+/H9SsldHefyDDf6b//1LwIaCiN3Z8dsuVf31Qe16AWGDbB5/fjAdvWe08pukRrBwQIiy9DTiE6nS46Lhr5DeAlFX/GYHh5xmXEMyQtYwmNOFNda8ovM7hEPd+iaNIoRJ8cM3WpsBticIqNdA+D70DUEad8Wl4f10LNEDgIiCDdHbUsjj9U1HKUFr+Kk9hjU7sb2iScY7PCeOwHcaBXvxyg+htEsqw+tcMLwXnsCYrhwnNa5R92Ct4apm7Sibb0b7eyjv71AuTs0S6/pjCOBMktPMoTBv8xp+0gDQle3ajeTk3NQQ776TN96hdgNDk842eYql6aZLDUP09P/61+9S6gweVoAOsbDGhfEwO112FWKv26jVovXkXsaHW5mOSG5hcNEZ+D718vIorGL+OXYmJ1MXK1sX2+Xr2i8NJy9gDZIRK/Qlc1j8+OLXhsTrHJesJuX5durfYizZl5pNQrVmESWdS63e/o4Bydfmx1u3KXk2cdW56C4bI+1m8+Tyy4C6GT37/Wg5k27ajLQH6X7csUlo7em3XleMu1ukn2UHbhol16nMUg1LHKc0b/1es77u/uxH83We1+eXbrJFSKfBmAhyu5cxnSyXK5jSJ
… (truncated)
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "image"
 ],
 "properties": {
  "up": {
   "type": "number",
   "description": "Pixels to add on top"
  },
  "down": {
   "type": "number",
   "description": "Pixels to add on bottom"
  },
  "left": {
   "type": "number",
   "description": "Pixels to add on the left"
  },
  "seed": {
   "type": "number",
   "description": "Random seed"
  },
  "image": {
   "type": "string",
   "description": "Source image Send a public HTTPS URL (recommended; files up to 10 MiB) or base64/data URI. Hosted MPP JSON requests must stay below 8 KiB, so use a URL for larger files."
  },
  "right": {
   "type": "number",
   "description": "Pixels to add on the right"
  },
  "prompt": {
   "type": "string",
   "description": "Guide prompt"
  },
  "creativity": {
   "type": "number",
   "description": "Creativity level 0–1"
  },
  "output_format": {
   "type": "string",
   "description": "jpeg|png|webp"
  }
 },
 "additionalProperties": true
}
```

## More

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