Getting started

You can interact with our APIs through node.js, python or curl


Gooey.AI allows single API key for several workflows. So whether you are including AI images in your app or making a highly customized AI Copilot, you can access our whole suite of workflows through a single API key.


You can click on "Create new secret key"

A new API KEY will appear

Copy the key and use it for your API Requests.

Make sure you don't share your API KEY with anyone! 🚫


Remember that your API key is a secret! Do not share it with others or expose it in any client-side code (browsers, apps). Production requests must be routed through your own backend server where your API key can be securely loaded from an environment variable or key management service.

All API requests should include your API key in an Authorization HTTP header as follows:

"Authorization": "Bearer " + GOOEY_API_KEY


Let's make an example request to the lipsyncTTS API

Step 1

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 init
$ npm install node-fetch
$ export GOOEY_API_KEY=sk-xxxx

Step 2

Use this sample code to call the API. Make sure to include the full code snippet and the error message.

import fetch from 'node-fetch';

const payload = {
  "input_face": "",
  "text_prompt": "Add your text prompt for Lipsync TTS here"

async function gooeyAPI() {
  const response = await fetch("", {
    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);


This is what the example response will look like:

  "id": "aghpjaxi",
  "url": "",
  "created_at": "2023-05-16T13:48:08.093970+00:00",
  "output": {
    "output_video": ""

Last updated