xAI direct API key
POST /v1/auth/xai/api-key — Save an xAI (Grok) API key. Validates via GET /v1/models before persisting.
POST /v1/auth/xai/api-key
Save an xAI (Grok) API key. Validates via GET /v1/models before persisting.
| Method | POST |
| Path | /v1/auth/xai/api-key |
| Auth | Authorization: Bearer <token> required |
| Category | auth |
Request body
{ "apiKey": "xai-...", "saveAnyway"?: boolean }