API Reference
GET /balance
Returns your remaining quota for the current billing period and your account status.
Request
curl https://dish-embed.latimal.com/balance -H "X-API-Key: YOUR_KEY"No request body needed.
Response
| Field | Type | Description |
|---|---|---|
customer | string | Your account identifier |
credits_remaining | float | Remaining quota for the current billing period |
unlimited | bool | True if your account has unlimited access (no metering) |
{
"customer": "acme-coffee",
"credits_remaining": 4820.5,
"unlimited": false
}Availability
Free to call on every plan. This request is not metered and does not count against your monthly quota.
Notes
- When your quota is exhausted (
credits_remainingreaches zero), API calls return 402 (Payment Required), with no overage billing. - Accounts with
unlimited: trueare not metered and will always show a high balance. - Check this endpoint periodically or after large batch operations to monitor usage.
GET /health
GET /health checks server status and returns the active embedding model version. Free and unauthenticated. The account operator key returns an extended diagnostic view.
Integration Guides
End-to-end dish-embed integration guides with working Python code. Covers menu dedup, semantic search, cart upsell, and menu health monitoring.