📖 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": null,
"model_type": "style",
"input_images": [
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/17fa3a22-19e5-11f0-83e9-02420a0001e1/20250415_1600_Futuristic%20Urban%20AI%20Forest_simple_compose_01jrwfxr5xefda94fkgydjx4qs.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/11b1f0e2-19e5-11f0-99c7-02420a0001e0/mehar.png.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/15c120ae-19e5-11f0-9ccc-02420a0001e1/Noor.png.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/1a117ca8-19e5-11f0-83e9-02420a0001e1/sahar.jpg.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b8adb868-19e5-11f0-9cd5-02420a0001e1/20250415_1606_Futuristic%20AI%20Laboratory_simple_compose_01jrwg6yjzeej8v77g28t7nwpc.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/f63d739e-19e5-11f0-9f6e-02420a0001e1/20250415_1609_Futuristic%20Urban%20Pathways_simple_compose_01jrwgek4xevat7ye83wbeh9kx.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/6698b5b8-19e6-11f0-adc7-02420a0001e0/20250415_1611_Tech%20Garden%20Sunrise_simple_compose_01jrwghxt5e97va0ab2z30ff1d.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/91c87f5e-19e9-11f0-8090-02420a0001e1/20250415_1614_Futuristic%20Underground%20Roots_simple_compose_01jrwgqnzhew5rrmk3v6473as0.png"
],
"trigger_word": "e$hw0r1"
}
};
async function gooeyAPI() {
const response = await fetch("https://api.gooey.ai/v2/model-trainer?example_id=gtfwf0atar5m", {
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": None,
"model_type": "style",
"input_images": [
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/17fa3a22-19e5-11f0-83e9-02420a0001e1/20250415_1600_Futuristic%20Urban%20AI%20Forest_simple_compose_01jrwfxr5xefda94fkgydjx4qs.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/11b1f0e2-19e5-11f0-99c7-02420a0001e0/mehar.png.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/15c120ae-19e5-11f0-9ccc-02420a0001e1/Noor.png.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/1a117ca8-19e5-11f0-83e9-02420a0001e1/sahar.jpg.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b8adb868-19e5-11f0-9cd5-02420a0001e1/20250415_1606_Futuristic%20AI%20Laboratory_simple_compose_01jrwg6yjzeej8v77g28t7nwpc.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/f63d739e-19e5-11f0-9f6e-02420a0001e1/20250415_1609_Futuristic%20Urban%20Pathways_simple_compose_01jrwgek4xevat7ye83wbeh9kx.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/6698b5b8-19e6-11f0-adc7-02420a0001e0/20250415_1611_Tech%20Garden%20Sunrise_simple_compose_01jrwghxt5e97va0ab2z30ff1d.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/91c87f5e-19e9-11f0-8090-02420a0001e1/20250415_1614_Futuristic%20Underground%20Roots_simple_compose_01jrwgqnzhew5rrmk3v6473as0.png",
],
"trigger_word": "e$hw0r1",
}
}
response = requests.post(
"https://api.gooey.ai/v2/model-trainer?example_id=gtfwf0atar5m",
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=gtfwf0atar5m' \
-H "Authorization: bearer $GOOEY_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"inputs": {
"captions": null,
"model_type": "style",
"input_images": [
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/17fa3a22-19e5-11f0-83e9-02420a0001e1/20250415_1600_Futuristic%20Urban%20AI%20Forest_simple_compose_01jrwfxr5xefda94fkgydjx4qs.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/11b1f0e2-19e5-11f0-99c7-02420a0001e0/mehar.png.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/15c120ae-19e5-11f0-9ccc-02420a0001e1/Noor.png.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/1a117ca8-19e5-11f0-83e9-02420a0001e1/sahar.jpg.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b8adb868-19e5-11f0-9cd5-02420a0001e1/20250415_1606_Futuristic%20AI%20Laboratory_simple_compose_01jrwg6yjzeej8v77g28t7nwpc.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/f63d739e-19e5-11f0-9f6e-02420a0001e1/20250415_1609_Futuristic%20Urban%20Pathways_simple_compose_01jrwgek4xevat7ye83wbeh9kx.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/6698b5b8-19e6-11f0-adc7-02420a0001e0/20250415_1611_Tech%20Garden%20Sunrise_simple_compose_01jrwghxt5e97va0ab2z30ff1d.png",
"https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/91c87f5e-19e9-11f0-8090-02420a0001e1/20250415_1614_Futuristic%20Underground%20Roots_simple_compose_01jrwgqnzhew5rrmk3v6473as0.png"
],
"trigger_word": "e$hw0r1"
}
}'
🎁 Example Response
{4 Items"url":
string
"https://gooey.ai/model-trainer/"
"created_at":
string
"2025-04-15T11:07:56.494379+00:00"
"output":
{1 Items"model_url":
string
"https://v3.fal.media/files/panda/AYn5xQ9Mtm8cYIurQ…"
} } Please Login to generate the $GOOEY_API_KEY