Endpoint
Authentication and model selection
Sendx-api-key in the request headers and specify the model you want to use.
Request examples
Common errors
The
type and code fields in error responses contain more specific error categories. Branch on these fields in your client instead of parsing only the message text.