📖 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 = {
  "input_prompt": "\u1014\u103e\u1019\u103a\u1038\u101e\u102e\u1038\u1014\u103e\u1036 \u1005\u102d\u102f\u1000\u103a\u1015\u103b\u102d\u102f\u1038\u101b\u102c\u1010\u103d\u1004\u103a \u1015\u102f\u101c\u1032 \u101b\u103d\u1000\u103a\u1016\u103b\u1014\u103a\u1038 \u1019\u103c\u1031\u101e\u103c\u1007\u102c \u1018\u102c\u1000\u103c\u1031\u102c\u1004\u1037\u103a \u1016\u103b\u1014\u103a\u1038\u1016\u102d\u102f\u1037 \u101c\u102d\u102f\u1021\u1015\u103a\u1015\u102b\u101e\u101c\u1032?",
  "messages": []
};

async function gooeyAPI() {
  const response = await fetch("https://api.gooey.ai/v2/video-bots?example_id=ejhbyees", {
    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 = {
    "input_prompt": "နှမ်းသီးနှံ စိုက်ပျိုးရာတွင် ပုလဲ ရွက်ဖျန်း မြေသြဇာ ဘာကြောင့် ဖျန်းဖို့ လိုအပ်ပါသလဲ?",
    "messages": [],
}

response = requests.post(
    "https://api.gooey.ai/v2/video-bots?example_id=ejhbyees",
    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/video-bots?example_id=ejhbyees' \
  -H "Authorization: bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "input_prompt": "\u1014\u103e\u1019\u103a\u1038\u101e\u102e\u1038\u1014\u103e\u1036 \u1005\u102d\u102f\u1000\u103a\u1015\u103b\u102d\u102f\u1038\u101b\u102c\u1010\u103d\u1004\u103a \u1015\u102f\u101c\u1032 \u101b\u103d\u1000\u103a\u1016\u103b\u1014\u103a\u1038 \u1019\u103c\u1031\u101e\u103c\u1007\u102c \u1018\u102c\u1000\u103c\u1031\u102c\u1004\u1037\u103a \u1016\u103b\u1014\u103a\u1038\u1016\u102d\u102f\u1037 \u101c\u102d\u102f\u1021\u1015\u103a\u1015\u102b\u101e\u101c\u1032?",
  "messages": []
}'

🎁 Example Response

{4 Items
"id"
:
string
"bfeqhi2ep7rx"
"url"
:
string
"https://gooey.ai/copilot/"
"created_at"
:
string
"2023-09-27T16:10:41.080118+00:00"
"output"
:
{14 Items
"final_prompt"
:
string
"<|im_start|>system You are Proxomity Bot - an inte"
"output_text"
:
[1 Items
0
:
string
"အချိန်တန်လျှင် နှမ်းအထွက်နှုန်း ၁၅-၃၀% တိုးနိုင်သေ"
]
"output_audio"
:
[
]0 Items
"output_video"
:
[
]0 Items
"raw_input_text"
:
string
"Why is it necessary to spray pearl leaf fertilizer"
"raw_tts_text"
:
[1 Items
0
:
string
"အချိန်တန်လျှင် နှမ်းအထွက်နှုန်း ၁၅-၃၀% တိုးနိုင်သေ"
]
"raw_output_text"
:
[1 Items
0
:
string
"Spraying pearl leaf fertilizer is necessary when g"
]
"references"
:
[1 Items
0
:
{
}4 Items
]
"final_search_query"
:
string
"It is necessary to spray pearl leaf fertilizer whe"
"final_keyword_query"
:
string
"pearl leaf fertilizer planting sesame crops"
"output_documents"
:
NULL
"reply_buttons"
:
NULL
"finish_reason"
:
NULL
"metrics"
:
NULL
}
}

Please Login to generate the $GOOEY_API_KEY