---
agentTools:
  projectIndex: https://uberduck.readme.io/llms.txt
---

# Generate Freestyle

Generate a rapped freestyle.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Uberduck Text To Speech API",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://api.uberduck.ai"
    },
    {
      "url": "http://localhost:8003"
    }
  ],
  "paths": {
    "/tts/freestyle": {
      "post": {
        "summary": "Generate Freestyle",
        "operationId": "generate_freestyle_tts_freestyle_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FreestyleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBasic": []
          },
          {
            "HTTPBearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "FreestyleRequest": {
        "title": "FreestyleRequest",
        "type": "object",
        "properties": {
          "subject": {
            "title": "Subject",
            "type": "string"
          },
          "lines": {
            "title": "Lines",
            "type": "integer"
          },
          "lyrics": {
            "title": "Lyrics",
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "bpm": {
            "title": "Bpm",
            "type": "number",
            "default": 90
          },
          "backing_track": {
            "title": "Backing Track",
            "type": "string"
          },
          "voice": {
            "title": "Voice",
            "type": "string",
            "default": "zwf"
          },
          "voicemodel_uuid": {
            "title": "Voicemodel Uuid",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "format": {
            "title": "Format",
            "enum": [
              "binary",
              "json"
            ],
            "type": "string",
            "default": "json"
          },
          "campaign_name": {
            "title": "Campaign Name",
            "type": "string"
          },
          "campaign_email": {
            "title": "Campaign Email",
            "type": "string"
          }
        }
      },
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "ValidationError": {
        "title": "ValidationError",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Location",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "HTTPBasic": {
        "type": "http",
        "scheme": "basic"
      },
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 90,
      "2": 123,
      "3": 202,
      "4": 119,
      "5": 115,
      "6": 54,
      "7": 49,
      "8": 97,
      "9": 213,
      "10": 116,
      "11": 44
    }
  }
}
```