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

      ideogram任务查询

      POST
      /api/ideogram/task-request

      请求参数

      Header 参数
      Access-Token
      string 
      可选
      示例值:
      12345678
      Body 参数application/json
      request_id
      string 
      查询id
      必需
      示例
      {
          "request_id": "string"
      }

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/api/ideogram/task-request' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "request_id": "string"
      }'

      返回响应

      🟢200成功
      application/json
      Body
      sampling_requests
      array [object {20}] 
      必需
      aspect_ratio
      string 
      可选
      can_upscale
      boolean 
      可选
      completion_percentage
      integer 
      完成进度, 达到100就完成了
      可选
      cover_response_id
      string 
      可选
      creation_time_float
      number 
      可选
      has_started
      boolean 
      可选
      height
      integer 
      可选
      is_completed
      boolean 
      是否完成
      可选
      model_version
      string 
      可选
      private
      boolean 
      可选
      request_id
      string 
      可选
      request_type
      string 
      可选
      resolution
      integer 
      可选
      responses
      array [object {10}] 
      可选
      sampling_speed
      integer 
      可选
      seed
      integer 
      可选
      user
      object 
      可选
      user_hparams
      object 
      可选
      user_prompt
      string 
      可选
      width
      integer 
      可选
      示例
      {
          "sampling_requests": [
              {
                  "aspect_ratio": "1:1",
                  "can_upscale": true,
                  "completion_percentage": 100,
                  "cover_response_id": "I0KkrjcfQH6bqJVz2Prp9g",
                  "creation_time_float": 1730039726.950963,
                  "has_started": true,
                  "height": 1024,
                  "is_completed": true,
                  "model_version": "V_0_3",
                  "private": true,
                  "request_id": "QGvBNC-SReSCnZ7y-hnYbg",
                  "request_type": "TEXT_TO_IMAGE",
                  "resolution": 1024,
                  "responses": [
                      {
                          "cover": true,
                          "descriptions": [],
                          "highest_fidelity": true,
                          "is_autoprompt": true,
                          "num_likes": 0,
                          "num_remixes": 0,
                          "prompt": "A heartwarming photograph of a playful and fluffy dog. The dog is a golden retriever with a wagging tail, bounding through a field of tall, green grass. Its fur shines in the sunlight, and its ears are flapping gently as it runs. In the background, there is a bright blue sky and a few white, fluffy clouds. The overall atmosphere of the image is joyful and full of life.",
                          "response_id": "I0KkrjcfQH6bqJVz2Prp9g",
                          "image_url": "https://ideogram.ai/assets/progressive-image/balanced/response/I0KkrjcfQH6bqJVz2Prp9g",
                          "self_like": false
                      },
                      {
                          "cover": false,
                          "descriptions": [],
                          "highest_fidelity": false,
                          "is_autoprompt": true,
                          "num_likes": 0,
                          "num_remixes": 0,
                          "prompt": "A cute and playful dog, with a wagging tail and bright, inquisitive eyes. The dog is a medium-sized mixed breed, with a soft brown and white coat that appears fluffy. It's standing on a lush green lawn, with its ears perked up and a toy in its mouth. The sun is shining, casting a warm light over the happy scene.",
                          "response_id": "McW1NqFVTJCAgQKaLz2AMA",
                          "self_like": false
                      },
                      {
                          "cover": false,
                          "descriptions": [],
                          "highest_fidelity": false,
                          "is_autoprompt": true,
                          "num_likes": 0,
                          "num_remixes": 0,
                          "prompt": "A playful and adorable dog, captured in a candid moment. The dog has a short, golden fur, wagging its tail enthusiastically. Its tongue is out, showing a wide smile that reveals its pearly white teeth. The dog is outdoors, with a lush green grassy field as the backdrop. In the distance, a blue sky and a few fluffy clouds add to the serene and sunny atmosphere.",
                          "response_id": "NUHi05ZxRvm6zP4_rx1hMg",
                          "self_like": false
                      },
                      {
                          "cover": false,
                          "descriptions": [],
                          "highest_fidelity": false,
                          "is_autoprompt": true,
                          "num_likes": 0,
                          "num_remixes": 0,
                          "prompt": "A captivating image of a playful, friendly dog. The dog is a mixed breed with a wagging tail and a wide, happy smile. Its fur is a beautiful blend of golden and black hues. The dog is standing on a lush green lawn, with a colorful frisbee in its mouth, ready to play. The background is a clear blue sky with a few white clouds, and a vibrant red and yellow flower garden. The whole scene exudes warmth and happiness.",
                          "response_id": "kXeVt9AISmS61-nCrrwf5A",
                          "self_like": false
                      }
                  ],
                  "sampling_speed": 0,
                  "seed": 1406040949,
                  "user": {
                      "badge": null,
                      "display_handle": "vartanianbungal",
                      "photo_url": "https://lh3.googleusercontent.com/a/ACg8ocIyRND7DMJ7bsWZXTkWXQVC1z1GCeVYeYFEsEYKFCxBcnf6AA=s96-c",
                      "subscription_plan_id": "o-sIa28SQSGZzKlMLZjDkA",
                      "user_id": "UMxfIhU5TTCDP0SRr4eISQ"
                  },
                  "user_hparams": {
                      "aspect_ratio": "1:1"
                  },
                  "user_prompt": "dog",
                  "width": 1024
              }
          ]
      }
      上一页
      放大图片
      Built with