1. Set your credentials
2. Submit a task
Ask Gemini a question.taskType picks the engine; payload.prompt is what you ask.
credits exists only so Cloro clients that read it keep working. Nothing is billed. On
submit and poll it is always zero; the webhook reports a nominal per-engine figure
mirroring Cloro’s pricing table.3. Collect the result
- Webhook (recommended)
- Polling
Add Your endpoint receives
webhook.url when you submit. When the task reaches a terminal state we POST
the full result there, and you never poll.{ task, credits, response }. See Webhooks
for the delivery and retry contract.4. Submit in bulk
POST /v1/async/task/batch takes a JSON array of the same task objects, up to 500
per request. You may mix engines freely within one batch.
200 for a well-formed request. Individual failures surface as
results[].success = false so one bad task never sinks the rest — see
Batch submission.
Google-family engines (
GOOGLE, AIMODE, NAVER_*) read payload.query. LLM engines
read payload.prompt. Supplying either satisfies validation, but the engine only reads
the one it expects.Next steps
Pick an engine
Every
taskType, what it returns, and how fast you may push it.Handle failures
Error codes, status codes, and what is retryable.