API: Lipsync Animation Generator

Create realistic lipsync videos with custom voices. Just upload a video or image, choose or bring your own voice from ElevenLabs to generate amazing videos with the Gooey.AI Lipsync Maker.

๐Ÿ“– To learn more, take a look at our complete API

๐Ÿ“ค Example Request

  1. Generate an api key below๐Ÿ‘‡

  2. Install node-fetch & add the GOOEY_API_KEY to your environment variables. Never store the api key in your code and don't use direcly in the browser.

$ npm install node-fetch
$ export GOOEY_API_KEY=sk-xxxx
  1. Use this sample code to call the API. If you encounter any issues, write to us at [email protected] and make sure to include the full code snippet and the error message.
import fetch from 'node-fetch';

const payload = {
  "input_face": "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/a904b3d8-b5ca-11ee-8095-02420a000162/1705559090491267.mp4",
  "text_prompt": "Well, here at last, dear friends, on the shores of the Sea comes the end of our fellowship in Middle-earth. Go in peace! I will not say: do not weep; for not all tears are an evil.",
  "tts_provider": "GOOGLE_TTS"
};

async function gooeyAPI() {
  const response = await fetch("https://api.gooey.ai/v2/LipsyncTTS/", {
    method: "POST",
    headers: {
      "Authorization": "Bearer " + process.env["GOOEY_API_KEY"],
      "Content-Type": "application/json",
    },
    body: JSON.stringify(payload),
  });

  if (!response.ok) {
    throw new Error(response.status);
  }

  const result = await response.json();
  console.log(response.status, result);
}

gooeyAPI();
  1. Generate an api key below๐Ÿ‘‡

  2. Install requests & add the GOOEY_API_KEY to your environment variables. Never store the api key in your code.

$ python3 -m pip install requests
$ export GOOEY_API_KEY=sk-xxxx
  1. Use this sample code to call the API. If you encounter any issues, write to us at [email protected] and make sure to include the full code snippet and the error message.
import os
import requests

payload = {
    "input_face": "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/a904b3d8-b5ca-11ee-8095-02420a000162/1705559090491267.mp4",
    "text_prompt": "Well, here at last, dear friends, on the shores of the Sea comes the end of our fellowship in Middle-earth. Go in peace! I will not say: do not weep; for not all tears are an evil.",
    "tts_provider": "GOOGLE_TTS",
}

response = requests.post(
    "https://api.gooey.ai/v2/LipsyncTTS/",
    headers={
        "Authorization": "Bearer " + os.environ["GOOEY_API_KEY"],
    },
    json=payload,
)
assert response.ok, response.content

result = response.json()
print(response.status_code, result)
  1. Generate an api key below๐Ÿ‘‡

  2. Install curl & add the GOOEY_API_KEY to your environment variables. Never store the api key in your code.

export GOOEY_API_KEY=sk-xxxx
  1. Run the following curl command in your terminal. If you encounter any issues, write to us at [email protected] and make sure to include the full curl command and the error message.
curl https://api.gooey.ai/v2/LipsyncTTS/ \
  -H "Authorization: Bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "input_face": "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/a904b3d8-b5ca-11ee-8095-02420a000162/1705559090491267.mp4",
  "text_prompt": "Well, here at last, dear friends, on the shores of the Sea comes the end of our fellowship in Middle-earth. Go in peace! I will not say: do not weep; for not all tears are an evil.",
  "tts_provider": "GOOGLE_TTS"
}'

๐ŸŽ Example Response

{4 Items
"id"
:
string
"hjvwtk8rrljj"
"url"
:
string
"https://gooey.ai/lipsync-maker/"
"created_at"
:
string
"2024-01-18T16:05:09.566093+00:00"
"output"
:
{1 Items
"output_video"
:
string
"https://storage.googleapis.com/dara-c1b52.appspot.โ€ฆ"
}
}

Please Login to generate the $GOOEY_API_KEY