Cut.ProDocs
Generations

Ask for the credits of a generation back

Asks the team to review the result and give its credits back. One request per generation, only once it is ready, and not after it was downloaded or posted. Follow it in refund_status of GET /generations/{id}: requested, then approved or denied. A generation that failed already gave its credits back on its own.

Authorization

apiKey
X-Api-Key<token>

In: header

Path Parameters

id*string

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

POST
/generations/{id}/refund
curl -X POST "https://example.com/generations/string/refund" \  -H "Content-Type: application/json" \  -d '{    "reason": "prompt_ignored",    "note": "string"  }'
{  "refund_status": "requested"}