Skip to main content
Install the official SDK.
Set baseURL to the FreeModel OpenAI-compatible endpoint.
To stream, pass stream: true and use for await to read each chunk.
See Chat completions for request options.