OpenAI-compatible pipeline endpoint

Drop-in replacement for the OpenAI chat completions API. Point any OpenAI SDK at this base URL with a Treza API key. The latest user message is fed into the pipeline and the pipeline output is returned as the assistant message. Supports streaming via server-sent events.

post/api/pipelines/{id}/chat/completions

Request

  • Base URL: https://www.trezalabs.com
  • URL: https://www.trezalabs.com/api/pipelines/{id}/chat/completions
  • Auth: HTTP bearer

Path parameters

idstring required

Pipeline id

Request body

streamboolean

Response

Chat completion (JSON, or SSE when stream is true)

Changes

No recorded changes to this operation across all 1 revision of this API.