Three things from your dashboard, one API call, done.
1. Grab your credentials
Log into the ZeroGPU dashboard. Copy these three values:
| Credential | Where to find it |
|---|
| API Key | Dashboard → API Keys |
| Project ID | Dashboard → Project Settings |
| Model | Dashboard → Model selector |
2. Send a request
curl --location 'https://api.zerogpu.ai/v1/responses' \
--header 'content-type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-project-id: YOUR_PROJECT_ID' \
--data '{
"model": "YOUR_MODEL",
"input": [
{
"role": "user",
"content": "Your input text here..."
}
],
"text": {
"format": {
"type": "text"
}
}
}'
Store your API key in environment variables. Never commit it to version control or expose it in client-side code.
3. Verify it worked
Check the dashboard:
- Logs — your request appears with model, status, and latency
- Usage — token counts update in real time
If you got a 401, your API key is wrong. 403 means bad project ID. See Authentication for details.
Next steps