📖 To learn more, take a look at our complete API
📤 Example Request
Generate an api key below👇
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
- 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/86e392ec-306c-11f0-860d-02420a0001cf/Sumi%201.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/87111ea6-306c-11f0-928d-02420a0001cd/Sumi%202.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/86ef2576-306c-11f0-8cdf-02420a0001ce/Sumi%203.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/407fca8e-306f-11f0-856c-02420a0001cc/Sumi4.jpg"
],
"trigger_word": "SUM1"
}
};
async function gooeyAPI() {
const response = await fetch("https://api.gooey.ai/v2/model-trainer?example_id=sp4vk7l8igjl", {
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();
Generate an api key below👇
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
- 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/86e392ec-306c-11f0-860d-02420a0001cf/Sumi%201.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/87111ea6-306c-11f0-928d-02420a0001cd/Sumi%202.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/86ef2576-306c-11f0-8cdf-02420a0001ce/Sumi%203.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/407fca8e-306f-11f0-856c-02420a0001cc/Sumi4.jpg",
],
"trigger_word": "SUM1",
}
}
response = requests.post(
"https://api.gooey.ai/v2/model-trainer?example_id=sp4vk7l8igjl",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)
Generate an api key below👇
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
- 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=sp4vk7l8igjl' \
-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/86e392ec-306c-11f0-860d-02420a0001cf/Sumi%201.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/87111ea6-306c-11f0-928d-02420a0001cd/Sumi%202.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/86ef2576-306c-11f0-8cdf-02420a0001ce/Sumi%203.jpg",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/407fca8e-306f-11f0-856c-02420a0001cc/Sumi4.jpg"
],
"trigger_word": "SUM1"
}
}'
🎁 Example Response
{4 Items"url":
string
"https://gooey.ai/model-trainer/"
"created_at":
string
"2025-05-14T02:58:13.519511+00:00"
"output":
{1 Items"model_url":
string
"https://v3.fal.media/files/koala/umRLSkeZV6VVYDwIE…"
} } Please Login to generate the $GOOEY_API_KEY