# Stability AI Style Transfer via Locus x402

> Stability AI Style Transfer 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-14).

Applies the visual style of a reference image onto a content image, with controls for style intensity, composition fidelity, and overall change strength.

## Facts

- Endpoint: POST https://stability-ai.x402.paywithlocus.com/stability-ai/style-transfer
- Price: $0.092/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-style-transfer-via-locus-x402-9b2a02ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w8eJxhacem82_hJo_sPCS

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-style-transfer-via-locus-x402-9b2a02ce -d '<json body>'
```

Example prompt: Take my product photo (init_image: https://example.com/product.jpg) and restyle it to look like the watercolor painting at https://example.com/watercolor-ref.jpg — use a style strength of 0.8, composition fidelity of 0.9, and save it as a PNG.

## When to prefer this

Choose this endpoint when you need to apply the visual aesthetic of one image onto another — especially for artistic restyling, brand consistency, or creative transformations — and want fine-grained control over style intensity, composition preservation, and overall change magnitude. Prefer this over text-to-image when you already have a content image and a specific style reference rather than generating from scratch. The x402 micropayment model makes it suitable for per-call agent workflows without subscription overhead.

## Known failure modes

- Missing or invalid init_image URL returns an error
- Missing or invalid style_image URL returns an error
- style_strength or change_strength values outside 0–1 range cause validation errors
- Unsupported output_format value (not jpeg/png/webp) causes rejection
- Payment failure or insufficient USDC balance blocks the request
- Network timeout during image processing may leave request in pending state

## How this service works

Generative AI platform for images, 3D models, and audio — text-to-image, editing, upscaling, and more.

## Output

A JSON response containing a request ID and status URL for polling the result, payment settlement details in USDC, and a success flag. The styled image data is accessible via the returned request status URL once processing completes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "number"
  },
  "prompt": {
   "type": "string"
  },
  "init_image": {
   "type": "string"
  },
  "style_image": {
   "type": "string"
  },
  "output_format": {
   "type": "string"
  },
  "style_strength": {
   "type": "number"
  },
  "change_strength": {
   "type": "number"
  },
  "composition_fidelity": {
   "type": "number"
  }
 }
}
```

## 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-style-transfer-via-locus-x402-9b2a02ce/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)
