DeerAPI-API文档
  1. ideogram(images)
DeerAPI-API文档
  • 帮助中心
    • 模型上新公告
    • 平台通知
    • 帮助中心
    • 快速开始
    • 关于价格
    • 关于分组
    • 接口稳定性
    • 隐私政策
    • 服务条款
    • 报错状态码说明
    • 代码示例
    • 入门必看
    • 常见误区
    • 使用困惑
    • 最佳实践
      • Deerapi 账户余额查询API 使用说明
      • 使用 DeerAPI 和 OpenAI 官方 API 的重试逻辑说明文档
      • Midjorney调用最佳实践
      • Runway调用最佳实践
  • OpenAI格式
    • gpt-4o-image生图
      POST
    • 聊天
      POST
    • 识图
      POST
    • 获取模型列表
      GET
    • 嵌入
      POST
    • 图像
      POST
    • Realtime
      POST
    • 图像编辑(gpt-image-1)
      POST
  • 音频
    • 文本转音频
    • 音频转文本
    • 创建翻译
  • Anthropic 格式
    • Anthropic Claude
  • 音乐生成
    • Suno
      • 设置 suno 版本
      • 生成歌词
      • 生成音乐
      • 上传音乐
      • 歌曲拼接
      • 查询单个任务
      • 批量查询任务
    • Udio(暂不可用)
      • 生成音乐
      • 查询单个任务
  • Midjourney 图像生成
    • 快速教学-完整流程一遍过
    • 任务查询
      • 分页查询
      • 指定ID获取任务
    • 提交Imagine任务
    • 提交Action任务
    • 提交Blend任务
    • 提交Describe任务
    • 提交Modal
  • 视频生成
    • runway(video)
      • 官方格式
        • 从图像生成视频
        • 获取任务详细信息
      • 逆向格式
        • generate(文本)
        • generate(参考图片)
        • video2video 视频转视频 风格重绘
        • Act-one 表情迁移
        • feed-获取任务
    • kling (video)
      • Callback协议
      • 生成图像
      • 文生视频
      • 图生视频
      • 视频延长
      • 虚拟试穿
      • 对口型
      • 查询任务(单个)
    • luma (video)
      • 官方API格式
        • 生成视频
        • 单个查询任务
    • MiniMax 海螺(video)
      • 官方文档
      • 视频生成
      • 查询任务
      • 文件下载
    • PIKA(video)
      • 通用版
        • generate video
        • 查询视频任务
      • generate(参考视频/扩展视频)
      • generate(参考图片)
      • generate(文本)
      • feed
    • sora
      • 逆向格式
        • 创建视频
        • 生成视频
        • 查询视频任务
  • 图像生成
    • ideogram(images)
      • 官方文档(实时更新)
      • Generate 3.0(文生图)
        POST
      • Reframe 3.0(重构)
        POST
      • Replace Background 3.0(背景替换)
        POST
      • Remix 3.0(混合图)
        POST
      • Edit 3.0(编辑)
        POST
      • Generate(文生图)
        POST
      • Remix(混合图)
        POST
      • Upscale(放大高清)
        POST
      • Describe(描述)
        POST
      • Edit(编辑)
        POST
    • Flux(images)
      • 生成图片(replicate格式)
      • 生成图片(暂不可用)
      • 微调(暂不可用)
      • 查询任务
    • Replicate(image)
      • 创建任务
      • 查询任务
    • Recraft(images)
      • 附录
      • Generate Image(生成图片)
      • Vectorize Image(矢量化图片)
      • Remove Background(删除背景)
      • Clarity Upscale(清晰度提升)
      • Create style(创建样式)
      • Generative Upscale(生成高清)
  • 应用集成指南
    • DeerAPI 本站调用
    • OpenManus
    • Chatbox
    • CherryStudio
    • Cursor
    • ChatAll
    • ChatHub
    • COZE
    • FastGPT
    • Lobe-Chat
    • NEXT CHAT (ChatGPT Next Web)
    • cline
    • gptme
    • LangChain
    • AnythingLLM
    • Zotero
    • librechat
    • avante.nvim
    • Dify
    • OpenAI Translator
    • Open WebUI
    • obsidian的text generator插件
    • STranslate
    • 沉浸式翻译
    • Pot 翻译
    • 欧陆翻译
    • utools-ChatGPT 好友
    • GPT 学术优化(gpt_academic)
    • 懒人客服
    • IntelliJ Translation Plugin
  1. ideogram(images)

Edit(编辑)

测试中
POST
https://api.deerapi.com/edit
Remix provided images synchronously based on a given prompt and optional parameters
根据给定的提示和可选参数,实时提供重新混合的图像
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.deerapi.com/edit' \
--header 'Authorization: {{api-key}}' \
--form 'image_file=@"D:\\Download\\QLDownload\\cat.png"' \
--form 'mask=@""' \
--form 'prompt="cat"' \
--form 'model="V_2_TURBO"' \
--form 'magic_prompt_option=""' \
--form 'seed=""' \
--form 'style_type=""' \
--form 'num_images=""'
响应示例响应示例
200 - Success
{
    "data": [
        {
            "seed": 12345,
            "prompt": "A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there's an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.",
            "resolution": "1024x1024",
            "url": "https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g",
            "is_image_safe": true
        },
        {
            "seed": 12345,
            "prompt": "A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there's an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.",
            "resolution": "1024x1024",
            "url": "https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g",
            "is_image_safe": true
        }
    ],
    "created": "2000-01-23T04:56:07.000Z"
}

请求参数

Header 参数
Authorization
string 
可选
示例值:
{{api-key}}
Body 参数multipart/form-data
image_file
file 
必需
An image binary; only JPEG, WEBPs and PNGs are supported at this time
示例值:
file://D:\Download\QLDownload\cat.png
mask
file 
必需
file:///Users/zcz/Pictures/下载 (1).png
prompt
string 
必需
描述如何编辑图像的文本
示例值:
cat
model
string 
可选
示例值:
V_2_TURBO
magic_prompt_option
enum<string> 
可选
AUTO,ON,OFF
枚举值:
AUTOONOFF
默认值:
AUTO
seed
string 
可选
style_type
enum<string> 
可选
Generated style type; this applies only to Model V_2 and higher and should not be specified for Model Version V_1.
枚举值:
AUTOGENERALREALISTICDESIGNRENDER_3DANIME
num_images
string 
可选

返回响应

🟢200OK
application/json
成功编辑图像
Body
data
array [object {5}] 
必需
seed
integer 
必需
0 to 2147483647
prompt
string 
必需
resolution
string 
必需
url
string 
必需
is_image_safe
boolean 
必需
created
string 
必需
🟠400Bad Request
修改于 2025-05-19 07:38:25
上一页
Describe(描述)
下一页
生成图片(replicate格式)
Built with