Batch processing lets your AI agent submit dozens or hundreds of prompts in a single call and retrieve the results when they are ready — without waiting for each individual generation to complete. Jobs run in the background via WP Cron: you get back a job ID immediately, then pollDocumentation Index
Fetch the complete documentation index at: https://docs.maxicore.ai/llms.txt
Use this file to discover all available pages before exploring further.
maxi/get-job-status to track progress and collect output as each item finishes. This is a Pro plan feature.
Batch abilities require a Pro license and a configured API key for your chosen provider. See Managing AI provider credentials. Also ensure WP Cron is running on your server — batch jobs do not process if WP Cron is blocked or disabled.
Submit a text batch
Callmaxi/generate-text-ai-batch with an array of prompts. Each prompt is processed as a separate item in the job.
Submit an image batch
Callmaxi/generate-image-ai-batch with an array of prompts. Each image is generated and sideloaded into the WordPress media library as it completes.
maxi/get-job-status to track progress and retrieve the attachment IDs as each image finishes.
Full batch workflow
Submit the batch
Call
maxi/generate-text-ai-batch or maxi/generate-image-ai-batch with your array of prompts and the target provider. You receive a job_id in the response.Poll for status
Call The response includes overall status and per-item progress:
maxi/get-job-status with the job ID to check progress. Poll at a reasonable interval — every 10 to 30 seconds is usually sufficient.Retrieve results
Continue polling until
status is completed, failed, or cancelled. When the job is complete, every item’s output field contains its generated content (for text) or an attachment ID (for images).| Job status | Meaning |
|---|---|
pending | Job is queued, not yet started |
running | Items are being processed |
completed | All items finished (some may have failed individually) |
failed | The job itself failed before completing |
cancelled | The job was cancelled via maxi/cancel-job |
Cancel a job
Callmaxi/cancel-job to stop a job that is pending or running. Items already completed are not rolled back — only unstarted items are skipped.
Configure retry behavior
When an individual item fails — for example, due to a provider rate limit or transient error — the job retries it automatically with exponential backoff. You can tune this behavior viamaxi/update-ai-settings:
| Setting field | Default | Description |
|---|---|---|
batch_max_attempts | 3 | Maximum retry attempts per item before marking it failed |
retry_delay_seconds | 5 | Base delay between retries (doubles on each subsequent attempt) |
Related abilities
Text generation
Generate a single piece of text synchronously — returns content immediately without job polling.
Image generation and editing
Generate or edit a single image synchronously — result is sideloaded and returned as an attachment ID.
Managing credentials
Set and rotate API keys for all supported AI providers. Required before making any generation call.
AI settings
Configure default providers per capability and tune retry and batch worker settings.