跳到正文
OpenRouter:Announcements· OpenRouter·· 2025-04-18AI 评分48

OpenRouter 推出更智能图表、内联 SVG 和实时用量计费

Smarter Charts, Inline SVGs, and Live Usage Accounting

AI 导读

OpenRouter 上线了更智能的分析图表、内联 SVG 预览以及实时用量计费功能,用户可即时查看成本。

正文 · 原文

Quality-of-Life Updates

We’ve rolled out three quality-of-life updates to improve transparency and usability across the board.

🔹 Activity Chart Filtering

You can now filter the chart on the Activity page simply by applying filters to the table.
Whether you’re narrowing by model, API key, or provider, the chart updates to match—making trends and spikes easier to analyze.
See here: https://openrouter.ai/activity

🖼️ Chatroom SVG Previews

SVG files now preview inline in the chatroom, so you can instantly review diagrams, icons, and vector designs without downloading anything.
Chatroom SVG Previews

📊 In-Stream Usage Accounting

Developers can now receive real-time token and cost data directly in each streamed response.
Just set "usage": { "include": true } in your request and you’ll get details like:

"usage": {
  "completion_tokens": 2000,
  "completion_tokens_details": { "reasoning_tokens": 100 },
  "cost": 0.2,
  "prompt_tokens": 194,
  "prompt_tokens_details": { "cached_tokens": 20 },
  "total_tokens": 2194
}

No additional API calls required.

来源:OpenRouter:Announcements · openrouter.ai