Skip to main content
Use the zlm-v1-summary-cloud model to produce short summaries from longer text.

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": "zlm-v1-summary-cloud",
    "input": [
      {
        "role": "user",
        "content": "Your long text to summarize here..."
      }
    ],
    "text": {
      "format": { "type": "text" }
    }
  }'

Response

The response body includes the model output in the structure returned by the Responses API. Extract the summary text from the response and handle errors (e.g. 4xx/5xx) in your code.

Tips

  • Keep input length within the model’s limits; for very long documents, consider chunking and summarizing in steps.
  • Use Logs and Usage in the dashboard to debug and monitor usage.
For a runnable React app, see the Summarize demo in the cookbook.