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:ReplicateAsyncAPI: v2.6.0Spec: Replicate Streaming and Webhooks APIOperations: 1Messages: 3
Channel address
predictions.stream
Operations
subscribe
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.
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.