# Stableflare Replicate Image Creation

> Stableflare Replicate Image Creation is a paid API for AI agents from stableflare.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Generates AI images via Replicate's prediction API using pay-per-request USDC micropayments, requiring no API keys or subscriptions

## Facts

- Endpoint: POST https://stableflare.dev/api/replicate/predictions/create-image
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stableflare-replicate-image-creation-245c064f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8ONZUgKyTH9IaFofqtiZU

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 stableflare-replicate-image-creation-245c064f -d '<json body>'
```

Example prompt: Generate an AI image of a futuristic cityscape at sunset with neon lights and flying cars — use Replicate to create it and pay per request so I don't need to set up an account.

## When to prefer this

Prefer this endpoint when you need to run Replicate image generation models without obtaining your own Replicate API key or committing to a subscription. Ideal for agent workflows that need occasional or unpredictable image generation billed per-use in USDC via x402 micropayments.

## Known failure modes

- Payment not received or insufficient USDC sent — request rejected with 402
- Invalid model input parameters — Replicate returns a 422 validation error
- Replicate model unavailable or rate-limited — upstream 503 or timeout
- Malformed request body — 400 bad request
- Generation timeout if model takes too long to run

## How this service works

Pay-per-request access to Replicate AI and Cloudflare Browser Rendering. No API keys, no subscriptions.

## Output

Returns a prediction object from Replicate containing the status of the image generation job and, once complete, URLs pointing to the generated image output(s).

## Example request

```json
{
 "input": {
  "prompt": "A serene mountain landscape with a clear blue sky and pine trees"
 },
 "model": "black-forest-labs/flux-schnell"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "description": "Model input parameters",
   "propertyNames": {
    "type": "string"
   },
   "additionalProperties": {}
  },
  "model": {
   "type": "string",
   "description": "Model identifier as owner/name (e.g. 'black-forest-labs/flux-schnell'). Must be an official Replicate model."
  },
  "webhook": {
   "type": "string",
   "format": "uri",
   "description": "Webhook URL for completion"
  },
  "webhook_events_filter": {
   "type": "array",
   "items": {
    "enum": [
     "start",
     "output",
     "logs",
     "completed"
    ],
    "type": "string"
   },
   "description": "Which webhook events to send"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stableflare-replicate-image-creation-245c064f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stableflare.dev](https://www.zero.xyz/host/stableflare.dev/llms.txt)
