NLP Tools - Toxicity, Sentiment, NER, PII, Language Detection

AI 与智能体

by fasuizu-br

提供 toxicity、sentiment、NER、PII detection 与 language ID 等 NLP 工具,基于 CPU 优化的 ONNX。

什么是 NLP Tools - Toxicity, Sentiment, NER, PII, Language Detection

提供 toxicity、sentiment、NER、PII detection 与 language ID 等 NLP 工具,基于 CPU 优化的 ONNX。

README

Brainiall AI APIs

API Status License: MIT MCP Servers Azure Marketplace Models

Production AI APIs for speech, text, image, and LLM inference. Available as REST endpoints and MCP servers for AI agents.

Base URL: https://apim-ai-apis.azure-api.net Full API reference for LLMs: llms-full.txt | llms.txt

Products

ProductEndpointsLatencyNotes
Pronunciation Assessment/v1/pronunciation/assess/base64<500ms17MB ONNX, per-phoneme scoring (39 ARPAbet)
Text-to-Speech/v1/tts/synthesize<1s12 voices (American + British), 24kHz WAV
Speech-to-Text/v1/stt/transcribe/base64<500msCompact 17MB model, English, word timestamps
Whisper Pro/v1/whisper/transcribe/base64<3s99 languages, speaker diarization
NLP Suite/v1/nlp/{toxicity,sentiment,entities,pii,language}<50msCPU-only, ONNX, 5 endpoints
Image Processing/v1/image/{remove-background,upscale,restore-face}/base64<3sGPU (A10), BiRefNet + ESRGAN + GFPGAN
LLM Gateway/v1/chat/completionsvaries113+ models, OpenAI-compatible, streaming

Authentication

Include ONE of these headers in every request:

code
Ocp-Apim-Subscription-Key: YOUR_KEY
Authorization: Bearer YOUR_KEY
api-key: YOUR_KEY

Get API keys at the portal (GitHub sign-in, purchase credits, create key).

Quick Start

Python — LLM Gateway (OpenAI SDK)

python
from openai import OpenAI

client = OpenAI(
    base_url="https://apim-ai-apis.azure-api.net/v1",
    api_key="YOUR_KEY"
)

response = client.chat.completions.create(
    model="claude-sonnet",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Python — Pronunciation Assessment

python
import requests, base64

audio_b64 = base64.b64encode(open("audio.wav", "rb").read()).decode()
r = requests.post(
    "https://apim-ai-apis.azure-api.net/v1/pronunciation/assess/base64",
    headers={"Ocp-Apim-Subscription-Key": "YOUR_KEY"},
    json={"audio": audio_b64, "text": "Hello world", "format": "wav"}
)
print(r.json()["overallScore"])  # 0-100

Python — NLP Pipeline

python
import requests

headers = {"Ocp-Apim-Subscription-Key": "YOUR_KEY"}
base = "https://apim-ai-apis.azure-api.net/v1/nlp"

# Sentiment
r = requests.post(f"{base}/sentiment", headers=headers, json={"text": "I love this!"})
print(r.json())  # {"label": "positive", "score": 0.9987}

# PII detection with redaction
r = requests.post(f"{base}/pii", headers=headers, json={"text": "Email john@acme.com", "redact": True})
print(r.json()["redacted_text"])  # "Email [EMAIL]"

Node.js — LLM Gateway

javascript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://apim-ai-apis.azure-api.net/v1",
  apiKey: "YOUR_KEY"
});

const res = await client.chat.completions.create({
  model: "claude-sonnet",
  messages: [{ role: "user", content: "Hello!" }]
});
console.log(res.choices[0].message.content);

curl — Image Background Removal

bash
curl -X POST https://apim-ai-apis.azure-api.net/v1/image/remove-background/base64 \
  -H "Ocp-Apim-Subscription-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"image\": \"$(base64 -i photo.jpg)\"}"

LLM Gateway — Popular Models

ModelAliasPrice ($/MTok in/out)
Claude Opus 4.6claude-opus$5 / $25
Claude Sonnet 4.6claude-sonnet$3 / $15
Claude Haiku 4.5claude-haiku$1 / $5
DeepSeek R1deepseek-r1$1.35 / $5.40
DeepSeek V3deepseek-v3$0.27 / $1.10
Llama 3.3 70Bllama-3.3-70b$0.72 / $0.72
Amazon Nova Pronova-pro$0.80 / $3.20
Amazon Nova Micronova-micro$0.035 / $0.14
Mistral Large 3mistral-large-3$2 / $6
Qwen3 32Bqwen3-32b$0.35 / $0.35

Full list: GET /v1/models (113+ models from 17 providers).

Supports: streaming SSE, tool calling, structured output (json_object/json_schema), extended thinking.

Works with: OpenAI SDK, LiteLLM, LangChain, Cline, Cursor, Aider, Continue, SillyTavern, Open WebUI.

MCP Servers (for AI Agents)

3 MCP servers with 20 tools total. Streamable HTTP transport.

ServerURLTools
Speech AIhttps://apim-ai-apis.azure-api.net/mcp/pronunciation/mcp10 tools + 8 resources + 3 prompts
NLP Toolshttps://apim-ai-apis.azure-api.net/mcp/nlp/mcp6 tools + 3 resources + 3 prompts
Image Toolshttps://apim-ai-apis.azure-api.net/mcp/image/mcp4 tools + 3 resources + 2 prompts

MCP Configuration (Claude Desktop / Cursor / Cline)

json
{
  "mcpServers": {
    "brainiall-speech": {
      "url": "https://apim-ai-apis.azure-api.net/mcp/pronunciation/mcp",
      "headers": { "Ocp-Apim-Subscription-Key": "YOUR_KEY" }
    },
    "brainiall-nlp": {
      "url": "https://apim-ai-apis.azure-api.net/mcp/nlp/mcp",
      "headers": { "Ocp-Apim-Subscription-Key": "YOUR_KEY" }
    },
    "brainiall-image": {
      "url": "https://apim-ai-apis.azure-api.net/mcp/image/mcp",
      "headers": { "Ocp-Apim-Subscription-Key": "YOUR_KEY" }
    }
  }
}

Also available on: Smithery (score 95/100) | MCPize | Apify ($0.02/call) | MCP Registry

Examples

FileDescription
python/basic_usage.pySpeech APIs — assess, transcribe, synthesize
python/pronunciation_tutor.pyInteractive pronunciation tutor
javascript/basic_usage.jsNode.js examples for speech APIs
curl/examples.shcurl commands for every endpoint
mcp/claude-desktop-config.jsonMCP config for Claude Desktop
mcp/cursor-config.jsonMCP config for Cursor IDE
llms-full.txtComplete API reference for LLM consumption

Pricing

ProductPriceUnit
Pronunciation$0.02per call
TTS$0.01-0.03per 1K chars
STT (compact)$0.01per request
Whisper Pro$0.02per minute
NLP (any)$0.001-0.002per call
Image (any)$0.003-0.005per image
LLM Gatewaycompetitive pricingper MTok

Credit packages: $5, $10, $25, $50, $100. Portal | Azure Marketplace (search "Brainiall").

License

MIT — Brainiall

常见问题

NLP Tools - Toxicity, Sentiment, NER, PII, Language Detection 是什么?

提供 toxicity、sentiment、NER、PII detection 与 language ID 等 NLP 工具,基于 CPU 优化的 ONNX。

相关 Skills

Claude接口

by anthropics

Universal
热门

面向接入 Claude API、Anthropic SDK 或 Agent SDK 的开发场景,自动识别项目语言并给出对应示例与默认配置,快速搭建 LLM 应用。

想把Claude能力接进应用或智能体,用claude-api上手快、兼容Anthropic与Agent SDK,集成路径清晰又省心

AI 与智能体
未扫描114.1k

RAG架构师

by alirezarezvani

Universal
热门

聚焦生产级RAG系统设计与优化,覆盖文档切块、检索链路、索引构建、召回评估等关键环节,适合搭建可扩展、高准确率的知识库问答与检索增强应用。

面向RAG落地,把知识库、向量检索和生成链路系统串联起来,做架构设计时更清晰,也更少踩坑。

AI 与智能体
未扫描10.2k

计算机视觉

by alirezarezvani

Universal
热门

聚焦目标检测、图像分割与视觉系统落地,覆盖 YOLO、DETR、Mask R-CNN、SAM 等方案,适合定制数据集训练、推理优化及 ONNX/TensorRT 部署。

把目标检测、图像分割到推理部署串成完整工程链路,主流框架与 YOLO、DETR、SAM 等方案都覆盖,落地视觉 AI 会省心很多。

AI 与智能体
未扫描10.2k

相关 MCP Server

顺序思维

编辑精选

by Anthropic

热门

Sequential Thinking 是让 AI 通过动态思维链解决复杂问题的参考服务器。

这个服务器展示了如何让 Claude 像人类一样逐步推理,适合开发者学习 MCP 的思维链实现。但注意它只是个参考示例,别指望直接用在生产环境里。

AI 与智能体
83.4k

知识图谱记忆

编辑精选

by Anthropic

热门

Memory 是一个基于本地知识图谱的持久化记忆系统,让 AI 记住长期上下文。

帮 AI 和智能体补上“记不住”的短板,用本地知识图谱沉淀长期上下文,连续对话更聪明,数据也更可控。

AI 与智能体
83.4k

PraisonAI

编辑精选

by mervinpraison

热门

PraisonAI 是一个支持自反思和多 LLM 的低代码 AI 智能体框架。

如果你需要快速搭建一个能 24/7 运行的 AI 智能体团队来处理复杂任务(比如自动研究或代码生成),PraisonAI 的低代码设计和多平台集成(如 Telegram)让它上手极快。但作为非官方项目,它的生态成熟度可能不如 LangChain 等主流框架,适合愿意尝鲜的开发者。

AI 与智能体
6.8k

评论