Account

Vote on a generated image and optionally request credit back

Submits a thumbs up/down on a previously generated image and, on a down vote, can request a credit refund for eligible generations. Free — voting never costs credits. Credit back is eligible only for empty_room, remove_object, edit_via_prompt, renovation, and (non-high-creativity) furnish generations requested within 2 hours.

post/api/feedback

Request

  • Base URL: https://app.pedra.ai
  • URL: https://app.pedra.ai/api/feedback
  • Auth: none required

Request body

apiKeystring required

Account API key, sent in the request body. Get one at https://app.pedra.ai under Settings → API.

imageUrlstring

URL of the generated image (as returned by a generation endpoint). Provide this or imageId.

imageIdstring

Bare id of the generated image. Provide this or imageUrl.

vote'up' | 'down' | '' required

"up" or "down". An empty string clears a previous vote.

commentstring

Optional free-text explanation of the vote.

creditBackboolean

On a down vote, request a credit refund for the generation if eligible.

Response

Vote recorded. Includes a creditBack object only when a refund was requested.

okboolean
votestring nullable

Recorded vote: "positive", "negative", or null when cleared.

Example response

{
  "vote": "negative"
}

Changes

No recorded changes to this operation across all 1 revision of this API.