estimate_cost
Calculate the token cost of sending a local video to Gemini before upload, using ffprobe duration or file size fallback to avoid surprises.
Instructions
估算把某个本地视频交给 Gemini 识别大概要花多少输入 token,让你发大视频前心里有数。
优先用 ffprobe 读真实时长;读不到(没装 ffprobe / 格式怪)则按文件大小粗估并注明。
Args: path: 本地视频文件路径。
Returns: 一段中文预估说明(文件大小、时长、标清/低清 token 估算、上传通道)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |