---
title: "Submit batch of product images for generation"
method: POST
path: "/api/v2/batches"
tags: ["Batch Processing (v2)"]
---

# Submit batch of product images for generation

`POST /api/v2/batches`

## Request body

- BatchCreateRequest
  - `images` object[], required
    - `id` string, required — Your reference ID
    - `image` string, required — Base64-encoded image
    - `filename` string, required
    - `category` 'clothing' | 'jewelry' | 'furniture' | 'electronics' | 'food' | 'cosmetics' | 'accessories' | 'shoes' | 'bags' | 'watches' | 'toys' | 'other'
  - `images_per_product` integer
  - `webhook_url` string, uri

## Response `202`

Batch created

- BatchCreateResponse
  - `batch_id` string
  - `status` string
  - `total_images` integer
  - `images_to_generate` integer
  - `credits_reserved` integer
  - `credits_remaining` integer
  - `poll_url` string

---

[API](https://skmtc.dev/pixelpanda/apis/pixelpanda-api.md) · [All operations](https://skmtc.dev/pixelpanda/apis/pixelpanda-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pixelpanda/pixelpanda-api/revisions/ab364b97afe5/schema)
