Skip to content

Images

POST https://aiapiv2.pekpik.com/v1/images/generations

OpenAI Images–compatible. Image models are billed per call (see the pricing page, filter Image).

Terminal window
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"
}'
FieldDescription
modelAn image model ID (e.g. gpt-image-2, Gemini image models).
promptText prompt.
sizeOutput dimensions / aspect ratio (model-dependent).
nNumber of images (where supported).