Documentation Index
Fetch the complete documentation index at: https://docs.zerogpu.ai/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/chat/completions
Some models are invoked with a chat-completions style body (messages array) instead of the Responses input field. The dashboard and model catalog indicate which route applies.
Request headers
Same as Responses:x-api-key, x-project-id, content-type: application/json.
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model identifier from your dashboard |
messages | array | Yes | List of objects with role (system, user, or assistant) and string content |
metadata | object | No | Model-specific options (e.g. PII mask, usecase) when supported |
Example
pip install zerogpu-api). Source: zerogpu/SDK.
Response JSON shape depends on the model; handle errors the same way as API error codes.
