Billing Guide
This guide explains how billing works for the Serika.dev Customer API, including pricing, usage calculation, and account management.
Billing Models
The Serika.dev Customer API offers two types of accounts:
Free Accounts: Limited access to models and features with usage caps.
Accounts with Billing: Full access to all models and features with usage-based billing.
Setting Up Billing
To set up billing for your API usage:
Log in to your Serika.dev Developer Dashboard.
Navigate to the Billing section.
Click Set Up Billing.
Follow the prompts to enter your payment information.
Once billing is set up, your API keys will automatically have access to premium features.
Usage Metering
Text Generation
Text generation is metered based on the number of tokens used. A token is approximately 4 characters or 0.75 words in English.
Usage is calculated as the sum of:
Input tokens: The messages you send in your request.
Output tokens: The completions generated by the API.
Image Generation
Image generation is billed at a fixed rate per image, regardless of prompt length.
Viewing Your Usage
To view your API usage:
Log in to your Developer Dashboard.
Click on API Usage.
You can view usage statistics by time period, API key, and endpoint.
Pricing
Free Tier
No free API tier; only limited character information is available without billing.
Payment and Billing Cycles
Billing is handled securely through Stripe.
You are billed monthly for your actual usage.
Invoices are generated on the 1st of each month for the previous month’s usage.
You can view your invoice history in the Billing section.
Managing Your Billing
Setting Usage Limits
To avoid unexpected charges, you can set usage limits:
Navigate to the Billing section in the dashboard.
Click Usage Limits.
Set your desired monthly spending limit.
When your usage reaches this limit, API requests will be rejected until the next billing cycle or until you increase the limit.