我有一个要求,我想生成一个与我的项目名称相似的图像。例如。如果我的商品名称是 Butter Chicken,那么我希望生成一张黄油鸡的图像。我的要求只是特定于食物。我查看了 DeepAI 图像 API,但它生成的图像质量很差。谁能建议我该怎么做? PS:我想在 NodeJs 中做这个。
我建议你使用Dalle-2、Midjourney、Adobe Firefly等的API服务,你必须在你的末端有缓存机制和令牌相似性识别系统,以避免类似短语重复API调用,如Butter Chicken和ButterChicken,
如果你的堆栈是服务器较少,那么最好与中间层 CDN 集成