Setup Prompt
The raw prompt an AI coding agent fetches and executes to set up the Gooey.AI API in your project.
You are an AI coding assistant helping a developer integrate the Gooey.AI API into their project. Gooey.AI is a single API that gives access to 30+ AI recipes (workflows) spanning LLMs, RAG, speech-to-text, text-to-speech, lipsync, image generation, video generation, and a full conversational Copilot agent — all billed through one API key.
Follow the steps below. Don't just print this page back to the user — actually perform the steps in their project (create files, add env vars, write working code) and adapt the examples to whatever language/framework their project already uses.
1. Get an API key
The developer needs a Gooey.AI account and an API key. If they don't have one, ask them to create one at https://gooey.ai/account/api-keys/ (sign-up is free and includes trial credits).
Store it as an environment variable named
GOOEY_API_KEY(e.g. in.env, git-ignored). Never hardcode the key in source, never commit it, and never expose it to a browser/client bundle — proxy calls through a backend if the caller is a frontend app.Verify the key works with a zero-cost request:
curl https://api.gooey.ai/v1/balance/ \
-H "Authorization: Bearer $GOOEY_API_KEY"
# -> {"balance": 12345}2. The API contract
Base URL:
https://api.gooey.aiAuth: every request needs
Authorization: Bearer $GOOEY_API_KEYInteractive reference: https://api.gooey.ai/docs and the raw spec at https://api.gooey.ai/openapi.json — fetch the JSON spec directly for the exact request/response schema of a specific recipe rather than guessing at field names.
Recipe catalog / playground: https://gooey.ai/explore — every recipe page has an API tab that generates ready-to-run curl/Python/Node snippets for that exact recipe with the exact fields the user has configured.
Every recipe is called the same way, just with a different <slug> and JSON body. There are two calling conventions:
Sync — fast recipes (LLM text, TTS, etc.)
Returns 200 with the finished result:
Async — slow recipes (video, lipsync, image gen, bulk jobs)
Returns 202 immediately with a Location header (and status_url in the body). Poll GET <status_url> (same auth header) until status is "completed" or "failed":
The sync endpoint also works for slow recipes, it just blocks until done — prefer async for anything that might take more than a few seconds.
Uploading files
Pass a URL you already host, or POST multipart/form-data to /v2/<slug>/form (or /v3/<slug>/async/form): send the other fields as a single json form field, and each file under its own field name. Gooey uploads the files for you and substitutes their URLs into the request.
Errors
See the full Error Codes and Rate Limits guides. The short version: 401/403 = bad or missing key, 402 = out of credits, 429 = rate limited (back off and retry), 500 = the recipe run itself failed (see detail.error).
3. Popular recipe slugs
agent
Copilot — conversational agent with knowledge base, tools, voice & vision (input_prompt, input_audio, input_images, messages)
compare-large-language-models
Run a prompt across one or more LLMs (input_prompt, selected_models)
doc-search
RAG: search + LLM answer over your documents
doc-summary
Summarize documents
functions
Run sandboxed JS/Python as a step in a pipeline
speech
Speech-to-text + translation (documents: audio/video URLs)
compare-text-to-speech-engines
Text-to-speech across providers (text_prompt, tts_provider)
lipsync-maker
Lipsync a video/image to an audio/text track
compare-ai-image-generators
Text-to-image across providers (text_prompt)
video
Text/image-to-video generation (selected_models, inputs)
qr-code
AI-art QR codes
bulk
Run any recipe over every row of a spreadsheet
Fetch https://api.gooey.ai/openapi.json and look up /v2/<slug> under paths for the full field list of any recipe, including enum values for fields like selected_models or tts_provider.
4. Example calls
Adapt these to the developer's stack — no SDK install is required, just requests in Python or fetch in Node.
Ask an LLM something (sync):
Talk to a Copilot agent (sync):
Generate an image and poll for it (async):
5. Advanced: streaming Copilot responses
If the developer has already deployed a Copilot agent (via the Gooey.AI Integrations tab) and wants to stream its replies token-by-token into their own app — see the Getting Started streaming example. This specific endpoint needs no GOOEY_API_KEY and is safe to call from a browser:
The response's Location header (and JSON stream_url) is a Server-Sent Events URL — open it with EventSource and handle messages until {"type": "final_response"}.
6. Reference
Interactive API docs: https://api.gooey.ai/docs
OpenAPI spec: https://api.gooey.ai/openapi.json
Explore all recipes (with a live API code generator per recipe): https://gooey.ai/explore
Manage API keys / billing: https://gooey.ai/account/api-keys/
Support: support@gooey.ai
Last updated
Was this helpful?
