创建任务 ideogram-ai/ideogram-v2-turbo

POST /replicate/v1/models/ideogram-ai/ideogram-v2-turbo/predictions

MethodPOST
Path/replicate/v1/models/ideogram-ai/ideogram-v2-turbo/predictions
Typehttp
Status1
Module2102810
Folder62419371

说明

概览

MethodPOST
Path/replicate/v1/models/ideogram-ai/ideogram-v2-turbo/predictions
Typehttp
Status1
Module2102810
Folder62419371

参数

{
  "query": [],
  "path": [],
  "cookie": [],
  "header": [
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "GTujCrB2It",
      "enable": true,
      "name": "Authorization",
      "sampleValue": "Bearer {{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "input": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "图像生成的文字提示。"
          },
          "resolution": {
            "type": "string",
            "description": "分辨率。覆盖宽高比。如果指定了修复图像,则忽略该参数。默认值:“None”。"
          },
          "style_type": {
            "type": "string",
            "description": "样式有助于定义您想要生成的图像的特定美感。默认值:“None”。"
          },
          "aspect_ratio": {
            "type": "string",
            "description": "长宽比。如果指定了分辨率或修复图像,则忽略。默认值:“1:1”。"
          },
          "magic_prompt_option": {
            "type": "string",
            "description": "Magic Prompt 会解释您的提示并进行优化,以最大限度地提高生成的图像的多样性和质量。您还可以使用它用不同的语言编写提示。默认值:“Auto”。"
          }
        },
        "required": [
          "prompt"
        ],
        "x-apifox-orders": [
          "prompt",
          "resolution",
          "style_type",
          "aspect_ratio",
          "magic_prompt_option"
        ]
      }
    },
    "x-apifox-orders": [
      "input"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "value": "{\n    \"input\": {\n      \"prompt\": \"An illustration of a gold running shoe with the text \\\"Run AI with an API\\\" written on the shoe. The shoe is placed on a pink background. The text is white and bold. The overall image has a modern and techy vibe, with elements of speed.\",\n      \"resolution\": \"None\",\n      \"style_type\": \"None\",\n      \"aspect_ratio\": \"1:1\",\n      \"magic_prompt_option\": \"Auto\"\n    }\n  }",
      "mediaType": "application/json",
      "description": ""
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 728727994,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "input": {
          "type": "object",
          "properties": {
            "aspect_ratio": {
              "type": "string"
            },
            "input_image": {
              "type": "string"
            },
            "output_format": {
              "type": "string"
            },
            "prompt": {
              "type": "string"
            },
            "prompt_upsampling": {
              "type": "boolean"
            },
            "safety_tolerance": {
              "type": "integer"
            }
          },
          "required": [
            "aspect_ratio",
            "input_image",
            "output_format",
            "prompt",
            "prompt_upsampling",
            "safety_tolerance"
          ]
        },
        "logs": {
          "type": "string"
        },
        "output": {
          "type": "null"
        },
        "data_removed": {
          "type": "boolean"
        },
        "error": {
          "type": "null"
        },
        "status": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        },
        "urls": {
          "type": "object",
          "properties": {
            "cancel": {
              "type": "string"
            },
            "get": {
              "type": "string"
            },
            "stream": {
              "type": "string"
            },
            "web": {
              "type": "string"
            }
          },
          "required": [
            "cancel",
            "get",
            "stream",
            "web"
          ]
        }
      },
      "required": [
        "id",
        "model",
        "version",
        "input",
        "logs",
        "output",
        "data_removed",
        "error",
        "status",
        "created_at",
        "urls"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 728727994,
    "data": "{\n    \"id\": \"2jycc2v9nnrmc0crap5tv5zaxr\",\n    \"model\": \"ideogram-ai/ideogram-v2-turbo\",\n    \"version\": \"hidden\",\n    \"input\": {\n        \"aspect_ratio\": \"1:1\",\n        \"magic_prompt_option\": \"Auto\",\n        \"prompt\": \"An illustration of a gold running shoe with the text \\\"Run AI with an API\\\" written on the shoe. The shoe is placed on a pink background. The text is white and bold. The overall image has a modern and techy vibe, with elements of speed.\",\n        \"resolution\": \"None\",\n        \"style_type\": \"None\"\n    },\n    \"logs\": \"\",\n    \"output\": null,\n    \"data_removed\": false,\n    \"error\": null,\n    \"status\": \"starting\",\n    \"created_at\": \"2025-07-29T09:37:36.685Z\",\n    \"urls\": {\n        \"cancel\": \"https://api.replicate.com/v1/predictions/2jycc2v9nnrmc0crap5tv5zaxr/cancel\",\n        \"get\": \"https://api.replicate.com/v1/predictions/2jycc2v9nnrmc0crap5tv5zaxr\",\n        \"stream\": \"https://stream.replicate.com/v1/files/bcwr-irvir7a5lzv2z6pja5hol5cy36lt5jekok743kcmbfu4gtvpv7vq\",\n        \"web\": \"https://replicate.com/p/2jycc2v9nnrmc0crap5tv5zaxr\"\n    }\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 648892754
  }
]