Skip to main content
POST
/
api
/
generate
/
submit
curl --request POST \
  --url https://api.vidgo.ai/api/generate/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "add-instrumental",
  "callback_url": "https://your-domain.com/callback",
  "input": {
    "upload_url": "https://storage.example.com/vocals.mp3",
    "title": "Relaxing Piano",
    "tags": "relaxing, piano, soothing",
    "negative_tags": "heavy metal, fast drums"
  }
}
'
{
  "code": 200,
  "data": {
    "task_id": "task-unified-1757165031-uyujaw3d",
    "status": "not_started",
    "created_time": "2025-11-12T10:30:00"
  }
}
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the response result through the unified Query Music Detail endpoint.

Usage Guide

  • This endpoint generates musical accompaniment for uploaded audio files
  • Typically used with vocal stems or melodies to create backing tracks
  • Perfect for adding instrumental layers to existing recordings without needing a producer

Parameter Details

  • Required parameters:
    • upload_url: URL of the audio file to process
    • title: Name for the generated track
    • tags: Desired musical styles (e.g., “relaxing, piano, soothing”)
    • negative_tags: Styles to exclude (e.g., “heavy metal, fast drums”)
  • Model selection:
    • V5: Superior musical expressiveness with faster generation
    • V4_5PLUS: Enhanced tonal richness (default)

Developer Notes

  • Use descriptive tags to guide the style of the instrumental
  • Combine positive and negative tags for precise control over the output
  • The callback mechanism sends notifications at three stages: text generation, first track completion, and all tracks completed

Optional parameters

  • model (string): AI model version. Options: V4_5PLUS (default), V5.
  • vocal_gender (string): Vocal gender preference. Use m for male, f for female. Note: This parameter can only increase the probability but cannot guarantee the specified gender.
  • style_weight (number): Strength of adherence to style. Range 0-1, up to 2 decimals.
  • weirdness_constraint (number): Controls creative deviation. Range 0-1, up to 2 decimals.
  • audio_weight (number): Balance weight for audio features. Range 0-1, up to 2 decimals.

Authorizations

Authorization
string
header
required

All API endpoints require Bearer Token authentication

Get your API Key:

Visit the API Key Management Page to get your API Key

Add it to the request header:

Authorization: Bearer VIDGO_API_KEY

Body

application/json
model
enum<string>
required

API model identifier.

Must be add-instrumental for this endpoint.

Available options:
add-instrumental
Example:

"add-instrumental"

input
object
required

Input parameters for instrumental generation

callback_url
string<uri>

Webhook callback URL for result notifications

Example:

"https://your-domain.com/callback"

Response

200 - application/json

Task submitted successfully

code
integer
required

HTTP status code

Example:

200

data
object
required