Endpoint
Authentication and model selection
Sendx-api-key in the request headers and specify the model you want to use.
Request examples
Common errors
| HTTP status | Cause | How to fix |
|---|---|---|
401 | The key is invalid, disabled, or expired | Check the x-api-key header or create a new token |
400 insufficient_user_quota | Account balance or key quota is insufficient | Recharge your account |
400 model_not_found | The model does not exist, or is outside this key or group scope | Confirm the model ID and group in Model Marketplace |
429 | Rate limit triggered | Retry with exponential backoff, or reduce concurrency |
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.