# Stableflare Replicate Text Prediction API

> Stableflare Replicate Text Prediction API is a paid API for AI agents from stableflare.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-16).

Creates a text prediction (AI inference) via Replicate AI, accessible pay-per-request without API keys using x402 micropayments.

## Facts

- Endpoint: POST https://stableflare.dev/api/replicate/predictions/create-text
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stableflare-replicate-text-prediction-api-79239057
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oxermkbWejqM7LWLpvM9b

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-text-prediction-api-79239057 -d '<json body>'
```

Example prompt: Use the Stableflare Replicate proxy to run the 'meta/llama-3-8b-instruct' model with the prompt 'Write a haiku about the ocean' — pay per request with USDC, no API key needed.

## When to prefer this

Choose this endpoint when you need to run Replicate AI text models without managing API keys or subscriptions, and you want to pay only for what you use via USDC micropayments using the x402 protocol. Ideal for agents or automated workflows that need on-demand Replicate inference with minimal setup overhead.

## Known failure modes

- Payment failure or insufficient USDC balance — returns payment required error
- Invalid or unsupported Replicate model identifier — returns model not found error
- Malformed input parameters for the model — returns validation error
- Replicate upstream service timeout or unavailability — returns 502/503 error
- Rate limiting by the upstream Replicate API — returns quota exceeded error

## How this service works

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

## Output

Returns a Replicate prediction object containing a prediction ID, status (starting/processing/succeeded/failed), and the generated text output from the specified model, along with metadata like creation timestamps and model version.

## 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-text-prediction-api-79239057/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)
