Price a generation without generating
Takes the same request as POST /generations, checks it against the model and answers with the exact total in credits and the model, mode and resolution it resolved to (from preset and the images sent, when left out). Free and charges nothing. Show the total to the user, then send it as credits in POST /generations. A field the model does not take answers 400 with what it takes in extra.allowed.
Authorization
apiKey In: header
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/generations/quote" \ -H "Content-Type: application/json" \ -d '{ "kind": "image", "prompt": "string" }'{ "credits": 0, "model": "string", "mode": "text", "resolution": "string", "seconds": 0, "aspect_ratio": "21:9", "audio": true}Upload a reference image POST
Sends one image as `multipart/form-data`, to animate it, use it as a first or last frame, or borrow a person, product or style from it. It goes to the workspace library and counts toward its storage. Pass the returned `id` in `image_ids` of `POST /generations`. An image CutPro generated needs no upload: its `output.image_id` works the same.
List generations GET
The workspace's images, videos and voices generated with `POST /generations`, newest first.