Cut.ProDocs
Generations

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
X-Api-Key<token>

In: header

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

POST
/generations/quote
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}