Cloady Docs
API ReferenceEndpointsWorkspaces

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.

POST
/api/workspaces/{workspaceSlug}/images
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string

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}