Documentation/API Credits

API Credits

API Credits

MeeDoo uses a credit-based system for API usage. Every LLM call costs credits based on the model used and the number of tokens processed. Your credit balance is deducted in real-time.

How Credits Work

  • Each API call consumes credits proportional to the model and token count
  • Credits are deducted immediately after each request completes
  • If your balance reaches zero, API calls will return a 402 Payment Required error

Checking Your Balance

Use GET /api/v1/usage/credits to check your current balance at any time.

Purchasing Credit Packs

PackPriceCredits Included
Starter€1010,000
Developer€5055,000
Team€200250,000

Pricing Per 1K Tokens

ModelInput / 1K tokensOutput / 1K tokens
MeeDoo€0.0001€0.0001
MeeDoo Pro€0.0015€0.0060
MeeDoo Max€0.0050€0.0150
MeeDoo Ultimate€0.0150€0.0500

Auto-Recharge

Enable auto-recharge to automatically purchase a credit pack when your balance falls below a configurable threshold. This ensures uninterrupted API access.

GET /api/v1/usage/credits

Check Credit Balance

Retrieve your current API credit balance and usage summary.

GET /api/v1/stripe/credit-packs

List Credit Packs

List all available credit packs for purchase.

POST /api/v1/stripe/checkout

Purchase Credits

Initiate a Stripe checkout session to purchase a credit pack.

Parameters

NameTypeReqDescriptionDefault
pack_idstringYesID of the credit pack to purchase—
typestringYesType of purchase (must be "credits")credits

Response Examples

Credit Balance (200)
{
  "credit_balance": 319.49,
  "token_balance": 111795365
}

Code Examples

Check Credit Balance
curl https://api.meedoo.co/api/v1/usage/credits \
  -H "Authorization: Bearer $API_KEY"
Purchase Credits
curl -X POST https://api.meedoo.co/api/v1/stripe/checkout \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "pack_id": "pack_developer",
    "type": "credits"
  }'
List Credit Packs
import requests
response = requests.get("https://api.meedoo.co/api/api/v1/stripe/credit-packs",
    headers={"Authorization": "Bearer YOUR_API_KEY"})
for pack in response.json():
    print(f"{pack[\"name\"]}: {pack[\"price\"]}")