{
  "openapi": "3.0.3",
  "info": {
    "title": "海报设计",
    "description": "基于生图大模型，一键智能生成企业、产品、节日等多场景精美海报，高效满足各类宣传设计需求",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/3364-3": {
      "x-pointCode": 3,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "post": {
        "summary": "查询历史任务",
        "description": "注意：历史任务只能查询三天内的\n注意：历史任务只能查询三天内的\n注意：历史任务只能查询三天内的",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "number",
                      "description": "查询到的总条数"
                    },
                    "timestamp": {
                      "type": "number",
                      "description": "时间戳"
                    },
                    "code": {
                      "type": "number",
                      "description": "0表示查出成功"
                    },
                    "page_size": {
                      "type": "number",
                      "description": "每页最大返回条数"
                    },
                    "message": {
                      "type": "string",
                      "description": "调用错误信息"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "input": {
                            "type": "object",
                            "properties": {
                              "refs": {
                                "type": "string",
                                "description": "参考图"
                              },
                              "poster_prompt": {
                                "type": "string",
                                "description": "提示词"
                              }
                            },
                            "description": "该任务入参"
                          },
                          "output": {
                            "type": "object",
                            "properties": {
                              "desc": {
                                "type": "string",
                                "description": "设计决策说明"
                              },
                              "img": {
                                "type": "string",
                                "description": "海报图片 ，我们只做短期保存，请您及时下载保存，下载时需要加上Referer:https://www.showapi.com请求头"
                              },
                              "design_innovation": {
                                "type": "number",
                                "description": "创新点"
                              }
                            },
                            "description": "该任务结果"
                          },
                          "create_time": {
                            "type": "string",
                            "description": "任务创建时间"
                          },
                          "task_status": {
                            "type": "string",
                            "description": "任务状态"
                          },
                          "task_id": {
                            "type": "string",
                            "description": "任务id"
                          }
                        }
                      },
                      "description": "历史任务列表"
                    },
                    "page": {
                      "type": "number",
                      "description": "当前页面"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "3364_3_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "type": "string",
                    "description": "查询历史任务的页码"
                  },
                  "page_size": {
                    "type": "string",
                    "description": "每页最多返回多少条任务，最多8条，默认4条"
                  }
                },
                "required": [
                  "page"
                ]
              }
            }
          }
        }
      }
    },
    "/3364-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "post": {
        "summary": "查询结果",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number",
                      "description": "0为成功，其余为失败"
                    },
                    "message": {
                      "type": "string",
                      "description": "调用说明"
                    },
                    "timestamp": {
                      "type": "number",
                      "description": "调用时间"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "end_time": {
                          "type": "number",
                          "description": "结束时间"
                        },
                        "progress": {
                          "type": "number",
                          "description": "执行进度0-100"
                        },
                        "task_status": {
                          "type": "string",
                          "description": "任务状态：PENDING（排队中）、RUNNING（处理中）、SUCCEEDED（成功）、FAILED（失败）、CANCELED（已取消）、UNKNOWN（未知）"
                        },
                        "task_id": {
                          "type": "string",
                          "description": "任务id"
                        },
                        "start_time": {
                          "type": "number",
                          "description": "开始时间"
                        },
                        "flow_result": {
                          "type": "object",
                          "properties": {
                            "output": {
                              "type": "object",
                              "properties": {}
                            },
                            "input": {
                              "type": "object",
                              "properties": {}
                            }
                          }
                        }
                      },
                      "description": "调用数据信息"
                    },
                    "requestId": {
                      "type": "string",
                      "description": "请求id"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "3364_2_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "task_id": {
                    "type": "string",
                    "description": "任务id"
                  }
                },
                "required": [
                  "task_id"
                ]
              }
            }
          }
        }
      }
    },
    "/3364-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "post": {
        "summary": "提交任务",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number",
                      "description": "0表示调用成功"
                    },
                    "requestId": {
                      "type": "string",
                      "description": "请求id"
                    },
                    "timestamp": {
                      "type": "number",
                      "description": "时间戳"
                    },
                    "message": {
                      "type": "string",
                      "description": "调用错误信息"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "task_status": {
                          "type": "string",
                          "description": "状态：RUNNING-运行中"
                        },
                        "task_id": {
                          "type": "string",
                          "description": "任务id"
                        },
                        "start_time": {
                          "type": "number",
                          "description": "开始时间戳"
                        }
                      },
                      "description": "任务信息"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "3364_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "poster_prompt": {
                    "type": "string",
                    "description": "海报设计提示词"
                  },
                  "refs": {
                    "type": "string",
                    "description": "参考图（产品图）"
                  }
                },
                "required": [
                  "poster_prompt"
                ]
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/3364?tab=book"
  },
  "x-apiCode": "3364",
  "x-is-own": true,
  "x-is-op": true
}