Skip to main content
Classify sentiment in text — customer reviews, social media posts, support tickets — using structured output that returns typed JSON with scores and categories.

Single text analysis


Batch analysis — customer reviews


Next.js API route


Social media monitoring


Tips

  • Temperature 0.1 gives the most consistent classifications.
  • response_format: json_object forces JSON output from the API.
  • Vercel AI SDK Output.object gives typed results with Zod validation.
  • DeepSeek-V3 handles nuanced sentiment — it catches mixed reviews and sarcasm.

Next steps