Skip to main content

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.

Three things from your dashboard, one API call, done.

1. Grab your credentials

Log into the ZeroGPU dashboard. Copy these three values:
CredentialWhere to find it
API KeyDashboard → API Keys
Project IDDashboard → Project Settings
ModelDashboard → 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.
Some models expect input as a JSON string instead of a message array. If you see 400 with invalid_type on input, switch shapes — see Responses.

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

API Reference

Full request/response spec for /v1/responses.

SDK Examples

Error handling, env vars, and production patterns.