This template provides example API implementations that show off how to batch your AI requests on Workers AI. Read the Batch API docs
It demonstrates how to make use of the async queue functionality, as well as check the current status.
The main code to explore is in the ./src/index.ts file and the endpoints are prefixed with /example
.
npm install
npm run dev
npm run deploy