📖 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 = {
  "inputs": {
    "captions": {
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/bcbf66da-21bb-11f0-bc2c-02420a000126/loralora.jpg": "face of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b630e276-21bb-11f0-b982-02420a000123/Screenshot%202025-04-25%20at%203.26.12PM.png": "forest kit of doralora",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b631ea5e-21bb-11f0-8735-02420a00012e/Screenshot%202025-04-25%20at%203.26.15PM.png": "back of doralora",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6382e1e-21bb-11f0-8988-02420a000128/Screenshot%202025-04-25%20at%203.26.25PM.png": "face of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b63e811a-21bb-11f0-951d-02420a000123/Screenshot%202025-04-25%20at%203.26.27PM.png": "face of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b64bc9ce-21bb-11f0-bc2c-02420a000126/Screenshot%202025-04-25%20at%203.26.08PM.png": "fashion and clothing style of doralora",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6dec120-21bb-11f0-951d-02420a000123/Screenshot%202025-04-25%20at%203.25.41PM.png": "full character drawing of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6e96bde-21bb-11f0-8988-02420a000128/Screenshot%202025-04-25%20at%203.26.00PM.png": "full character drawing of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6f9533c-21bb-11f0-bc2c-02420a000126/Screenshot%202025-04-25%20at%203.25.55PM.png": "full character drawing of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b70448be-21bb-11f0-8735-02420a00012e/Screenshot%202025-04-25%20at%203.26.03PM.png": "full character drawing of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/aef2c074-21bb-11f0-b982-02420a000123/gooey.ai%20-%20create%20the%20character%20sheet%20of%20a%20cute%203d%20character%20a%20young%20girl%20who%20is%20a%20forest%20explorer%20.png": "character sheet of doralora a forest explorer"
    },
    "model_type": "concept",
    "input_images": [
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/76e41a2e-34e0-11f0-9a8f-02420a000164/gooey.ai%20-%20A%20futuristic%20Arcane-style%20animation%20o...ng%20light%20with%20neon%20blue-yellow%20color%20palette.%20%202.png",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/794dc8d2-34e0-11f0-9a8f-02420a000164/v3.fal.media_files_zebra_FfSxrORW-Hl3n7EKgb1ps_75d8103143ea4e0ca196eddb084d20fc.png"
    ],
    "trigger_word": "d!3sel"
  }
};

async function gooeyAPI() {
  const response = await fetch("https://api.gooey.ai/v2/model-trainer?example_id=yy1hzzgqfelo", {
    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 = {
    "inputs": {
        "captions": {
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/bcbf66da-21bb-11f0-bc2c-02420a000126/loralora.jpg": "face of doralora a forest explorer",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b630e276-21bb-11f0-b982-02420a000123/Screenshot%202025-04-25%20at%203.26.12PM.png": "forest kit of doralora",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b631ea5e-21bb-11f0-8735-02420a00012e/Screenshot%202025-04-25%20at%203.26.15PM.png": "back of doralora",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6382e1e-21bb-11f0-8988-02420a000128/Screenshot%202025-04-25%20at%203.26.25PM.png": "face of doralora a forest explorer",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b63e811a-21bb-11f0-951d-02420a000123/Screenshot%202025-04-25%20at%203.26.27PM.png": "face of doralora a forest explorer",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b64bc9ce-21bb-11f0-bc2c-02420a000126/Screenshot%202025-04-25%20at%203.26.08PM.png": "fashion and clothing style of doralora",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6dec120-21bb-11f0-951d-02420a000123/Screenshot%202025-04-25%20at%203.25.41PM.png": "full character drawing of doralora a forest explorer",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6e96bde-21bb-11f0-8988-02420a000128/Screenshot%202025-04-25%20at%203.26.00PM.png": "full character drawing of doralora a forest explorer",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6f9533c-21bb-11f0-bc2c-02420a000126/Screenshot%202025-04-25%20at%203.25.55PM.png": "full character drawing of doralora a forest explorer",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b70448be-21bb-11f0-8735-02420a00012e/Screenshot%202025-04-25%20at%203.26.03PM.png": "full character drawing of doralora a forest explorer",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/aef2c074-21bb-11f0-b982-02420a000123/gooey.ai%20-%20create%20the%20character%20sheet%20of%20a%20cute%203d%20character%20a%20young%20girl%20who%20is%20a%20forest%20explorer%20.png": "character sheet of doralora a forest explorer",
        },
        "model_type": "concept",
        "input_images": [
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/76e41a2e-34e0-11f0-9a8f-02420a000164/gooey.ai%20-%20A%20futuristic%20Arcane-style%20animation%20o...ng%20light%20with%20neon%20blue-yellow%20color%20palette.%20%202.png",
            "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/794dc8d2-34e0-11f0-9a8f-02420a000164/v3.fal.media_files_zebra_FfSxrORW-Hl3n7EKgb1ps_75d8103143ea4e0ca196eddb084d20fc.png",
        ],
        "trigger_word": "d!3sel",
    }
}

response = requests.post(
    "https://api.gooey.ai/v2/model-trainer?example_id=yy1hzzgqfelo",
    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/model-trainer?example_id=yy1hzzgqfelo' \
  -H "Authorization: bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "inputs": {
    "captions": {
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/bcbf66da-21bb-11f0-bc2c-02420a000126/loralora.jpg": "face of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b630e276-21bb-11f0-b982-02420a000123/Screenshot%202025-04-25%20at%203.26.12PM.png": "forest kit of doralora",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b631ea5e-21bb-11f0-8735-02420a00012e/Screenshot%202025-04-25%20at%203.26.15PM.png": "back of doralora",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6382e1e-21bb-11f0-8988-02420a000128/Screenshot%202025-04-25%20at%203.26.25PM.png": "face of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b63e811a-21bb-11f0-951d-02420a000123/Screenshot%202025-04-25%20at%203.26.27PM.png": "face of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b64bc9ce-21bb-11f0-bc2c-02420a000126/Screenshot%202025-04-25%20at%203.26.08PM.png": "fashion and clothing style of doralora",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6dec120-21bb-11f0-951d-02420a000123/Screenshot%202025-04-25%20at%203.25.41PM.png": "full character drawing of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6e96bde-21bb-11f0-8988-02420a000128/Screenshot%202025-04-25%20at%203.26.00PM.png": "full character drawing of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b6f9533c-21bb-11f0-bc2c-02420a000126/Screenshot%202025-04-25%20at%203.25.55PM.png": "full character drawing of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b70448be-21bb-11f0-8735-02420a00012e/Screenshot%202025-04-25%20at%203.26.03PM.png": "full character drawing of doralora a forest explorer",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/aef2c074-21bb-11f0-b982-02420a000123/gooey.ai%20-%20create%20the%20character%20sheet%20of%20a%20cute%203d%20character%20a%20young%20girl%20who%20is%20a%20forest%20explorer%20.png": "character sheet of doralora a forest explorer"
    },
    "model_type": "concept",
    "input_images": [
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/76e41a2e-34e0-11f0-9a8f-02420a000164/gooey.ai%20-%20A%20futuristic%20Arcane-style%20animation%20o...ng%20light%20with%20neon%20blue-yellow%20color%20palette.%20%202.png",
      "https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/794dc8d2-34e0-11f0-9a8f-02420a000164/v3.fal.media_files_zebra_FfSxrORW-Hl3n7EKgb1ps_75d8103143ea4e0ca196eddb084d20fc.png"
    ],
    "trigger_word": "d!3sel"
  }
}'

🎁 Example Response

{4 Items
"id"
:
string
"vmoelwp8gs21"
"url"
:
string
"https://gooey.ai/model-trainer/"
"created_at"
:
string
"2025-05-19T18:38:58.797755+00:00"
"output"
:
{1 Items
"model_url"
:
string
"https://v3.fal.media/files/rabbit/7o829fLoT87fQXCf"
}
}

Please Login to generate the $GOOEY_API_KEY