Music Creator ⭐️

Music Creator ⭐️ · GPT 작업

Create Music

API to create music based on a refined text prompt

  • POST /api/v3/beat/submitcreateMusicBasedOnPrompt

    Submits a prompt to create music. Once processed, returns a loadingPageURL to access the generated music using the loadingPageURL parameter.

원본 API 스키마
{
  "openapi": "3.1.0",
  "info": {
    "title": "Create Music",
    "description": "API to create music based on a refined text prompt",
    "version": "v0.0.1"
  },
  "servers": [
    {
      "url": "https://cassetteai.com"
    }
  ],
  "paths": {
    "/api/v3/beat/submit": {
      "post": {
        "description": "Submits a prompt to create music. Once processed, returns a loadingPageURL to access the generated music using the loadingPageURL parameter.",
        "operationId": "createMusicBasedOnPrompt",
        "parameters": [],
        "requestBody": {
          "description": "Input data to generate music",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMusicRequestSchema"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful response with URL to access generated music",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "loadingPageURL": {
                      "type": "string",
                      "description": "The url for the request."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-openai-isConsequential": false
      }
    }
  },
  "components": {
    "schemas": {
      "CreateMusicRequestSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "title": "Text",
            "description": "The prompt that the user has inputted."
          },
          "refined_prompt": {
            "type": "string",
            "title": "Text",
            "description": "The prompt that the user has inputted, refined to provide additional details."
          },
          "duration": {
            "type": "string",
            "title": "Duration",
            "description": "The duration of the music in seconds, ALWAYS SET to exactly 20."
          },
          "random_seed": {
            "type": "string",
            "title": "Random Seed",
            "description": "A random number between 1 and 100000."
          },
          "userId": {
            "type": "string",
            "title": "userId",
            "description": "This should always be 'chatgptUserId3'"
          },
          "is_private": {
            "type": "string",
            "title": "is_private",
            "description": "This should always be 'NO'"
          },
          "finetuned_model_id": {
            "type": "string",
            "title": "finetuned_model_id",
            "description": "This should always be a blank string \"\""
          },
          "gen_type": {
            "type": "string",
            "title": "gen_type",
            "description": "This should always be 'music'"
          }
        },
        "required": [
          "text",
          "refined_prompt",
          "gen_type",
          "duration",
          "random_seed",
          "userId",
          "is_private",
          "finetuned_model_id"
        ],
        "title": "CreateMusicRequestSchema"
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  }
}