<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>weken.news — AI 成本與效能 RSS</title><description>AI API 成本實測、Token 優化、Vercel + Neon 部署效能比較。</description><link>https://weken.news/</link><language>zh-TW</language><item><title>Gemini 不出透明 PNG 怎麼辦？實測 N 次才搞懂的 AI 輸出三類分類法</title><link>https://weken.news/articles/gemini-transparent-png-three-class-diagnosis/</link><guid isPermaLink="true">https://weken.news/articles/gemini-transparent-png-three-class-diagnosis/</guid><description>Gemini 任何 model（含 Nano Banana / Gemini 2.5 flash image）都不會輸出 RGBA 真透明 PNG，輸出檔案是 PNG 容器但 alpha channel 永遠是 255（不透明）。我實測幾十次 prompt 變體全部失敗，最後改用 chroma key pipeline 解決：讓 Gemini 輸出純綠色背景的圖（這它能做），後製用 HSV + Floodfill 演算法把綠色去掉換成透明。</description><pubDate>Sat, 02 May 2026 00:00:00 GMT</pubDate><category>gemini</category><category>image-generation</category><category>prompt-engineering</category><category>chroma-key</category><category>ai-debug</category></item><item><title>客戶用 Claude Haiku 4.5 寫文章後台，每天 1 篇月費實測 NT$20（不是 NT$600）</title><link>https://weken.news/articles/claude-haiku-ai-backend-cost-real-test/</link><guid isPermaLink="true">https://weken.news/articles/claude-haiku-ai-backend-cost-real-test/</guid><description>Claude Pro 訂閱（NT$600/月）跟 Claude API 是不同產品。API 是按 token 計費的 pay-as-you-go，Haiku 4.5 定價 input $1/M、output $5/M tokens。實測 1000-1400 字繁中 AEO 文章一篇成本約 US$0.02（NT$0.65），每天寫 1 篇月費約 US$0.6（NT$20）。Pro 訂閱不會送 API 額度，兩個帳單分開。客戶用 AI 寫文章後台用 API 比訂 Pro 划算 30 倍。</description><pubDate>Sat, 25 Apr 2026 00:00:00 GMT</pubDate><category>claude haiku</category><category>anthropic api</category><category>ai 接案</category><category>成本估算</category><category>aeo</category></item><item><title>Gemini 2.5 API 突然壞掉：thinkingConfig 必須嵌在 generationConfig 內，Google 收緊 schema 後頂層被拒</title><link>https://weken.news/articles/gemini-thinking-config-location-trap/</link><guid isPermaLink="true">https://weken.news/articles/gemini-thinking-config-location-trap/</guid><description>Gemini 2.5 系列 REST API 的 thinkingConfig 必須嵌在 generationConfig 內，不能放在 request body 頂層。錯誤訊息「Invalid JSON payload received. Unknown name thinkingConfig: Cannot find field」就是 Google API 在 body 頂層找不到這個欄位。Google 之前寬鬆接受頂層寫法、最近收緊 schema 後一律拒絕。修法是把 thinkingConfig 移進 generationConfig 同層的物件，5 分鐘可改完。</description><pubDate>Sat, 25 Apr 2026 00:00:00 GMT</pubDate><category>gemini</category><category>google ai</category><category>api</category><category>debug</category><category>node.js</category></item><item><title>Vercel function 預設跑在美東：把它搬到新加坡配對 Neon 後，部署速度從 523ms 降到 93ms</title><link>https://weken.news/articles/vercel-function-region-neon-match-perf/</link><guid isPermaLink="true">https://weken.news/articles/vercel-function-region-neon-match-perf/</guid><description>Vercel function 預設跑在美東 iad1，如果 DB 在亞太 region，每次 SSR 跨太平洋查 DB 多吃 250ms 純網路延遲。改 vercel.json 加 regions 配對 DB region，加上首頁 60 秒 edge cache 雙刀流，實測首頁 SSR warm 從 523ms 降到 93ms，5.6 倍速。任何 Vercel + serverless DB 部署都該跑這個 SOP。</description><pubDate>Sat, 25 Apr 2026 00:00:00 GMT</pubDate><category>vercel</category><category>neon</category><category>serverless</category><category>效能優化</category><category>部署</category></item><item><title>AI 額度燒很快？7個你可能不知道的 Token 浪費習慣（含節省估算）</title><link>https://weken.news/articles/ai-token-cost-optimization/</link><guid isPermaLink="true">https://weken.news/articles/ai-token-cost-optimization/</guid><description>AI 額度消耗快，最常見的原因是：1) 同一個對話用太久不關（複利燒法，省 30%）；2) System Prompt 太長（每多 100 字省 10%）；3) 把整份文件丟進去（省 60-80%）；4) 用 Opus 做 Haiku 能做的事（省 50%）。底層原理：AI 沒有記憶體，每次回覆都要重讀整段對話歷史，對話越長燒越快。</description><pubDate>Thu, 16 Apr 2026 00:00:00 GMT</pubDate><category>ai工具</category><category>claude</category><category>chatgpt</category><category>token</category><category>省費用</category></item></channel></rss>