Video Maker GPT by Visla

Video Maker GPT by Visla · GPT 작업

VideoGPT by Visla

Visla OpenAPI specification for Video GPT

  • POST /gpts/v1/create-video-from-scriptAPI to create a video from a script and return a link to the video and a claim code for saving the video
원본 API 스키마
{
  "openapi": "3.0.3",
  "info": {
    "title": "VideoGPT by Visla",
    "description": "Visla OpenAPI specification for Video GPT",
    "contact": {
      "name": "Visla Engineering Team",
      "email": "developer@visla.us"
    },
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://openapi.visla.us",
      "description": "Open API Url"
    }
  ],
  "tags": [
    {
      "name": "gpts-create-video-endpoint",
      "description": "Visla Video GPT Create Video Endpoint. This endpoint is used to create video and return a link to the video and claim code for saving the video."
    }
  ],
  "paths": {
    "/gpts/v1/create-video-from-script": {
      "post": {
        "tags": [
          "gpts-create-video-endpoint"
        ],
        "summary": "API to create a video from a script and return a link to the video and a claim code for saving the video",
        "operationId": "createVideoFromScriptUsingPOST",
        "parameters": [],
        "requestBody": {
          "description": "Request body containing user-defined inputs for the video.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVideoFromScriptReqBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Result«GPTsProjectPreviewVo»"
                }
              }
            }
          },
          "201": {
            "description": "Created"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "VideoMetadata": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "The name or title of the video. It is a concise summary that reflects the content of the video and is typically used to attract viewer's attention and provide a clue about the video's content.",
            "example": "Mastering Self-Doubt: A Journey Towards Self-Belief"
          },
          "description": {
            "type": "string",
            "description": "A detailed summary of the video's content. This is typically used to provide more information about the video, such as the topics covered, featured guests or locations, or the purpose of the video. It also often includes keywords to help viewers find the video through search.",
            "example": "Join us on this motivational journey where we tackle the issue of self-doubt, using inspiring quotes, powerful imagery, and uplifting music. Let's boost your self-confidence and reshape your perspective towards life."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tags or keywords associated with the video. These are used to help categorize the video and make it more discoverable to users searching for related content. Tags can be single words or short phrases related to the video's subject, theme, or context.",
            "example": [
              "Self-Doubt",
              "Motivation",
              "Inspiration",
              "Self-Belief",
              "Personal Growth"
            ]
          }
        }
      },
      "CreateVideoFromScriptReqBody": {
        "title": "CreateVideoFromScriptReqBody",
        "type": "object",
        "properties": {
          "script": {
            "type": "string",
            "description": "The video script or voiceover audio script for the video, which can be up to 10000 characters long.",
            "maxLength": 10000
          },
          "video_metadata": {
            "$ref": "#/components/schemas/VideoMetadata"
          }
        },
        "required": [
          "script",
          "video_metadata"
        ]
      },
      "GPTsProjectPreviewVo": {
        "title": "GPTsProjectPreviewVo",
        "type": "object",
        "properties": {
          "video_claim_code": {
            "type": "string",
            "description": "claim code for the user to save the video in order to continue editing or downloading. Friendly reminder: claim code expires after 24 hours"
          },
          "video_link": {
            "type": "string",
            "description": "url link to preview the video"
          },
          "video_metadata": {
            "type": "object",
            "description": "Metadata of the video",
            "properties": {
              "title": {
                "type": "string",
                "description": "The title of the video. It briefly encapsulates the content, attracting viewers and hinting at the subject matter."
              },
              "description": {
                "type": "string",
                "description": "A detailed summary providing additional context about the video content."
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Keywords associated with the video, helping in categorization and discoverability."
              }
            }
          }
        },
        "description": "response of user-created video via Visla video GPT"
      },
      "Result«GPTsProjectPreviewVo»": {
        "title": "Result«GPTsProjectPreviewVo»",
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "result code",
            "format": "int32",
            "example": 0
          },
          "data": {
            "$ref": "#/components/schemas/GPTsProjectPreviewVo"
          },
          "msg": {
            "type": "string",
            "description": "result message",
            "example": "success"
          },
          "trackingId": {
            "type": "string",
            "description": "trace id",
            "example": "0af7651916cd43dd8448eb211c80319c"
          }
        },
        "description": "result object"
      }
    }
  }
}