NLP API Tutorial

A developer-focused guide to the WesenAI NLP API.

This tutorial provides a technically accurate guide to the WesenAI NLP API.

API Reference

  • Base URL: https://nlp.api.wesen.ai
  • Authentication: Authorization: Bearer YOUR_API_KEY or X-API-Key: YOUR_API_KEY

Endpoints

Service Information

  • GET /v1: Get NLP service information.
  • GET /v1/health: Check NLP service health status.

Natural Language Processing

  • POST /v1/analyze: Perform comprehensive text analysis.
  • POST /v1/sentiment: Analyze the sentiment of a text.
  • POST /v1/entities: Extract named entities from a text.
  • POST /v1/summarize: Summarize a long text.
  • POST /v1/keywords: Extract keywords from a text.