Skip to main content
After creating an API key, send a simple request to test whether the API is available.

Endpoint

Authentication and model selection

Send x-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.

Next steps

After one request works, continue exploring: