Generate a picture for a site
Draws one picture from a prompt and keeps it as a one-file upload. Ship it with a site by putting { path, fromUpload: uploadId } in createUpload; an upload that no app uses within three hours is deleted. At most 40 an hour per account.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/images" \ -H "Content-Type: application/json" \ -d '{ "prompt": "string" }'{ "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497", "type": "image/webp", "width": 0, "height": 0}Upload project files to deploy POST
Send each file's path and content, or its path and the upload to take it from (fromUpload, as for a picture from generateImage). The response's uploadId goes into deployApp or inspectSource as source { type: "upload", uploadId }. A single .zip file is taken as the whole project. Up to 3000 files and 50 MB; an upload that no app uses within three hours is deleted.
List a workspace's recent deploys GET
The most recent deploys of every app in the workspace, newest first, each with the app it belongs to; with `latest`, only each app's newest deploy that isn't building, which is what an applications list shows as its last deploy. `canRollback` is always false here, since checking every row's images in the registry is too costly for a list this wide; an app's own list (listDeploys) reports it.