KuikCodeDocs
APIReferenceImages

Generate an image

POST
/images/generate

Creates a picture from a text description and stores it in the workspace Library as a JPEG. Takes a few seconds. Each call counts toward the plan's monthly AI generated images, including prompts the safety filter blocks.

AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/images/generate" \  -H "Content-Type: application/json" \  -d '{    "prompt": "string"  }'
{  "id": "string",  "url": "string",  "width": 0,  "height": 0,  "remaining": 0}