Cut.ProDocs
Generations

Rewrite a short request in more detail

Turns a short request into a clearer, more detailed one, written the way the chosen model reads best, in the language of the request. Nothing is generated. Charges improve_credits from GET /generations/models; a rewrite that fails gives them back. Show the result to the user before generating with it.

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

application/json

application/json

POST
/generations/improve
curl -X POST "https://example.com/generations/improve" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "mode": "text",    "prompt": "string"  }'
{  "prompt": "string",  "credits_charged": 0}