{
  "openapi": "3.0.3",
  "info": {
    "title": "Ai视频创作",
    "description": "AI视频创作接口是基于生成式AI模型的智能视频生成服务，支持通过文本描述、参考图片、风格模板、时长分辨率等参数自动生成原创短视频。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/3623-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 300,
      "x-connect-timeout": 300,
      "post": {
        "summary": "查询任务结果",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "task_id": {
                              "type": "string",
                              "description": "任务id"
                            },
                            "task_status": {
                              "type": "string",
                              "description": "任务状态：SUCCEEDED-表示成功；FAILED-任务失败；"
                            },
                            "ret_code": {
                              "type": "number",
                              "description": "调用标识：0为成功，其余为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "调用说明"
                            },
                            "cost": {
                              "type": "number",
                              "description": "计费"
                            },
                            "videos": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "video_url": {
                                    "type": "string"
                                  }
                                }
                              },
                              "description": "任务结果"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "3623_2_POST",
        "parameters": [
          {
            "name": "task_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/3623-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 300,
      "x-connect-timeout": 300,
      "post": {
        "summary": "创作视频",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "task_id": {
                              "type": "string",
                              "description": "任务id"
                            },
                            "task_status": {
                              "type": "string",
                              "description": "任务状态：SUCCEEDED-表示成功；FAILED-任务失败；"
                            },
                            "ret_code": {
                              "type": "number",
                              "description": "调用标识：0为成功，其余为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "调用说明"
                            },
                            "cost": {
                              "type": "number",
                              "description": "计费"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "3623_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {}
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apis/3623?tab=book"
  },
  "x-apiCode": "3623",
  "x-is-own": false,
  "x-is-op": false
}