Batch completions
Queue multiple LLM conversations for later retrieval.
post/ai/batches
Request body
Example request
{
"prompts": [
"Where can I buy a vintage guitar?",
"Help me find guitar repair shops nearby.",
"Do any local stores sell vinyl records?",
"[Additional prompts here]"
],
"model": "gemini",
"format": "rendered",
"callback": "https://webhook.site/02e249f8-1faf-4fab-bcf5-78ce683e85a8"
}Response
A job identifier and confirmation count.
Example response
{
"id": "a0482596-c2ad-445a-a435-727002156a20",
"count": 37
}