Add an image
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.
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
application/json
curl -X POST "https://example.com/images" \ -H "Content-Type: application/json" \ -d '{ "url": "http://example.com" }'{ "id": "string", "url": "string", "width": 0, "height": 0}Generate an image POST
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.
Search stock photos GET
Free Pexels photos (commercial use, no attribution needed). An empty query returns a curated selection. Import one with POST /stock/photos/{id}/import before using it on a page.