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 an hour 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 an hour is deleted.
Get workspace billing info GET
Next Page