Base URL
Authentication
All requests require two headers:| Header | Description |
|---|---|
x-api-key | Your ZeroGPU API key (zgpu-...) |
x-project-id | Your project identifier (UUID) |
content-type | Must be application/json |
Available endpoints
Responses
POST /v1/responses — Send input to an AI model and receive a response.Available models
| Model | Use case |
|---|---|
zlm-v1-summary-cloud | Text summarization |
zlm-v1-iab-classify-cloud | IAB content classification |
model field of your request.
Error codes
| Status | Meaning |
|---|---|
200 | Success |
400 | Bad request — check your request body |
401 | Unauthorized — invalid or missing API key |
403 | Forbidden — invalid project ID or insufficient permissions |
420 | Input exceeds the model’s token limit — see Responses |
500 | Internal server error — retry with exponential backoff |

