Video AI by invideo

Video AI by invideo · GPT Actions

invideo AI

Plugin for starting Agent One from briefs and scripts.

  • POST /api/copilot/request/chatgpt-new-agent-from-briefStart Agent One from a brief.
  • POST /api/copilot/request/chatgpt-new-agent-from-scriptStart Agent One from a script.
原始 API 定义
{
  "openapi": "3.1.1",
  "info": {
    "title": "invideo AI",
    "version": "v1",
    "description": "Plugin for starting Agent One from briefs and scripts."
  },
  "servers": [
    {
      "url": "https://video-ai.invideo.io/"
    }
  ],
  "paths": {
    "/api/copilot/request/chatgpt-new-agent-from-brief": {
      "post": {
        "operationId": "generateAgentFromBrief",
        "summary": "Start Agent One from a brief.",
        "x-openai-isConsequential": false,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentFromBriefInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/copilot/request/chatgpt-new-agent-from-script": {
      "post": {
        "operationId": "generateAgentFromScript",
        "summary": "Start Agent One from a script.",
        "x-openai-isConsequential": false,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentFromScriptInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AgentFromBriefInput": {
        "type": "object",
        "properties": {
          "brief": {
            "type": "string",
            "description": "Plain English text starting with 'Create a video' or 'Create a [platform] video'."
          },
          "project_name": {
            "type": "string"
          },
          "agent_name": {
            "type": "string"
          },
          "openaiFileIdRefs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenAiFileIdRef"
            },
            "description": "Files uploaded by the user in ChatGPT, if any."
          }
        },
        "required": [
          "brief",
          "project_name",
          "agent_name"
        ]
      },
      "AgentFromScriptInput": {
        "type": "object",
        "properties": {
          "script": {
            "type": "string"
          },
          "project_name": {
            "type": "string"
          },
          "agent_name": {
            "type": "string"
          },
          "openaiFileIdRefs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenAiFileIdRef"
            },
            "description": "Files uploaded by the user in ChatGPT, if any."
          }
        },
        "required": [
          "script",
          "project_name",
          "agent_name"
        ]
      },
      "OpenAiFileIdRef": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "mime_type": {
            "type": "string"
          },
          "download_link": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "name",
          "id",
          "download_link"
        ]
      },
      "AgentResponse": {
        "type": "object",
        "properties": {
          "video_url": {
            "type": "string",
            "format": "uri"
          },
          "thumbnail_url": {
            "type": "string",
            "nullable": true
          }
        }
      }
    }
  }
}