API Key Management
GPUStack supports authentication using API keys. Each GPUStack user can generate and manage their own API keys.
Create API Key
- Navigate to the
Access Control>API Keyspage. - Click the
Add API Keybutton. - Fill in the
Name,Description, and select theExpirationof the API key. - Select the
Typeof the API key:
- Auto-generated: GPUStack generates the API key for you.
- Custom: Provide your own key value in the
Keyfield. This field is required when choosing Custom.
- In the
Access Permissionssection, select the permissions for the API key:
- Platform Management: Grants access to platform management endpoints (users, models, workers, etc.).
- Model Access: Grants access to inference APIs. When selected, choose either
All modelsorAllowed models, and if choosingAllowed models, select which models this API key can access from the list.
If no permission is selected, the API key has no access permissions. 6. Click the Save button. 7. Copy and store the key somewhere safe, then click the Done button.
Note
The full API key value is shown only once upon creation; afterwards only a masked value is displayed. Custom keys are the exception — you already know their value.
Edit Access Permissions
- Navigate to the
Access Control>API Keyspage. - Find the API key you want to edit.
- Click the
Editbutton in theOperationscolumn. - Update the
Descriptionif needed. - In the
Access Permissionssection, adjust the selected permissions:
- Platform Management: Grants access to platform management endpoints (users, models, workers, etc.).
- Model Access: Grants access to inference APIs. When selected, choose either
All modelsorAllowed models, and if choosingAllowed models, select which models this API key can access from the list.
- Click the
Savebutton.
Note
Changes will take effect within one minute.
Delete API Key
- Navigate to the
Access Control>API Keyspage. - Find the API key you want to delete.
- Click the
Deletebutton in theOperationscolumn. - Confirm the deletion.
Use API Key
GPUStack supports using the API key as a bearer token. The following is an example using curl: