分享一个用CF Worker部署AI应用的实践经验

Rain (UID:3) 铁粉 2025-7-2 206

首先,我部署的是 AI Image to Image Generator, 这是一个 AI 图片应用。之前我曾经用过自建服务器、Vercel、还有 Tunnel 在本地部署内网穿透过。

 

最近切换到 CF 上了,主要是省心,以前数据库还得自己维护备份。现在用 D1 简单多了。

 

目前还没有给 Worker 付费。给大家看看 Worker 里的数据:

 

CPU 时间平均在 22ms,我觉得挺小的了~(html 全部静态化了,需要数据库的 api 走的 Worker~)

使用服务:

1. CF Worker

2. CF D1 数据库

因为我觉得如果页面量大的话,爬虫会消耗大量额度,但爬虫一般就只怕 html,所以这样能极大降低账单(如果日后达到付费门槛)

 

另外还做了多语言:如中文日文韩语西班牙语法语德语

 

目前主要开发了两个功能:

1. 图生图(AI 改图等):AI 图生图

2. 文生图(AI 生图):AI 文生图

最后,欢迎各位站长交流~(或者建议)

 
转载自:https://www.dalao.net/thread-47801.htm
免责声明:

此内容由本站网友原创或转载自网络公开渠道,仅供学习测试使用,禁止商用,著作权归原作者所有;
本站不对此内容担负法律责任,请于下载后24小时内删除;
如发现内容侵权或违规,请联系本站,我们将在12小时内及时做删除或屏蔽处理!邮箱:[email protected]


最新回复 (2)
  • JPGhero
    青铜
    JPGhero (UID: 876) @Ta
    2

    JPGHero.com provides a technical environment for the immediate transcoding of specialized image formats into the industry-standard JPG extension. The platform acts as a bridge for HEIC, WebP, PNG, and PDF files, ensuring they become universally compatible with all operating systems, social media platforms, and legacy software.The service is powered by a high-speed batch engine that allows for the simultaneous conversion of up to 20 files, eliminating the need for repetitive individual tasks. During the transformation process, the system executes an automated optimization cycle that reduces the image's binary footprint to improve website loading speeds while retaining high visual fidelity. Operating as a purely browser-based tool, JPGHero requires no software downloads, local installations, or account creation. The site is accessible globally through localized interfaces in 9 major languages. To ensure total data confidentiality, the platform's security architecture automatically purges all uploaded and processed files from the server infrastructure within one hour of the task's completion.

  • pp0000
    青铜
    pp0000 (UID: 920) @Ta
    3

    感谢分享

您可以在 登录 or 注册 后,对此帖发表评论!

返回
发新帖
自助推广 自助积分购买 我的推广
展示位加载中...
赞助商家我要入驻