Billing & Usage
Understand pay-per-solve pricing, manage credits, and monitor your usage.
Pay-Per-Solve Pricing
Sematryx uses a simple pay-per-solve model. No monthly subscriptions required.
| Account | Solves | Cost | Private Learning |
|---|---|---|---|
| Free | 100/month | $0 | — |
| Pay-as-you-go | Unlimited | $0.01–$0.05/solve | Included |
Cost by Problem Complexity
Solve cost scales with the complexity of your optimization problem:
| Tier | Dimensions | Max Evaluations | Cost per Solve |
|---|---|---|---|
| Small | ≤ 10 | ≤ 1,000 | $0.01 |
| Medium | ≤ 50 | ≤ 5,000 | $0.03 |
| Large | ≤ 100 | ≤ 10,000 | $0.05 |
Credit Packs
5,000 Solves — $75
- •Effective rate: ~$0.015/solve (roughly 50% savings vs metered)
- •Credits never expire
- •Credits deducted automatically before metered billing
- •Purchase additional packs anytime — balances stack
Checking Your Usage
Monitor your usage programmatically via the SDK or API:
from sematryx import get_usage
# Get current billing period usage
usage = get_usage()
print(f"Solves this month: {usage['solves_this_month']}")
print(f"Cost this month: ${usage['cost_this_month_cents'] / 100:.2f}")
print(f"Credit balance: ${usage['credit_balance_cents'] / 100:.2f}")
print(f"Plan: {usage['plan']}")The response includes detailed usage breakdown:
{
"plan": "payg",
"solves_this_month": 847,
"cost_this_month_cents": 2541,
"credit_balance_cents": 4959,
"has_payment_method": true,
"free_tier_limit": 100,
"breakdown": {
"small": { "count": 500, "cost_cents": 500 },
"medium": { "count": 200, "cost_cents": 600 },
"large": { "count": 147, "cost_cents": 735 }
},
"private_learning": {
"enabled": true,
"accesses": 2340,
"storage_mb": 156
}
}Private Learning Store
Available to all pay-as-you-go users. Includes 2 GB storage and 5,000 operations/month. Metered at $0.50/1K operations and $0.50/GB storage overage.
from sematryx import PrivateLearningStore
store = PrivateLearningStore(api_key='your-api-key')
# Get storage details
storage = store.get_storage_info()
print(f"Used: {storage['used_mb']} MB")
print(f"Included: 2048 MB")
print(f"Utilization: {storage['utilization_percent']:.1f}%")
# List stored patterns by size
patterns = store.list_patterns(sort_by='size', limit=10)
for p in patterns:
print(f"{p['signature']}: {p['size_kb']} KB, {p['access_count']} accesses")Billing FAQ
How are credits deducted?
When you run a solve, the cost is first deducted from your credit balance. If credits are exhausted, the solve is billed to your payment method on file. If you have neither credits nor a payment method, you can only use the free tier.
When does my free tier reset?
Free tier usage (100 solves) resets on the 1st of each calendar month.
Do credits expire?
No. Prepaid credits never expire. You can use them at your own pace.
Can I set a spending cap?
Yes. In your account settings, you can set a maximum monthly spend for metered billing. Once reached, additional solves will be rejected until the next billing period.