ai_ask_batch
AI ask batch (up to 8 prompts) — Answer up to 8 independent prompts in one GET call with the Workers AI LLM (llama-3.3-70b). Pass ?prompts= separated by || (or a JSON array of strings) and optional ?system= applied to every prompt. Returns one answer per prompt with word counts; failed items are listed with an error. Cheaper and faster than 8 separate ai/ask calls. Price: $0.04 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompts": "<prompts>"
},
"name": "ai_ask_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompts | Yes | e.g. What is the capital of France?||Name three primary colors. |