Use a stable, unique idempotency key for one logical create operation. If a network failure makes the result ambiguous, retry with the same key and unchanged JSON body.
3
Create an image task
curl https://api.apipod.ai/v1/images/generations \ -H "Authorization: Bearer $APIPOD_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $APIPOD_IDEMPOTENCY_KEY" \ -d '{ "model": "gpt-image-2", "prompt": "A clean product photograph of a translucent glass speaker, soft studio lighting", "aspect_ratio": "1:1", "resolution": "1K" }'