How to use Bulk Run via API

Step 1

  • Run the TTS models you want to test on the UI.

  • Copy the links of the test runs

Step 2

  • Open Gooey.AI bulk

  • Head to the API tab

  • Click on the “curl” tab

EXAMPLE:

Step 3

  • Add your CSV/google sheet in the documents section (see a screenshot of the CSV example below)

  • Add your run URLs in the run_urls section.

  • Point to the correct column for the input in input_columns

curl 'https://api.gooey.ai/v2/bulk-runner?example_id=ehrfs6a0yukt' \
  -H "Authorization: bearer $GOOEY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "documents": [
    "https://docs.google.com/spreadsheets/d/1EsQ_NKhyNikNNO3xLV9GOc6C5LTflu9dJ5CSpHqNUQs/edit?gid=0#gid=0"
  ],
  "run_urls": [
   "https://gooey.ai/compare-text-to-speech-engines/?run_id=todlwvm01l31&uid=fm165fOmucZlpa5YHupPBdcvDR02",
   "https://gooey.ai/compare-text-to-speech-engines/?run_id=j8v9fqrfl26o&uid=fm165fOmucZlpa5YHupPBdcvDR02",
    ],
  "input_columns": {
    "text_prompt": "Column Name"
  },
  "output_columns": {
    "price": "Price",
    "run_url": "Run URL",
    "run_time": "Run Time",
    "output_text": "Output Text",
    "raw_output_text": "Raw Output Text"
  }
}'

How can I calculate the credits?

  • Please check the credit per run in the sample run you run for your bulk run.

  • This should be the average cost per run.

  • Since you are running Bulk API, you can also check the credits for every run by adding "price": "Price" in the "output_columns" section

Last updated

Was this helpful?