# Stability AI Core Image Generation via Locus x402

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

Generates images from text prompts using Stability AI's core model, with control over aspect ratio, style preset, output format, and negative prompts, paid per-call via x402 micropayment.

## Facts

- Endpoint: POST https://stability-ai.x402.paywithlocus.com/stability-ai/generate-core
- Price: $0.034/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-core-image-generation-via-locus-x402-4ca3f550
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K_asLFOLZd0Mzc04Mzjlj

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-core-image-generation-via-locus-x402-4ca3f550 -d '<json body>'
```

Example prompt: Generate a photorealistic image of a misty mountain lake at sunrise in 16:9 aspect ratio, PNG format, using the photographic style preset — exclude any people or buildings.

## When to prefer this

Choose this endpoint when you need fast, affordable text-to-image generation via Stability AI's core model with micropayment billing (no API key setup required — pay per call in USDC via x402). Prefer it over direct Stability AI API calls when you need frictionless pay-per-use access without subscription management, and when style presets and aspect ratio control are sufficient for your use case.

## Known failure modes

- Invalid or missing prompt returns a 400 error
- Unsupported aspect_ratio or output_format enum value causes a validation error
- Insufficient USDC balance or payment failure returns a 402 Payment Required error
- Seed value out of acceptable range may be rejected
- Request timeout if generation takes longer than expected; use the statusUrl to poll for completion
- If the prompt violates content policy, generation may be refused

## How this service works

Locus public pay-per-use API

## Output

Returns a JSON object with a success flag, a request ID and status URL for async retrieval, and payment settlement details showing USDC charged and authorized. The generated image data is nested under the 'data' field.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "number"
  },
  "prompt": {
   "type": "string"
  },
  "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-core-image-generation-via-locus-x402-4ca3f550/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)
