# Stability AI Ultra Image Generation via Locus x402

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

Generates high-quality images from text prompts (or input images) using Stability AI's Ultra model, billed per-call via x402 micropayments.

## Facts

- Endpoint: POST https://stability-ai.x402.paywithlocus.com/stability-ai/generate-ultra
- Price: $0.092/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-ultra-image-generation-via-locus-x402-2bdbacd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7XwFDoOrH_2QZ2jPFJ59m

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-ultra-image-generation-via-locus-x402-2bdbacd2 -d '<json body>'
```

Example prompt: Generate a photorealistic image of a misty mountain lake at sunrise with pine trees in the foreground, in 16:9 aspect ratio, using the cinematic style preset, and output it as a PNG.

## When to prefer this

Choose this endpoint when you need high-quality, Stability AI Ultra-grade image generation with per-call USDC micropayment billing via x402, especially when you want fine control over aspect ratio, style preset, negative prompts, and output format without managing an API key subscription. Prefer it over direct Stability AI API access when operating in an x402-native payment environment.

## Known failure modes

- Invalid or missing prompt returns a 400 validation error
- Strength provided without an input image (or vice versa) causes parameter mismatch error
- Unsupported aspect_ratio or output_format enum value returns a 422 error
- Insufficient USDC balance or failed x402 payment authorization results in a 402 payment required error
- Request may time out or return pending status requiring polling of the statusUrl

## 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 request ID and status URL for polling the result, along with payment settlement details (authorized and settled USDC amounts) and a success flag. The generated image data is nested under the 'data' field once the request completes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "number"
  },
  "image": {
   "type": "string"
  },
  "prompt": {
   "type": "string"
  },
  "strength": {
   "type": "number"
  },
  "aspect_ratio": {
   "type": "string"
  },
  "style_preset": {
   "type": "string"
  },
  "output_format": {
   "type": "string"
  },
  "negative_prompt": {
   "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-ultra-image-generation-via-locus-x402-2bdbacd2/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)
