Shell API Docs
    Shell API Docs
    • 发出请求
    • 模型接口
      • 聊天接口(Chat)
        • 聊天接口
        • gpts
        • gemini-pro
        • gpt-4-all(分析图片)
        • gpt-4-vision-preview
      • 自动补全接口(Completions)
        • 内容补全接口
      • 图像接口(Images)
        • Midjourney
          • 补充 - 其他参数以及回调
          • InsightFace任务提交
            • 提交swap_face任务
          • 任务提交
            • 执行动作
            • 提交Blend任务
            • 提交Describe任务
            • 提交Imagine任务
            • 提交Modal
            • 提交Shorten任务
          • 任务查询
            • 查询所有任务
            • 根据ID列表查询任务
            • 分页查询任务
            • 查询任务队列
            • 取消任务
            • 指定ID获取任务
            • 获取任务图片的seed(需设置mj或niji的私信ID)
        • Flux DALL·E格式
        • Redraft DALL·E格式
        • DALL·E 3
        • Stable-Diffusion
        • gpt-4-all(生成图片)
      • 向量生成接口(Embeddings)
        • 创建嵌入
      • 音频接口(Audio)
        • 创建转录
        • 创建翻译
        • TTS文本转语音
      • Suno音乐接口
        • v3.0
          • 生成音乐
          • 获取音乐
          • 合并音乐
        • v3.5
          • 生成音乐
          • 获取音乐
      • Luma视频接口
        • 免费版
          • 获取视频
        • 付费版
          • 获取视频
          • 生成视频
          • 延长视频
      • SD图像接口
        • SD3
          • Stable Image Ultra
          • Stable Image Core
          • Stable Diffusion 3
        • SDXL
          • Text-to-image
    • 帮助中心
      • 常见问题及解决办法
    • SDXL & SD1.6
      • Text-to-image
        POST
    • styles
      • 创建样式
        POST
    • images
      • 生成图像
        POST
      • 图像矢量化
        POST
      • 移除背景
        POST
      • 清晰度提升
        POST
      • 生成式放大
        POST
    • 视频生成
      • 图生视频
        POST
    • 任务管理
      • 任务查询
        GET
    • 内容补全接口
      POST
    • 获取音乐
      GET
    • 获取音乐
      GET
    • flux-pro-1.1
      POST
    • flux-pro
      POST
    • flux-dev
      POST
    • flux-查询
      GET
    • Generate(文生图)
      POST
    • Remix(混合图)
      POST
    • Upscale(放大高清)
      POST
    • Describe(描述)
      POST
    • 图像生成
      POST
    • 文生视频
      POST
    • 图生视频
      POST
    • 查询任务
      GET
    • 图片描述
      POST
    • 文生图
      POST
    • 合成图
      POST
    • 放大图片
      POST
    • ideogram任务查询
      POST

      Remix(混合图)

      POST
      /ideogram/v1/remix
      Remix provided images synchronously based on a given prompt and optional parameters
      根据给定的提示和可选参数,实时提供重新混合的图像

      请求参数

      Header 参数
      Authorization
      string 
      必需
      默认值:
      {{YOUR_API_KEY}}
      Body 参数multipart/form-data
      image_file
      file 
      可选
      An image binary; only JPEG, WEBPs and PNGs are supported at this time
      图像二进制;目前仅支持 JPEG、WEBP 和 PNG 格式
      image_request
      string 
      可选
      A request to generate a new image using a provided image and a prompt.
      请求生成一张新图像,使用提供的图像和提示。大致和Generate相同。
      示例值:
      {"image_weight":50,"model":"V_1","magic_prompt_option":"AUTO","style_type":"GENERAL","prompt":"A%20serene%20tropical%20beach%20","aspect_ratio":"ASPECT_10_16","seed":12345,"negative_prompt":"brush%20strokes%2C%20painting"}

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/ideogram/v1/remix' \
      --header 'Authorization;'

      返回响应

      🟢200成功
      application/json
      Body
      data
      array [object {5}] 
      必需
      seed
      integer 
      必需
      0 to 2147483647
      prompt
      string 
      必需
      The prompt used for the generation. This may be different from the original prompt. 用于生成的提示。这可能与原始提示不同。
      resolution
      string 
      必需
      The resolution of the final image. 最终图像的分辨率。
      url
      string 
      必需
      The direct link to the image generated. 生成的图像的直接链接。
      is_image_safe
      boolean 
      必需
      Whether this request passes safety checks. If false, the url field will be empty. 该请求是否通过安全检查。如果为假,网址字段将为空。
      created
      string 
      必需
      The time the request was created. 请求创建的时间。
      示例
      {
          "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"
      }
      上一页
      Generate(文生图)
      下一页
      Upscale(放大高清)
      Built with