POST /api/keywords

Extract Keywords

Extract important keywords, key phrases, and topics from text. Useful for tagging, indexing, and content discovery.

$0.02 per request

> REQUEST

POST /api/keywords

{
  "text": "Machine learning is a subset of artificial intelligence that focuses on algorithms...",
  "options": {
    "limit": 8,
    "includePhrases": true
  }
}

> RESPONSE

{
  "result": {
    "keywords": ["machine learning", "algorithms", "data", "AI", "artificial intelligence"],
    "key_phrases": ["subset of artificial intelligence", "learn from data"],
    "topics": ["Machine Learning", "Artificial Intelligence", "Computer Science"]
  },
  "tokens_used": { "prompt_tokens": 98, "completion_tokens": 52, "total_tokens": 150 }
}