Generate an image
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.
Authorization
apiKey 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}Redeploy a hosted site POST
Replaces every file of the site with a new ZIP, same rules as publishing. The address stays the same, so codes pointing at it keep working. Visitors switch to the new version only once every file is in place.
Add an image POST
Stores an image in the workspace Library, from a public https URL or as base64, and returns its CDN URL for KuikPage blocks. PNG, JPEG, WebP or SVG; raster images are re-encoded to WebP and capped at 2400 px on the long edge.