songquanpeng / one-api

OpenAI 接口管理 & 分发系统,支持 Azure、Anthropic Claude、Google PaLM 2 & Gemini、智谱 ChatGLM、百度文心一言、讯飞星火认知、阿里通义千问、360 智脑以及腾讯混元,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用. OpenAI key management & redistribution system, using a single API for all LLMs, and features an English UI.
https://openai.justsong.cn/
MIT License
15.95k stars 3.69k forks source link

cloudflare Workers AI 文本生成图像模型支持 #1551

Open WuJunJu opened 1 week ago

WuJunJu commented 1 week ago

例行检查

功能描述 对cloudflare Workers AI 文本转图像模型的支持 模型列表: @cf/runwayml/stable-diffusion-v1-5-img2img @cf/stabilityai/stable-diffusion-xl-base-1.0 @cf/lykon/dreamshaper-8-lcm @cf/bytedance/stable-diffusion-xl-lightning @cf/runwayml/stable-diffusion-v1-5-inpainting 参考文档:https://developers.cloudflare.com/workers-ai/models/stable-diffusion-xl-base-1.0

snakeying commented 5 days ago

同样需求,期待更新

HynoR commented 5 days ago

@snakeying @WuJunJu 摸鱼写了个worker.js,可以用Cloudflare worker.js模拟OpenAI的文本生图接口调用cf的图片生成模型。可以尝试一下。 https://github.com/HynoR/WorkerAI-img2OpenAI

由于one-api有模型对应的尺寸限制,worker做了下模型重定向。 image

aicoder01 commented 1 day ago

同求

igophper commented 1 day ago

后续会支持