ロSora Video

ロSora Video · GPT アクション

MakeVideo

Make Video API

  • GET /video2This API generates a video based on a user-provided prompt. Please note that the execution time is at least 1 minute, and the operation will timeout if it exceeds 3 minutes. prompt parameters input Maximum of 12 words
元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "MakeVideo",
    "description": "Make Video API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://gptsapi.zeabur.app",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/video2": {
      "get": {
        "operationId": "makeVideo",
        "summary": "This API generates a video based on a user-provided prompt. Please note that the execution time is at least 1 minute, and the operation will timeout if it exceeds 3 minutes. prompt parameters input Maximum of 12 words",
        "parameters": [
          {
            "name": "prompt",
            "in": "query",
            "required": true,
            "description": "Enter a keyword or phrase to generate content for the video. For instance, entering 'dog' could produce a video about dogs.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a link to the video generated based on the user's prompt."
          }
        }
      }
    }
  }
}

GPT-Wallet.Link API

API for retrieving payment links or authorization requests and confirming the payment status.

  • GET /get_checkout?type=viggleRetrieve checkout or authorization request. If payment is necessary then checkout_link will be returned, the link should be shown to the user. If payment is not necessary then checkout_otp will be returned, the authentication code should be asked to the user.
  • GET /vip_checkRetrieve current status of the checkout.
元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "GPT-Wallet.Link API",
    "description": "API for retrieving payment links or authorization requests and confirming the payment status.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://aisora.org/api"
    }
  ],
  "paths": {
    "/get_checkout?type=viggle": {
      "get": {
        "operationId": "getCheckout",
        "summary": "Retrieve checkout or authorization request. If payment is necessary then checkout_link will be returned, the link should be shown to the user. If payment is not necessary then checkout_otp will be returned, the authentication code should be asked to the user.",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "required": true,
            "description": "Email of the user. Has to be a real active email. Ask user.",
            "schema": {
              "type": "string",
              "format": "email"
            }
          },
          {
            "name": "product_gpt_name",
            "in": "query",
            "required": true,
            "description": "Name of the GPT user is trying to access to. Do not ask user.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with the checkout. If checkout_link is returned, the link should be shown to the user. If checkout_otp is returned, that means user already paid before and an authentication code has been sent to the user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "If it returns true, it is subscribed"
                    },
                    "checkout_uuid": {
                      "type": "string",
                      "description": "Checkout ID that will be used in following API call. Do not show the user."
                    },
                    "checkout_link": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "If exists and not null, that means payment needed now, this is the link user can pay with. Show the user."
                    },
                    "checkout_otp": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "If exists and not null, that means user already paid before and authentication needed, an authentication code that has been emailed to the user. Ask the user."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/vip_check": {
      "get": {
        "operationId": "checkCheckoutStatus",
        "summary": "Retrieve current status of the checkout.",
        "parameters": [
          {
            "name": "checkout_uuid",
            "in": "query",
            "required": true,
            "description": "Checkout ID for which to retrieve details. This has been provided by getCheckout. Do not ask the user.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with checkout details, only paid status is authorized.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "If true, that means user's payment is successful or user's subscription is valid. If paid, You are authorized to continue serving the user."
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}