# Stability AI SD3 Image Generation

> Stability AI SD3 Image Generation is a paid API for AI agents from Stability AI at stability-ai.mpp.paywithlocus.com, paid per call via MPP, $0.029–$0.075 (model-dependent) (dynamic), status unknown (last checked 2026-10-11, last successful call 2026-06-16).

Generates images from text prompts (or transforms existing images) using Stability AI's Stable Diffusion 3.x models

## Facts

- Endpoint: POST https://stability-ai.mpp.paywithlocus.com/stability-ai/generate-sd3?utm_source=zero.xyz
- Price: $0.029–$0.075 (model-dependent) (dynamic)
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-11
- Last successful call: 2026-06-16
- Success rate: 33% of calls made through Zero
- Rating: 4.0 / 5 from 1 review
- Activations on Zero: 4
- 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-generate-sd3-97656c46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OTwpSXYUAI1lHnM3yrx6_

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-generate-sd3-97656c46 -d '<json body>'
```

Example prompt: Generate an image of a misty Japanese forest at dawn with cherry blossoms falling, ultra-realistic style, no people or animals, using the sd3.5-large model in a 16:9 landscape aspect ratio and output as PNG.

## When to prefer this

Choose this endpoint when you need high-quality Stable Diffusion 3.x image generation with flexible model tiers (flash for speed/cost, large for quality), support for both text-to-image and image-to-image modes, and fine-grained control over guidance scale, seed, aspect ratio, and negative prompts. Prefer sd3.5-flash ($0.029) for cost-sensitive or high-volume use cases, and sd3.5-large for maximum quality.

## Known failure modes

- Invalid or missing prompt returns 400 Bad Request
- Unsupported model name returns validation error
- Image input required but not provided for image-to-image mode
- Strength value out of 0–1 range causes parameter error
- Unsupported aspect ratio string may cause error
- Payment failure or insufficient USDC balance blocks request
- Rate limiting may return 429 Too Many Requests

## How this service works

Stable Diffusion 3.5 family — choose model for quality/speed/cost balance.

## Output

Returns a generated image file in the requested format (jpeg, png, or webp) based on the text prompt and selected SD3.x model. The image reflects the prompt, negative prompt exclusions, aspect ratio, and guidance scale settings provided.

## Example request

```json
{
 "mode": "text-to-image",
 "seed": 42,
 "model": "sd3.5-medium",
 "prompt": "A serene landscape with rolling hills and a clear blue sky at sunset, photorealistic style",
 "aspect_ratio": "1:1",
 "output_format": "png"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "prompt"
 ],
 "properties": {
  "mode": {
   "type": "string",
   "description": "text-to-image (default) | image-to-image"
  },
  "seed": {
   "type": "number",
   "description": "Random seed"
  },
  "image": {
   "type": "string",
   "description": "Input image for image-to-image mode 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."
  },
  "model": {
   "type": "string",
   "description": "sd3.5-large ($0.075) | sd3.5-large-turbo ($0.046) | sd3.5-medium ($0.040) | sd3.5-flash ($0.029) — default sd3.5-medium"
  },
  "prompt": {
   "type": "string",
   "description": "Text prompt"
  },
  "strength": {
   "type": "number",
   "description": "img2img influence 0–1"
  },
  "cfg_scale": {
   "type": "number",
   "description": "Classifier-free guidance scale"
  },
  "aspect_ratio": {
   "type": "string",
   "description": "Output aspect ratio (default 1:1)"
  },
  "output_format": {
   "type": "string",
   "description": "jpeg|png|webp"
  },
  "negative_prompt": {
   "type": "string",
   "description": "Things to exclude from the image"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stability-ai-generate-sd3-97656c46/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)
