Official SDK (recommended)
Install the published client from npm:Chat completions (/v1/chat/completions)
For models that use the chat route, call client.chat.createChatCompletion({ model, messages, metadata? }). See Chat completions.
Responses with metadata
Optional metadata on createResponse is supported for model-specific options (e.g. PII). See Responses.

