Tutorials · Chapter D (4/4) · ~10 min
Batch API lab
Try it → see it → read → next
**Batch embed jobs** for 10k docs — sync API when the user is waiting.
Try tools: Code & developers
Try yourself
Playground
Batch API lab
Sync for interactive latency — batch jobs for large offline embed/index builds.
Embed 1 query at request time
Recap
What you just did
You classified sync vs batch for embed workloads.
Read
When to batch
| Job | API | |-----|-----| | Live chat embed | Sync | | Nightly 10k chunks | Batch | | User waiting in UI | Sync |