HENTAICORD API
  • 👋Welcome
  • 🔐Obtain API Token
  • ⚠️Daily API Rate Limits
  • 🦙AI Chat Completion Tokens
  • API Endpoints
    • 🔞Retrieve NSFW media
    • 🔥Chat with our unfiltered LLM
  • 🤫Ask Truth or Dare (NSFW)!
  • 🤔Ask Never Have I Ever (NSFW)!
Powered by GitBook
On this page
  • Please note:
  • Usage Calculation
  • Checking Usage
  • No Tokens Remaining

Was this helpful?

AI Chat Completion Tokens

We run our own NSFW Erotic Roleplaying LLM server. Here's how you can use it yourself!

Please note:

  1. Daily API call allowances still count towards these AI endpoints.

  2. Unsuccessful responses will not count towards your token limit.

  3. Your AI tokens can go into the negatives.

Usage Calculation

Tokens are spent in line with how many tokens you require for your prompts. The formula is as follows:

AI Tokens Spent = Prompt Tokens + AI Response Tokens

Due to how we calculate your usage, your AI tokens can go into the negatives. This is because we do not know the token cost of your next prompt and we cannot check ahead of time before making the request to our LLM. Therefore, let's say you had 1000 AI tokens remaining, and your 'tokens spent' amount was 5500, your AI tokens will go down to -4,500. After this, you will not be able to use the endpoint until your top up your account. Your next purchase will cover the cost of your negative balance.

Checking Usage

You can check your usage the same way you do with API usage. Through our Discord bot. Simply use the command /developer usage and it will appear for you.

No Tokens Remaining

You will receive this response when you have used up all of your purchased tokens.

{
    code: 403,
    message: "Forbidden: Insufficient LLM tokens. Please purchase more here: https://upgrade.chat/hentaicord"
}

Last updated 28 days ago

Was this helpful?

🦙