Loading...
Loading...
Compare original and translation side by side
STOP - Before providing ANY response about Gemini token usage:
- INVOKE
skillgemini-cli-docs- QUERY for the specific token or pricing topic
- BASE all responses EXCLUSIVELY on official documentation loaded
暂停 - 在提供任何关于Gemini Token使用的响应之前:
- 调用
技能gemini-cli-docs- 查询特定的Token或定价相关主题
- 完全基于加载的官方文档生成所有响应
| Auth Method | Caching Available |
|---|---|
| API key (Gemini API) | YES |
| Vertex AI | YES |
| OAuth (personal/enterprise) | NO |
| 认证方式 | 是否支持缓存 |
|---|---|
| API key (Gemini API) | 是 |
| Vertex AI | 是 |
| OAuth(个人/企业) | 否 |
/stats/statsresult=$(gemini "query" --output-format json)
total=$(echo "$result" | jq '.stats.models | to_entries | map(.value.tokens.total) | add // 0')
cached=$(echo "$result" | jq '.stats.models | to_entries | map(.value.tokens.cached) | add // 0')
billable=$((total - cached))
savings=$((cached * 100 / total))
echo "Total: $total tokens"
echo "Cached: $cached tokens ($savings% savings)"
echo "Billable: $billable tokens"result=$(gemini "query" --output-format json)
total=$(echo "$result" | jq '.stats.models | to_entries | map(.value.tokens.total) | add // 0')
cached=$(echo "$result" | jq '.stats.models | to_entries | map(.value.tokens.cached) | add // 0')
billable=$((total - cached))
savings=$((cached * 100 / total))
echo "Total: $total tokens"
echo "Cached: $cached tokens ($savings% savings)"
echo "Billable: $billable tokens"| Model | Context Window | Speed | Cost | Quality |
|---|---|---|---|---|
| gemini-2.5-flash | Large | Fast | Lower | Good |
| gemini-2.5-pro | Very large | Slower | Higher | Best |
| 模型 | 上下文窗口 | 速度 | 成本 | 质量 |
|---|---|---|---|---|
| gemini-2.5-flash | 大 | 快 | 较低 | 良好 |
| gemini-2.5-pro | 极大 | 慢 | 较高 | 最佳 |
-m gemini-2.5-flash-m gemini-2.5-pro-m gemini-2.5-flash-m gemini-2.5-proundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedresult=$(gemini "query" --output-format json)result=$(gemini "query" --output-format json)undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined| Topic | Query Keywords |
|---|---|
| Caching | |
| Model selection | |
| Costs | |
| Output control | |
| 主题 | 查询关键词 |
|---|---|
| 缓存 | |
| 模型选择 | |
| 成本 | |
| 输出控制 | |
gemini-cli-docsgemini-cli-docs