Images
POST https://aiapiv2.pekpik.com/v1/images/generations
OpenAI Images–compatible. Image models are billed per call (see the pricing page, filter Image).
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). |