{"id":20163664,"url":"https://github.com/mereithhh/ai-draw","last_synced_at":"2025-09-21T12:33:01.934Z","repository":{"id":227968932,"uuid":"772439828","full_name":"Mereithhh/ai-draw","owner":"Mereithhh","description":"AI 画图 web 应用，智能改写 prompt，可以抽卡。docker 一键部署","archived":false,"fork":false,"pushed_at":"2024-03-16T06:47:28.000Z","size":2675,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-14T00:34:04.490Z","etag":null,"topics":["ai","self-host","text-to-image"],"latest_commit_sha":null,"homepage":"https://aidraw.mereith.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mereithhh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-15T07:37:56.000Z","updated_at":"2024-11-09T08:58:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"adfb6f15-d460-4516-a95d-d1923f9438ff","html_url":"https://github.com/Mereithhh/ai-draw","commit_stats":null,"previous_names":["mereithhh/ai-draw"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mereithhh%2Fai-draw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mereithhh%2Fai-draw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mereithhh%2Fai-draw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mereithhh%2Fai-draw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mereithhh","download_url":"https://codeload.github.com/Mereithhh/ai-draw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233753947,"owners_count":18724912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","self-host","text-to-image"],"created_at":"2024-11-14T00:31:00.459Z","updated_at":"2025-09-21T12:33:01.446Z","avatar_url":"https://github.com/Mereithhh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## AI Draw\n\n可以自己部署的 AI 画图 web 应用，支持多种模型，只能改写 prompt，可以抽卡。\n\n目前基于 cloudflare ai，后续支持多种后端。\n\n\n\u003e [在线体验地址](https://aidraw.mereith.com) （每日调用数有限）\n\n![](image/preview-pc.png)\n\n## 功能\n- 切换多个模型，目前有 `sd-xl-light` `sd-xl-base` `sd-1.5` `dreamshaper-lcm`\n- 自动改写中文 prompt 到英文（通过文本大模型）\n- 抽卡（换一换），随机生成 prompt 抽卡（通过文本大模型）\n- 智能改写，通过文本大模型把你的输入变得更详细。\n- API 调用次数限制。\n\n## 使用方法\n### 关于费用\n目前 cloudflare 的描述是 `beta` 的模型，每天免费 `1000 次`，恰好我用的也都是 `beta` 的，所以先白嫖着？\n\n后面我会把基于 `comflowy` 后端的能力补上（其实已经有了，就是得改下）。\n\n\u003e 我加了 API 调用次数限制，每个功能花费如下：    \n\u003e 换一换：1次。   \n\u003e 改写：1次    \n\u003e 绘图：2次（prompt 处理 + 绘图）    \n\u003e 开了智能改写后绘图：3次    \n\n\n### 前置\n在 cloudflare 控制台创建一个 ai gateway，并获取 token\n\n### docker 部署\n\n```bash\ndocker run -d --name aidraw \\\n--restart unless-stopped \\\n-p 3000:3000 \\\n-e CLOUDFLARE_GATEWAY={你的 cf ai gateway 地址} \\\n-e CLOUDFLARE_API_TOKEN={你的 cf token} \\\n-e API_LIMIT_PREDAY={你想要的每天限制次数} \\\nmereith/ai-draw\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmereithhh%2Fai-draw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmereithhh%2Fai-draw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmereithhh%2Fai-draw/lists"}