Skip to main content
Install the official SDK.
Set base_url to the SnapGen OpenAI-compatible endpoint.
To stream, pass stream=True and iterate over the returned events.

Use Responses

The same client supports Responses:
See Chat Completions and Responses for request options, streaming, and tools.