Get credits
get_creditsThe organisation's credit balance, credits reserved by runs in progress, what is available, the rate (credits per minute of video), and top-up links to hand to the user when the balance is short.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_up | Yes | ||
| balance | Yes | Credits on the account. | |
| available | Yes | balance minus in_flight, never below 0. | |
| in_flight | Yes | Credits reserved by runs in progress. | |
| credits_per_video_minute | Yes | Rate with a Standard voice. | |
| default_voice_credits_per_video_minute | Yes | Rate with the Studio voice projects use unless another is chosen; use this for estimates. |