token_usage
post/api/v1beta/token_usage/estimate
Request
- The document declares no server URL.
- Auth: bearer_auth (a scheme the document does not define)
Request body
Example request
{
"chat_previous_message_id": "00000000-0000-0000-0000-000000000000",
"chat_provider_id": "gpt-4o",
"existing_chat_id": "00000000-0000-0000-0000-000000000000",
"new_chat": {
"assistant_id": "00000000-0000-0000-0000-000000000000"
},
"new_message_content": "Hello, world!",
"previous_message_id": "00000000-0000-0000-0000-000000000000",
"system_prompt": "You are a concise legal assistant.",
"user_message": "Hello, world!",
"virtual_files": [
{
"content_type": "message/rfc822",
"filename": "preview.eml"
}
]
}Response
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info