Pictory GPT for Videos

Pictory GPT for Videos · GPT Actions

Pictory Text to Video

Generate video from text.

  • POST /v1/videoStart a text to video job and returns jobId in response body
  • GET /v1/jobs/{jobId}gets the job status from the given jobId
原始 API 定义
{
  "openapi": "3.0.3",
  "info": {
    "title": "Pictory Text to Video",
    "description": "Generate video from text.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://chat2video.pictory.ai"
    }
  ],
  "paths": {
    "/v1/video": {
      "post": {
        "operationId": "startTextToVideoJob",
        "summary": "Start a text to video job and returns jobId in response body",
        "x-openai-isConsequential": false,
        "requestBody": {
          "description": "Start a text to video job and returns jobId in response body",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/textToVideoSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/jobResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/jobs/{jobId}": {
      "get": {
        "operationId": "getJobStatus",
        "summary": "gets the job status from the given jobId",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "description": "The job id of the text to video job",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/jobStatusResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "textToVideoSchema": {
        "required": [
          "text"
        ],
        "type": "object",
        "properties": {
          "text": {
            "description": "Video script",
            "type": "string"
          },
          "speakerVoice": {
            "description": "Narrator name",
            "type": "string"
          },
          "aspectRatio": {
            "description": "Video aspect ratio",
            "type": "string",
            "enum": [
              "horizontal",
              "vertical",
              "square"
            ]
          }
        }
      },
      "jobResponse": {
        "type": "object",
        "properties": {
          "jobId": {
            "description": "Unique Id of the Job",
            "type": "string"
          },
          "status": {
            "description": "Job status",
            "type": "string"
          },
          "statusMessage": {
            "type": "string",
            "description": "A message about job progress",
            "nullable": true
          }
        }
      },
      "jobStatusResponse": {
        "type": "object",
        "properties": {
          "status": {
            "description": "Job status",
            "type": "string"
          },
          "statusMessage": {
            "type": "string",
            "description": "A message about job progress",
            "nullable": true
          },
          "video": {
            "type": "string",
            "description": "The video url of the generated video from text",
            "required": [
              "text"
            ],
            "nullable": true
          }
        }
      }
    }
  }
}