streams
End a stream (idempotent)
Graceful end: settles the credit reservation for the billed live-clock seconds (releases it entirely when the stream never went live). Ending an already-ended stream returns the terminal resource unchanged.
post/v1/streams/{id}/end
Request
- Base URL: https://api.primateintelligence.ai
- URL: https://api.primateintelligence.ai/v1/streams/{id}/end
- Auth: HTTP bearer
Path parameters
idstring required
Response
The ended stream with final usage.
Example response
{
"id": "st_01KX12XX3BNM688AWHX7406HCF",
"model": "Darwin-preview-1.3B",
"signaling": {
"url": "wss://api.primateintelligence.ai/v1/streams/st_01KX…/signal",
"expires_at": "2026-07-08T14:00:00Z"
},
"created_at": "2026-07-08T14:00:00Z",
"live_started_at": "2026-07-08T14:00:00Z",
"ended_at": "2026-07-08T14:00:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.