🗂️ Batch Processing

For applications requiring the generation or modification of a large number of images, batch processing is an indispensable feature. Instead of making individual API calls for each image, you can send multiple requests in a single batch, significantly improving efficiency and reducing overhead.

While the specific implementation of batch processing might vary (e.g., sending an array of prompts, or a single request with a higher numSamples for variations), the core idea is to optimize the workflow for high-volume operations. This is particularly useful for:

  • Generating multiple variations of a single concept.
  • Processing a list of images with the same transformation.
  • Creating assets for large-scale projects (e.g., game development, e-commerce product images).

Consult the API documentation for the most efficient way to perform batch operations, as it may involve specific endpoints or parameters designed for this purpose.