Skip to content
Last updated

🔨 In Development — This section is still being developed and may change.
Cancels an in-progress model response. Use this endpoint to stop a response that is currently being generated.
DELETEhttps://api.freddy.aitronos.com/v1/model/response/{response_id}

Cancels a response that is currently being processed. Only responses with status processing can be cancelled. Once cancelled, the response status will change to cancelled and no further processing will occur.

Path Parameters

response_id string required

The unique identifier of the response to cancel. Must be a response that is currently in processing status.

Query Parameters

organizationId string required

The unique identifier of the organization that owns the response.

Response

id string

The unique identifier of the cancelled response.

status string

The new status of the response. Will be cancelled after successful cancellation.

cancelledAt integer

Unix timestamp when the response was cancelled.

message string

Confirmation message indicating the response was cancelled.


Returns

A cancellation confirmation response.

Bash
curl -X DELETE "https://api.freddy.aitronos.com/v1/model/response/resp_abc123?organizationId=org_abc123" \
  -H "Authorization: Bearer $FREDDY_API_KEY"

Notes

  • Status Requirement: Only responses with status processing can be cancelled
  • Immediate Effect: Cancellation takes effect immediately and stops all processing
  • No Refund: Cancelled responses may still incur charges for processing that occurred before cancellation
  • Status Check: Use Get Response Status to verify the cancellation was successful