Bridge by Wekoya / Docs / Media

Music

Updated

Jingles, background tracks and full songs from a description, by Google's Lyria, on POST /v1/audio/music. lyria-3-clip-preview makes a 30-second clip in about 10 seconds (₦70.20); lyria-3-pro-preview and lyria-3.5 make a full song of about three minutes in 25 to 50 seconds (₦140.40). Lyria writes and sings its own lyrics unless you ask for an instrumental; they come back in lyrics.

To show a price before something is made, GET /v1/models?type=image, type=music, type=video or type=search gives each model's wekoya.unit (image, song, second or search) and wekoya.cost_per_unit in your currency, with cost_per_unit_by_size for pictures and videos. A picture's price is about what its size costs; the charge is what the model actually used.

curl https://wekoya-api.wekoya.tech/v1/audio/music \
  -H "Authorization: Bearer $WEKOYA_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "lyria-3-clip-preview", "prompt": "Cheerful highlife guitar jingle for a bakery, instrumental" }'

{ "object": "music", "model": "lyria-3-clip-preview", "duration": 30.8,
  "audio": { "b64": "SUQz…", "mime_type": "audio/mpeg" },
  "lyrics": null, "wekoya": { "cost": 70.2, "currency": "NGN" } }