Skip to content

Nothing1024/WaibiWaibi-Firefly-Lover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Adobe Firefly 图像生成器

基于 Adobe Firefly API 的 AI 图像生成工具,包含前端界面和后端代理服务器。

**Token 获取方式: https://linux.do/t/topic/1346027 **

项目结构

├── index.html   # 前端页面(可独立使用)
├── server.js    # Node.js 代理服务器
└── README.md

功能特性

  • AI 文本生成图像
  • 多种宽高比:1:1、16:9、9:16、3:4、4:3
  • 本地图库管理(浏览器存储)
  • 图片下载功能

使用方式

方式一:直接使用前端页面

  1. 用浏览器打开 index.html
  2. 点击 Settings 输入 Adobe Access Token
  3. 输入图像描述,选择比例,点击生成

获取 Token: 访问 firefly.adobe.com → F12 开发者工具 → Network → 复制任意请求的 Authorization 头(去掉 "Bearer " 前缀)

方式二:使用代理服务器

# 启动服务器
node server.js

# 服务器默认运行在 http://localhost:3000

API 端点:

POST /api/generate
Content-Type: application/json

{
  "token": "your-adobe-token",
  "prompt": "a cute cat",
  "aspectRatio": "1:1",
  "returnImage": false
}
参数 说明
token Adobe Access Token(或通过 Authorization 头传递)
prompt 图像描述(必填)
aspectRatio 宽高比,可选:1:1, 16:9, 9:16, 3:4, 4:3
returnImage true 返回图片二进制,false 返回 URL

环境要求

  • Node.js 18+(server.js 使用内置 fetch)
  • 有效的 Adobe Firefly 访问权限

许可

仅供学习研究使用。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors