# Stability AI SD3 Image Generation via Locus x402

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

Generates images from text prompts or transforms existing images using Stability AI's Stable Diffusion 3.x models, paid per-call via USDC micro-payment.

## Facts

- Endpoint: POST https://stability-ai.x402.paywithlocus.com/stability-ai/generate-sd3
- Price: $0.029/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stability-ai-sd3-image-generation-via-locus-x402-13ebeaee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oEfRiJ49ClikWZFo8ZkNj

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-sd3-image-generation-via-locus-x402-13ebeaee -d '<json body>'
```

Example prompt: Generate a photorealistic image of a golden retriever running on a sunny beach at sunset, square format, in JPEG — use the sd3.5-large model and exclude any people from the image.

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call access to Stability AI's SD3.x family (including sd3.5-large, sd3.5-large-turbo, sd3.5-medium, sd3.5-flash) without managing API keys — the x402 USDC micro-payment model makes it ideal for agents that need to generate images on demand with crypto-native billing. Prefer this over direct Stability AI API calls when operating in a USDC/x402 payment context or when orchestrating multi-step agent workflows that need per-call cost accountability.

## Known failure modes

- Invalid or missing prompt — returns error indicating required field
- Unsupported model identifier — returns validation error
- Image-to-image mode called without providing an input image — returns parameter error
- Insufficient USDC payment or payment failure — returns 402 Payment Required
- Aspect ratio or output format value not recognized — returns validation error
- Seed or cfg_scale out of valid range — returns parameter error
- Content policy violation in prompt — returns moderation rejection

## 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 generated image output, a `request` object with a UUID and a status polling URL, a `payment` object confirming the USDC amount settled, and a `success` boolean. The image data itself is accessible via the request or embedded in `data`.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string"
  },
  "seed": {
   "type": "number"
  },
  "image": {
   "type": "string"
  },
  "model": {
   "type": "string"
  },
  "prompt": {
   "type": "string"
  },
  "strength": {
   "type": "number"
  },
  "cfg_scale": {
   "type": "number"
  },
  "aspect_ratio": {
   "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-sd3-image-generation-via-locus-x402-13ebeaee/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)
