---
title: "Server-sent-events stream of a prompt completion."
method: POST
path: "/v1/stream"
tags: ["Pipeline"]
---

# Server-sent-events stream of a prompt completion.

`POST /v1/stream`

## Request

- Base URL: `https://api.clawpipe.ai`
- URL: `https://api.clawpipe.ai/v1/stream`
- Auth: HTTP bearer

## Headers

- `Last-Event-ID` string

## Request body

- PromptRequest
  - `prompt` string, required
  - `provider` string, required
  - `model` string, required
  - `system` string
  - `maxTokens` integer
  - `temperature` number

## Response `200`

SSE stream (text/event-stream).

## Other responses

- `400`: Streaming not supported for this provider.
- `502`: Upstream stream failure.

---

[API](https://skmtc.dev/clawpipe/apis/clawpipe-gateway-api.md) · [All operations](https://skmtc.dev/clawpipe/apis/clawpipe-gateway-api/llms.txt) · [OpenAPI document](https://skmtc.dev/clawpipe/apis/clawpipe-gateway-api/revisions/f823eeb39f93?raw)
