Skip to main content
Use the zlm-v1-iab-classify-cloud model to classify content into IAB (Interactive Advertising Bureau) categories.

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-iab-classify-cloud",
    "input": [
      {
        "role": "user",
        "content": "Article or content to classify..."
      }
    ],
    "text": {
      "format": { "type": "text" }
    }
  }'

Response

The API returns the classification in the standard Responses API format. The model output is JSON with:
FieldDescription
audienceAudience segments (name, tier, score).
contentTaxonomy mappings, e.g. iab_1_0, iab_2_2 (IAB 1.0 and 2.2 codes with name and score).
topicsTopics with scores.
keywordsExtracted keywords.
user_intentIntent name, category (e.g. informational), and score.
Parse the output[].content[].text from the response body; that string is the JSON. For a runnable app that formats this output, see the IAB classification demo in the cookbook.

Tips

  • Best for single-document or single-snippet classification; for many items, call in a loop or use batch patterns.
  • Classification works best with a paragraph or more of content; very short text often yields generic categories.
  • Store API key and project ID in environment variables; see Security.