Emotion Server API Logo

Emotion Server API

Professional Emotion Detection for Business and Enterprise

Key Features

The Emotion Server API is designed for developers and businesses seeking reliable emotion detection:

Supported Emotions

The Emotion Server API detects text sentiment across 14 categories, each represented with its emoji:

๐Ÿ˜ก Anger
๐Ÿ˜• Confusion
๐Ÿงš Desire
๐Ÿคข Disgust
๐Ÿ˜จ Fear
๐Ÿ˜” Guilt
๐Ÿ˜Š Happiness
โค๏ธ Love
๐Ÿ˜ Neutral
๐Ÿ˜ข Sadness
๐Ÿคจ Sarcasm
๐Ÿ˜ณ Shame
๐Ÿ˜ฒ Surprise

API Usage

Deploy via Docker:

# For Raspberry Pi (32-bit ARM)
docker pull stevef1uk/emotion-emotion-service:arm

# For Apple Silicon (M1/M2/M3)
docker pull stevef1uk/emotion-service:arm64

# For standard x86_64 (Linux/Windows)
docker pull stevef1uk/emotion-service:amd64

# Run the container
docker run -d -p 8000:8000 stevef1uk/emotion-service:arm64

Send a POST request (fast path):

curl -s -X POST http://localhost:8000/predict \
     -H "Content-Type: application/json" \
     -d '{"text": "Iโ€™m so happy to see you!"}'

Response (fastest โ€“ confidence fixed at 1.0):
{
  "text": "Iโ€™m so happy to see you!",
  "emotion": "happiness",
  "confidence": 1,
  "emoji": "๐Ÿ˜Š"
}

Optional: request accurate confidence (slower):

curl -s -X POST 'http://localhost:8000/predict?accurate=1' \
  -H 'Content-Type: application/json' \
  -d '{"text":"I am so happy today!"}' | jq .

# Default (fast path): /predict โ†’ confidence fixed at 1.0 (fastest)
# Accurate (slower): /predict?accurate=1 โ†’ confidence is the model's real probability

Detailed endpoint (public URL):

curl -s -X POST https://stevef1uk--emotion-server-serve.modal.run/predict_detailed \
     -H "Content-Type: application/json" \
     -d '{"text":"Im indifferent to the whole thing"}'

Response:
{
  "predicted_emotion": "neutral",
  "confidence": 0.75,
  "all_emotions": {
    "anger": 0.00,
    "confusion": 0.15,
    "desire": 0.00,
    "disgust": 0.06,
    "fear": 0.00,
    "guilt": 0.00,
    "happiness": 0.01,
    "love": 0.00,
    "neutral": 0.75,
    "sadness": 0.02,
    "sarcasm": 0.00,
    "shame": 0.01,
    "surprise": 0.00
  }
}

For a complete Docker Compose setup with a Gradio UI and MCP server as well as a tool to test the service against your input files, see the companion repo: emotion-service-demo on GitHub.

Demo Application: Watch the video below to see the Emotion Service API in action with a real-time dashboard showing emotion analysis of synthetic social media data:

Watch the video

Performance Benchmarks

Accuracy and speed compared across models (226 samples):

ModelAccuracySamplesTime (s)
Emotion Server API0.60182265.33
Hugging Face0.39382260.48
OpenAI0.3894226154.51

These results highlight Emotion Server APIโ€™s balance of accuracy and efficiency compared to alternatives.

Business Case

The Emotion Server API delivers secure, fast, and cost-effective emotion detection for enterprises and startups. Unlike cloud-only solutions, it runs locally within your environment, ensuring sensitive data is never exposed externally. With licensing options for indie developers, startups, and large enterprises, Emotion Server API is flexible and ready to scale with your needs.

Licensing Options

Developer / Indie

โ‚ฌ99 / instance / year

For hobbyists and Raspberry Pi projects. Annual renewal required.

Startup / Business

โ‚ฌ499 / 5 instances / year

Ideal for startups and small commercial deployments.

Enterprise

โ‚ฌ2,499 / year

Unlimited instances with access to critical updates and fixes.

OEM Licence

Contact us

Custom licensing for OEM integrations. Terms available upon request.

Software Licence

โ‚ฌ10,000 one-off

Permanent, royalty-free license with source code access.

Note: All prices are subject to French TVA at the applicable rate (currently 20%).

๐Ÿ“Œ For licensing questions or bulk purchases, please contact: [email protected]
French VAT Number: FR05902395201

Frequently Asked Questions

Contact & Support

For licensing inquiries, support, or technical assistance, please email [email protected] more details on GitHub.

Follow us on Social Media

Stay updated with the latest news and updates:

@ApiEmotion on X