📖 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 = {
"text_prompt": "\n\nIn today\u2019s world, we see that our society has become a world of consumption. Both national and international companies\u2014and even customers\u2014seem to only use the Earth\u2019s resources without caring about climate change. This careless attitude has made climate change happen so fast that in the future, it may be nearly impossible to handle.\n\nMy story is set in a future where this trend finally changes. I am Bubun Samanta, a proud disciple of Acharya Prashant. Inspired by my teacher\u2019s teachings of living in harmony with nature, I have taken up the mission to change how we think about and use our resources.\n\nImagine it\u2019s the year 2050. By then, people have started to act as protectors of our environment instead of just consumers. I led a movement in India that encouraged everyone to choose products that are durable, recyclable, and repairable. With the help of modern technology like AI, we understood better the impact of every purchase on our climate.\n\nAs more people made these wise choices, businesses followed our lead. Companies began to operate in a more honest and eco-friendly way, supported by new government policies. This shift led to cleaner rivers, fresher air, and a healthier planet.\n\nIn the words of my teacher, Acharya Prashant, \u201cTo live truthfully is to live gently\u2014with each other and with the Earth.\u201d This simple idea shows that every purchase is a chance to protect our world instead of harming it.",
"selected_models": [
"sd_2",
"dall_e_3"
]
};
async function gooeyAPI() {
const response = await fetch("https://api.gooey.ai/v2/compare-ai-image-generators?example_id=7c45y1kis306", {
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 = {
"text_prompt": "\n\nIn today’s world, we see that our society has become a world of consumption. Both national and international companies—and even customers—seem to only use the Earth’s resources without caring about climate change. This careless attitude has made climate change happen so fast that in the future, it may be nearly impossible to handle.\n\nMy story is set in a future where this trend finally changes. I am Bubun Samanta, a proud disciple of Acharya Prashant. Inspired by my teacher’s teachings of living in harmony with nature, I have taken up the mission to change how we think about and use our resources.\n\nImagine it’s the year 2050. By then, people have started to act as protectors of our environment instead of just consumers. I led a movement in India that encouraged everyone to choose products that are durable, recyclable, and repairable. With the help of modern technology like AI, we understood better the impact of every purchase on our climate.\n\nAs more people made these wise choices, businesses followed our lead. Companies began to operate in a more honest and eco-friendly way, supported by new government policies. This shift led to cleaner rivers, fresher air, and a healthier planet.\n\nIn the words of my teacher, Acharya Prashant, “To live truthfully is to live gently—with each other and with the Earth.” This simple idea shows that every purchase is a chance to protect our world instead of harming it.",
"selected_models": ["sd_2", "dall_e_3"],
}
response = requests.post(
"https://api.gooey.ai/v2/compare-ai-image-generators?example_id=7c45y1kis306",
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/compare-ai-image-generators?example_id=7c45y1kis306' \
-H "Authorization: bearer $GOOEY_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"text_prompt": "\n\nIn today\u2019s world, we see that our society has become a world of consumption. Both national and international companies\u2014and even customers\u2014seem to only use the Earth\u2019s resources without caring about climate change. This careless attitude has made climate change happen so fast that in the future, it may be nearly impossible to handle.\n\nMy story is set in a future where this trend finally changes. I am Bubun Samanta, a proud disciple of Acharya Prashant. Inspired by my teacher\u2019s teachings of living in harmony with nature, I have taken up the mission to change how we think about and use our resources.\n\nImagine it\u2019s the year 2050. By then, people have started to act as protectors of our environment instead of just consumers. I led a movement in India that encouraged everyone to choose products that are durable, recyclable, and repairable. With the help of modern technology like AI, we understood better the impact of every purchase on our climate.\n\nAs more people made these wise choices, businesses followed our lead. Companies began to operate in a more honest and eco-friendly way, supported by new government policies. This shift led to cleaner rivers, fresher air, and a healthier planet.\n\nIn the words of my teacher, Acharya Prashant, \u201cTo live truthfully is to live gently\u2014with each other and with the Earth.\u201d This simple idea shows that every purchase is a chance to protect our world instead of harming it.",
"selected_models": [
"sd_2",
"dall_e_3"
]
}'
🎁 Example Response
{4 Items"url":
string
"https://gooey.ai/compare-ai-image-generators/"
"created_at":
string
"2025-04-16T10:21:32.588762+00:00"
"output":
{1 Items"output_images":
{2 Items} } } Please Login to generate the $GOOEY_API_KEY