AI credit balance and cost estimate

Current spendable AI Credits for the team, the price per credit, and an optional cost estimate.

Credits are the same AI Credits balance used by Sure Send's built-in AI (call summaries, editor AI, and similar), at $0.0025 per credit. Grading is priced per token at a higher rate than the built-in AI features and rounded up to whole credits; use the estimate below to see what a grade costs before you run it.

Pass characters (and optionally rubricCharacters) to estimate a grade from input size, or pass objectType and id to estimate from a stored call, email, text, or note. credits is the expected charge (completion estimated at 1,500 tokens, thinking included). maxCredits is the most a grade of this size can charge: the prompt at one token per character and the 4,096-token output cap. The grade endpoint charges actual token usage, and returns 402 unless the balance covers maxCredits.

Scope. Widget and OAuth tokens need use_ai. Reading a stored record also needs that record's read scope (read_calls, read_emails, read_sms, or read_notes). Manual API tokens with no scope list keep full partner access.

Rate limit. Same as the rest of the Partner API: per team, not per token — 300 requests/minute by default, or 600 with a registered System ID. Every API token on the team shares the allowance.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
enum

call, email, text, note, or demo. Required when id is set. Defaults to demo for a character estimate.

Allowed:
uuid

UUID of a call, email, text, or note to measure. The estimate uses that record's text.

integer
0 to 200000

Content size in characters when you are not sending an id. Tokens are estimated at 4 characters per token, the same approximation built-in call analysis uses.

integer
0 to 20000

Rubric size in characters. Ignored when rubric is also sent.

string

Raw text to measure instead of characters.

string

Rubric text to measure, as a string. Sent on its own, it estimates the rubric with no content. Request URLs are limited to about 8 KB, so send rubricCharacters for a rubric longer than a few thousand characters.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json