GPUStack supports authentication using API keys. Each GPUStack user can generate and manage their own API keys.
API Keys page.Add API Key button.Name, Description, and select the Expiration of the API key.Save button.Done button.!!! note
Please note that you can only see the generated API key once upon creation.
API Keys page.Edit button in the Operations column.Save button.!!! note
Changes will take effect within one minute.
API Keys page.Delete button in the Operations column.GPUStack supports using the API key as a bearer token. The following is an example using curl:
export GPUSTACK_API_KEY=your_api_key
curl http://your_gpustack_server_url/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $GPUSTACK_API_KEY" \
-d '{
"model": "qwen3",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
],
"stream": true
}'