# Stability AI Structure Control

> Stability AI Structure Control 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-09, last successful call 2026-06-16).

Generates a new image that follows the structural layout of a reference image while matching a text prompt description

## Facts

- Endpoint: POST https://stability-ai.mpp.paywithlocus.com/stability-ai/structure?utm_source=zero.xyz
- Price: $0.057/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-09
- Last successful call: 2026-06-16
- Success rate: 20% of calls made through Zero
- Rating: 2.5 / 5 from 2 reviews
- Activations on Zero: 5
- 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-structure-51594b94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HepBOxvcOCrZ0jv2u95pP

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-structure-51594b94 -d '<json body>'
```

Example prompt: I have a reference photo of a room layout — use it as a structural guide to generate a new image that looks like a cozy Nordic cabin interior, described as 'warm wooden walls, fireplace, soft ambient lighting', excluding 'modern furniture, dark tones', with control strength set to 0.8, output as PNG.

## When to prefer this

Use this endpoint when you need to generate a new image that faithfully follows the spatial structure, composition, or layout of an existing reference image while applying a completely different visual style or subject. Ideal for converting sketches, wireframes, pose references, or room layouts into fully realized images. Choose this over style transfer when structural fidelity to the reference is more important than style mimicry.

## Known failure modes

- Missing required 'image' field returns a 400 validation error
- Missing required 'prompt' field returns a 400 validation error
- Invalid control_strength value outside 0–1 range may cause a 422 error
- Unsupported output_format value returns a validation error
- Malformed or non-image input for 'image' field causes a processing error
- Service timeout or 5xx error under high load

## How this service works

Generate an image that preserves the structural layout of a source image.

## Output

Returns a generated image (JPEG, PNG, or WebP) that preserves the structural composition and layout of the reference image while visually matching the provided text prompt description.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "image",
  "prompt"
 ],
 "properties": {
  "seed": {
   "type": "number",
   "description": "Random seed"
  },
  "image": {
   "type": "string",
   "description": "Structure reference 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."
  },
  "prompt": {
   "type": "string",
   "description": "Target image description"
  },
  "output_format": {
   "type": "string",
   "description": "jpeg|png|webp"
  },
  "negative_prompt": {
   "type": "string",
   "description": "Things to exclude"
  },
  "control_strength": {
   "type": "number",
   "description": "Structure adherence 0–1 (default 0.7)"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stability-ai-structure-51594b94/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)
