Cancel a pending template message

Cancel a queued, running, or previewing message. A queued message has not reached the model, so its reservation is released and message.credits is 0. A message that the model already started costs its reserved credits: message.credits shows the charge. A cancelled message never makes a draft. A charged cancel does not count toward the daily limit of failed or cancelled operations, and it counts as the first AI message of the chat.

delete/v1/templates/{template_id}/messages/{message_id}

Request

  • Base URL: https://thirds.ai
  • URL: https://thirds.ai/v1/templates/{template_id}/messages/{message_id}
  • Auth: HTTP bearer

Response

The message was cancelled. message.credits is the charge: 0 when the message was still queued.

Changes

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