- 语言大模型
- 迁移API指南
- 模型信息
- 联网搜索
- 深度搜索
- 图片分析
- 推理模式
- 链接解析
- 长期记忆(Beta)
- 简化版API
- OpenAI
- Anthropic
- Gemini
- 国产模型
- 硅基流动
- 开源模型
- Chat(LLaMA3.3)
- Chat(LLaMA3.2多模态)
- Chat(LLaMA3.1)
- Chat(Mixtral-8x7B)
- Chat(Mistral-Large-2411)
- Chat(Mistral-small-2503)
- Chat(Pixtral-Large-2411多模态)
- Chat(Gemma-7B、Gemma-3-27b-it)
- Chat(Gemma2-9B)
- Chat(Command R+)
- Chat(Qwen2)
- Chat(Qwen2.5)
- Chat(Qwen2.5-VL)
- Chat(Llama-3.1-nemotron)
- Chat(QwQ-32B、QwQ-Plus、QwQ-32B-Preview)
- 专业模型
- 其他模型
- 图片生成
- DALL.E
- Stability.ai
- Midjourney
- Midjourney-Relax
- 302.AI
- SDXL(图片生成)
- SDXL-Lora(图片生成-Lora)
- SDXL-Lightning(快速图片生成)
- SDXL-Lightning-V2(快速图片生成V2)
- SDXL-Lightning-V3(快速图片生成V3)
- SD3(图片生成-SD3)
- SD3(图片生成-SD3-v2)
- Aura-Flow(图片生成)
- Kolors(图片生成-可灵)
- Kolors(参考图片生成-可灵)
- QRCode(艺术二维码生成)
- Lora(图片生成-Lora)
- SD-3.5-Large(图片生成)
- SD-3.5-Large-Turbo(图片生成)
- SD-3.5-Medium(图片生成)
- Lumina-Image-V2(图片生成)
- Playground-v25(图片生成)
- Omnigen-V1(图片生成)
- Glif
- Flux
- Ideogram
- Recraft
- Luma
- Doubao
- Minimax海螺
- 智谱
- 图片处理
- 302.AI
- Upscale(图片放大)
- Upscale-V2(图片放大V2)
- Upscale-V3(图片放大V3)
- Upscale-V4(图片放大V4)
- Super-Upscale(超级图片放大)
- Super-Upscale-V2(超级图片放大V2)
- Face-upscale(人像照片放大)
- Colorize(黑白照片上色)
- Colorize(黑白照片上色V2)
- Removebg(背景消除)
- Removebg-V2(背景消除V2)
- Inpaint(图片修改)
- Erase(物体消除)
- Face-to-many(人像照片风格化)
- Llava(图像识别)
- Relight(二次打光)
- Relight-background(二次打光背景合成)
- Relight-V2(二次打光-V2)
- Face-swap-V2(AI换脸V2)
- Fetch(获取任务结果)
- HtmltoPng(HTML转PNG格式)
- SvgToPng(SVG转PNG格式)
- image-translate(图片翻译)
- image-translate-query(图片翻译结果)
- image-translate-redo(图片翻译修改)
- Flux-selfie(自拍照片风格化)
- Trellis(图片转3D模型)
- Pose-Transfer(人物姿态变换)
- Pose-Transfer(人物姿态变换结果)
- Virtual-Tryon(虚拟穿衣)
- Virtual-Tryon(虚拟穿衣结果)
- Denoise(AI降噪)
- Deblur(AI去模糊)
- 302.AI-ComfyUI
- Vectorizer
- Stability.ai
- Fast Upscale(快速图片放大)
- Creative Upscale(创意图片放大)
- Conservative Upscale(保守图片放大)
- Fetch Creative Upscale(超级图片放大)
- Erase(物体消除)
- Inpaint(图片修改)
- Outpaint(图片扩展)
- Search-and-replace(内容替换)
- Search-and-recolor(内容重着色)
- Remove-background(背景消除)
- Sketch(草图转图片)
- Structure(以图生图)
- Style(风格一致性)
- Replace-Background(更换背景)
- Stable-Fast-3D(图片转3D模型)
- Stable-Point-3D(图片转3D模型新 版)
- Glif
- Clipdrop
- Recraft
- BRIA
- Remove Background(背景消除)
- Blur Background(背景模糊)
- Generate Background(背景生成)
- Erase Foreground(擦除前景)
- Eraser(物体擦除)
- Expand Image(图片扩展)
- Increase Resolution(图片放大)
- Crop(图片裁切)
- Cutout(产品图裁剪)
- Packshot(产品图特写)
- Shadow (产品图阴影)
- Scene (产品图场景生成)
- Caption(图片描述)
- Register(图片上传)
- Mask(图片分割)
- Presenter info (人脸分析)
- Modify Presenter(人脸修改)
- Delayer Image(图片转PSD)
- Flux
- Hyper3D
- Tripo3D
- FASHN
- Ideogram
- Doubao
- Kling可灵
- 302.AI
- 视频生成
- 统一接口
- 302.AI
- Stable Diffusion
- Luma AI
- Runway Gen-3
- Kling可灵
- Txt2Video(文生视频1.0-快速-5秒)
- Image2Video(图生视频1.0-快速-5秒)
- Image2Video(图生视频1.0-快速-10秒)
- Txt2Video_HQ(文生视频1.5-高清-5秒)
- Txt2Video_HQ(文生视频1.5-高清-10秒)
- Image2Video(图生视频1.5-快速-5秒)
- Image2Video(图生视频1.5-快速-10秒)
- Image2Video_HQ(图生视频1.5-高清-5秒)
- Image2Video_HQ(图生视频1.5-高清-10秒)
- Txt2Video(文生视频1.6-标准-5秒)
- Txt2Video(文生视频1.6-标准-10秒)
- Txt2Video(文生视频1.6-高清-5秒)
- Txt2Video(文生视频1.6-高清-10秒)
- Image2Video(图生视频1.6-标准-5秒)
- Image2Video(图生视频1.6-标准-10秒)
- Image2Video(图生视频1.6-高清-5秒)
- Image2Video(图生视频1.6-高清-10秒)
- Image2Video(多图参考)
- Extend_Video(视频扩展)
- Fetch(获取任务结果)
- CogVideoX智谱
- Minimax海螺
- Pika
- PixVerse
- Genmo
- Hedra
- Haiper
- Sync.
- Lightricks
- Hunyuan混元
- Vidu
- 通义万相
- 即梦
- 硅基流动
- 昆仑万维
- 音视频处理
- 信息处理
- 302.AI
- 管理后台
- 信息搜索
- Xiaohongshu_Search(小红书搜索笔记)
- Xiaohongshu_Note(小红书获取笔记)
- Tiktok_Search(Tiktok搜索视频)
- Douyin_Search(抖音搜索视频)
- Twitter_Search(X搜索内容)
- Twitter_Post(X获取用户帖子)
- Twitter_User(X获取用户信息)
- Weibo_Post(微博获取用户帖子)
- Search_Video(Youtube搜索视频)
- Youtube_Info(Youtube获取视频信息)
- Youtube_Subtitles(Youtube获取字幕)
- Bilibili_Info(B站获取视频信息)
- MP_Article_List(获取微信公众号文章列表)
- MP_Article(获取微信公众号文章)
- 文件处理
- 代码运行
- Tavily
- SearchAPI
- Search1API
- Exa
- 博查AI
- Doc2x
- Glif
- Jina
- DeepL
- RSSHub
- 流光卡片
- 有道
- Mistral
- RAG相关
- 工具API
- 帮助中心
saveImg(卡片生成)
正式环境
正式环境
POST
https://api.302.ai/fireflycard/api/saveImg
官方文档:https://ew6rccvpnmz.feishu.cn/wiki/KcAUwM0I2iIiuekzbvZcGHVlndb
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
object {0}
示例
{
"form": {
"icon": "https://mrxc-1300093961.cos.ap-shanghai.myqcloud.com/2024/12/15/1868195941732040706.jpg",
"title": "哲学",
"content": "<p style=\"line-height: 47px;\"><span style=\"font-weight: normal;\"></span></p><span style=\"font-size: 23px;\"><p style=\"font-weight: normal; line-height: 47px;\"></p><span style=\"font-size: 27px; font-weight: normal;\"><p style=\"line-height: 47px;\">没必要总是追求寻找更多声音,视角,人类多样性,至少在非你专业、感兴趣领域上是如此。</p><p style=\"line-height: 47px;\">在矛盾、部分热点事件中看多样性 … 带来一点娱乐价值,还有 … n 次的小脑萎缩。</p></span><p style=\"font-weight: normal; line-height: 47px;\"></p></span><p style=\"line-height: 47px;\"><span style=\"font-weight: normal;\"></span></p>",
"translate": "<p>There is no need to always pursue more voices, perspectives, and human diversity, at least in areas that are not your profession and interest.\nLooking at diversity in contradictions, some hot events… brings a little entertainment value, and… n cerebellar atrophy.</p>",
"author": "<p><span style=\"font-weight: normal;\">不是我说的</span></p>",
"signature": "<p>也不是周树人说的</p>",
"qrCode": "https://textcard.shushiai.com/zh"
},
"style": {
"backgroundName": "pure-color-4",
"font": "Huiwen_mingchao",
"fonts": {
"title": 1.2,
"content": 1.2,
"author": 1.2,
"translate": 1.2
},
"textColor": "#EAB0CD",
"align": "left",
"width": 454,
"backShadow": "",
"height": 0,
"fontScale": 1.2,
"ratio": "",
"padding": "30px"
},
"subTempId": "tempJinC",
"switchConfig": {
"showIcon": true,
"showTitle": false,
"showContent": true,
"showTranslation": true,
"showAuthor": true,
"showQRCode": false,
"showSignature": true,
"showQuotes": true
},
"temp": "tempJin"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.302.ai/fireflycard/api/saveImg' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"form": {
"icon": "https://mrxc-1300093961.cos.ap-shanghai.myqcloud.com/2024/12/15/1868195941732040706.jpg",
"title": "哲学",
"content": "<p style=\"line-height: 47px;\"><span style=\"font-weight: normal;\"></span></p><span style=\"font-size: 23px;\"><p style=\"font-weight: normal; line-height: 47px;\"></p><span style=\"font-size: 27px; font-weight: normal;\"><p style=\"line-height: 47px;\">没必要总是追求寻找更多声音,视角,人类多样性,至少在非你专业、感兴趣领域上是如此。</p><p style=\"line-height: 47px;\">在矛盾、部分热点事件中看多样性 … 带来一点娱乐价值,还有 … n 次的小脑萎缩。</p></span><p style=\"font-weight: normal; line-height: 47px;\"></p></span><p style=\"line-height: 47px;\"><span style=\"font-weight: normal;\"></span></p>",
"translate": "<p>There is no need to always pursue more voices, perspectives, and human diversity, at least in areas that are not your profession and interest.\nLooking at diversity in contradictions, some hot events… brings a little entertainment value, and… n cerebellar atrophy.</p>",
"author": "<p><span style=\"font-weight: normal;\">不是我说的</span></p>",
"signature": "<p>也不是周树人说的</p>",
"qrCode": "https://textcard.shushiai.com/zh"
},
"style": {
"backgroundName": "pure-color-4",
"font": "Huiwen_mingchao",
"fonts": {
"title": 1.2,
"content": 1.2,
"author": 1.2,
"translate": 1.2
},
"textColor": "#EAB0CD",
"align": "left",
"width": 454,
"backShadow": "",
"height": 0,
"fontScale": 1.2,
"ratio": "",
"padding": "30px"
},
"subTempId": "tempJinC",
"switchConfig": {
"showIcon": true,
"showTitle": false,
"showContent": true,
"showTranslation": true,
"showAuthor": true,
"showQRCode": false,
"showSignature": true,
"showQuotes": true
},
"temp": "tempJin"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2025-02-28 18:37:33