Images
POST https://aiapiv2.pekpik.com/v1/images/generations
OpenAI Images-compatible. Check the model catalog for image model availability.
curl https://aiapiv2.pekpik.com/v1/images/generations \ -H "Authorization: Bearer $PEKPIK_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-2", "prompt": "a neon convergence diagram, dark background", "size": "1024x1024" }'| Field | Description |
|---|---|
model | An image model ID (e.g. gpt-image-2, Gemini image models). |
prompt | Text prompt. |
size | Output dimensions / aspect ratio (model-dependent). |
n | Number of images (where supported). |