创建任务 ideogram-ai/ideogram-v2-turbo
POST https://aiapi.winfull.top/replicate/v1/models/ideogram-ai/ideogram-v2-turbo/predictions 官方文档:https://replicate.com/ideogram-ai/ideogram-v2-turbo
请求参数
Authorization 在 Header 添加参数 Authorization ,其值为在 Bearer 之后拼接 Token 示例: Authorization: Bearer ******************** Header 参数 生成代码 Body 参数application/json 生成代码 示例
{
"input": {
"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.",
"resolution": "None",
"style_type": "None",
"aspect_ratio": "1:1",
"magic_prompt_option": "Auto"
}
}请求示例代码
Shell JavaScript Java Swift Go PHP Python HTTP C C# Objective-C Ruby OCaml Dart R 请求示例请求示例 Shell JavaScript Java Swift cURLcURL-WindowsHttpiewgetPowerShell
curl --location --request POST 'https://aiapi.winfull.top/replicate/v1/models/ideogram-ai/ideogram-v2-turbo/predictions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"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.",
"resolution": "None",
"style_type": "None",
"aspect_ratio": "1:1",
"magic_prompt_option": "Auto"
}
}'返回响应
🟢200成功 application/json生成代码 Body 生成代码 示例
{
"id": "2jycc2v9nnrmc0crap5tv5zaxr",
"model": "ideogram-ai/ideogram-v2-turbo",
"version": "hidden",
"input": {
"aspect_ratio": "1:1",
"magic_prompt_option": "Auto",
"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.",
"resolution": "None",
"style_type": "None"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-07-29T09:37:36.685Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/2jycc2v9nnrmc0crap5tv5zaxr/cancel",
"get": "https://api.replicate.com/v1/predictions/2jycc2v9nnrmc0crap5tv5zaxr",
"stream": "https://stream.replicate.com/v1/files/bcwr-irvir7a5lzv2z6pja5hol5cy36lt5jekok743kcmbfu4gtvpv7vq",
"web": "https://replicate.com/p/2jycc2v9nnrmc0crap5tv5zaxr"
}
}修改于 2025-08-01 07:40:39
