LatentKit

Images

POST /v1/image — generate images through the assigned route.

Request

curl https://ai.latentkit.com/v1/image \
  -H "Authorization: Bearer $LATENTKIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A clean product icon on a white background",
    "size": "1024x1024"
  }'

Fields

FieldDescription
promptImage description (required)
sizeOutput size when supported by the route model
nNumber of images when supported

SDK

const image = await client.image.generate({
  prompt: 'A clean product icon on a white background',
  size: '1024x1024',
});
image = client.image.generate(
    prompt="A clean product icon on a white background",
    size="1024x1024",
)

Responses follow the unified runtime shape for your route's provider adapter. Inspect the returned payload for URLs or base64 content fields.

On this page