/ml/analyze endpoint.
Available Enrichment Types
Sentiment Analysis
Classify text as positive, negative, or neutral.Topic Extraction
Identify main topics discussed in the text.Custom Topic Categories
Define your own topic categories for classification:Intent Detection
Identify the user’s intent behind the text.purchase_intent- User wants to buy somethingcomplaint- User is expressing dissatisfactionquestion- User is asking for informationpraise- User is giving positive feedbacksuggestion- User is making a recommendation
Keyword Extraction
Extract important keywords and phrases.Combining Enrichments
Request multiple enrichment types in a single call:LLM Provider Selection
Choose which AI model to use for enrichment:gemini-2.0-flash(default) - Fast, cost-effectivegemini-1.5-pro- More accurate, higher cost
Direct ML Analysis
Use the/ml/analyze endpoint for standalone text analysis:
Best Practices
Batch your texts
The ML analyze endpoint supports up to 25 texts per request
Use custom categories
For better topic classification in your domain
Cache results
ML analysis results are deterministic for the same input
Choose appropriate enrichments
Only request what you need to save credits