Sentiment Analysis API with Pay-Per-Request Pricing (No Subscription)

Updated · 6 min read

The Sentiment API is a sentiment analysis API with pay-per-request pricing and no subscription: $0.00089 for each message of up to 256 characters, taken from prepaid credit. There is no monthly fee, no plan to choose and no minimum use. Each request returns scores for 28 emotions and a valence score from -1 to 1, in Arabic, English, French, Spanish, German and Turkish.

This page explains how the billing works, what it costs at different volumes, and when a subscription or a cloud provider is the better choice. The live numbers are on the pricing page.

Three ways sentiment APIs bill

Subscription planCloud provider, meteredPrepaid, per request
You payA fixed fee each month for a quotaFor units used, on the monthly cloud billFor each request, from credit you bought
When you use nothingYou still pay the feeYou pay nothingYou pay nothing
To startChoose a plan, enter a cardA cloud account with billing enabledSign in, top up once
Cost is knownUp to the quota; overage differsAfter the month endsBefore each request
Good forSteady, predictable volumeTeams already on that cloudLow or irregular volume, prototypes, agents

Amazon Comprehend, Google Cloud Natural Language and Azure AI Language are metered: you pay for units of text, and you need an account with that cloud. Many smaller API vendors sell monthly plans. The Sentiment API uses the third model. A comparison with the three clouds is in AWS Comprehend alternatives.

How pay per request works here

  1. Sign in with GitHub or Google. An account is free.
  2. Top up from $10 by card, Apple Pay or Google Pay. Polar is the merchant of record and handles tax. The credit is valid for one year.
  3. Create an API key on the dashboard.
  4. Send requests. Each one is debited from the balance at the price shown in the response.

The price follows cost: inference runs on serverless GPUs, the real GPU time for each message is measured, and a fixed margin is added. The current price is public at GET https://emotions.togoder.click/api/pricing, with no key.

What it costs at your volume

These numbers are for messages of up to 256 characters, which covers most reviews, chat messages, tweets and survey answers.

MessagesCost
1,000$0.89
10,000$8.90
100,000$89
1,000,000$890

A longer message of 1,024 characters costs approximately $0.0036. For long documents, divide the text into sentences and send them as a batch: this costs less for each text and gives one result for each sentence.

One request, start to finish

curl -X POST https://emotions.togoder.click/api/analyze \
  -H "Authorization: Bearer sent_..." \
  -H "Content-Type: application/json" \
  -d '{"text": "Wait, how does this even work? I am confused."}'

# 202 {"job_id": "4275bbf5-...", "status": "queued", "cost_atomic": 890}

curl https://emotions.togoder.click/api/jobs/4275bbf5-... -H "Authorization: Bearer sent_..."

# 200 {"status": "succeeded", "result": {"top_emotion": "confusion", "top_score": 0.9673, "valence": -0.0841, "predictions": [...]}}

The response to the first call contains the cost of that request. For volume, POST /api/analyze/batch takes up to 10,000 texts and makes one debit for all of them. Complete Python and JavaScript clients are in the API docs.

What you are never charged for

  • A request the service cannot accept. If the queue is full, the request is refused with 503 no_capacity before any debit.
  • A job that does not run. If an accepted job cannot reach a GPU in time, it is cancelled and its cost returns to your balance.
  • The same message twice. Send a client_message_id and a retry returns the first job without a second debit.
  • A batch you cannot pay for. The balance is checked for the full batch before any job is made.

When pay per request is the wrong choice

  • You need only positive or negative, and you are already on a cloud. The sentiment API of that cloud is inexpensive for short texts and has a free monthly allowance.
  • You have high, steady volume and a team that runs GPUs. An open model that you host is the cheapest for each message. See sentiment analysis in Python.
  • You need an answer in the same HTTP call. Jobs here are asynchronous: you submit, then poll.
  • You need a language outside the six supported ones.

Pay per request fits best when volume is low or irregular, when you want to try the output before you commit, or when you need named emotions and not only polarity. The emotion detection API comparison shows what each option returns.

Frequently asked questions

Is there a sentiment analysis API with pay-per-request pricing and no subscription?

Yes. The Sentiment API charges $0.00089 per message of up to 256 characters, taken from prepaid credit. There is no monthly fee, no plan and no minimum use. You top up from $10 by card, and each request shows its price before it is charged.

What is the minimum I must pay to start?

The smallest top-up is $10. At $0.00089 per short message, that pays for approximately 11,235 messages. The credit is valid for one year.

Does unused credit expire, and can I get it back?

Credit is valid for one year from the top-up and is used oldest first. Credit that you have not spent and that has not expired is refundable on request, to the original payment method.

Is there a free tier?

No. Google Cloud, AWS and Azure have free monthly allowances for their sentiment APIs and this API does not. Its advantage is no account with a cloud provider, no subscription and 28 emotion scores for each message.

Do long texts cost more?

Yes. The base price includes 256 characters. Each 1,000 characters above that adds $0.00348. Texts above 10,000 characters are rejected, and the model reads the first 512 tokens.

Can a script or an AI agent pay for itself?

A script or agent uses an API key and spends the prepaid credit of the account. It cannot buy credit: a person must top up the account by card. A request without enough credit gets HTTP 402 with the code insufficient_balance.

Try it on your own text

Sentiment is a pay-per-request API that returns all 28 GoEmotions scores plus a valence score for text in Arabic, English, French, Spanish, German and Turkish. No subscription — pay a fraction of a cent per message from prepaid credit.

Related guides