跳到正文
OpenRouter Blog·· 2025-04-18AI 评分22

OpenRouter 更新:图表筛选、聊天室 SVG 预览与流式用量计费

Smarter Charts, Inline SVGs, and Live Usage Accounting

AI 导读

OpenRouter 推出三项体验更新:Activity 页面图表可随表格筛选条件(模型、API key、提供商)联动更新;聊天室支持 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.

📚 Learn More

Quickstart guide: https://openrouter.ai/docs/quickstart
Live demo and updates: https://x.com/OpenRouterAI/status/1913345350397460758

来源:OpenRouter Blog · openrouter.ai