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

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.

🖼️ Chatroom SVG Previews

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

📊 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