AsyncAPI channel · Replicate · Replicate Streaming and Webhooks API

predictions.stream

SSE stream of a single prediction's output. Returned per-prediction at `urls.stream` when the model supports streaming. Three event types are emitted: `output` (plain text, token/chunk-by-chunk), `error` (JSON with `detail`), and `done` (JSON, optionally including `reason`).

Provider: Replicate AsyncAPI: v2.6.0 Spec: Replicate Streaming and Webhooks API Operations: 1 Messages: 3

Channel address

predictions.stream

Operations

subscribePredictionStream
Consume prediction SSE stream

Messages

output
Emitted when the prediction returns new output. Streaming text models emit one `output` event per token / chunk.
Content-Type: text/plain
error
Emitted when the prediction returns an error.
Content-Type: application/json
done
Emitted when the prediction finishes. The payload is an empty object `{}` on success, or contains a `reason` of `canceled` or `error` for non-success terminations.
Content-Type: application/json

About AsyncAPI

The AsyncAPI specification describes event-driven APIs the way OpenAPI describes request/response APIs. A channel is the named pipe — a webhook URL, a Kafka topic, a WebSocket route, an MQTT subject — that producers and consumers publish or subscribe to. Each channel carries one or more messages with structured payloads, and an operation declares whether a given party sends or receives on that channel.

Browse every event-driven channel on the APIs.io network or compare with the broader Naftiko capability, Agent Skill, and MCP server surfaces of the same providers.