Running a model

Cancel a request

202 means REQUESTED, not cancelled: a model can decline to stop and keep going, so the body carries cancelled and the settled charge for a caller who needs to know which happened.

PUT
/<address>/requests/{request_id}/cancel
PUT
/<address>/requests/{request_id}/cancel
Cancel a request
202 means REQUESTED, not cancelled: a model can decline to stop and keep going, so the body carries cancelled and the settled charge for a caller who needs to know which happened.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
request_idstringrequired
Cancel a request
curl --request PUT \
  --url 'https://queue.auray.run/<address>/requests/{request_id}/cancel' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "status": "<string>",
  "request_id": "<string>",
  "job_id": "<string>",
  "product": "<string>",
  "job_status": "<string>",
  "settled": true,
  "cancelled": true,
  "credits_charged": 123,
  "credits_reserved": 123,
  "settled_unknown": true
}
Cancel a request
curl -X PUT https://queue.auray.run/auray-ai/hunyuan-3d/image-to-3d/requests/photo_docs-mtpb1vnh/cancel \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "status": "<string>",
  "request_id": "<string>",
  "job_id": "<string>",
  "product": "<string>",
  "job_status": "<string>",
  "settled": true,
  "cancelled": true,
  "credits_charged": 123,
  "credits_reserved": 123,
  "settled_unknown": true
}

202 means REQUESTED, not cancelled: a model can decline to stop and keep going, so the body carries cancelled and the settled charge for a caller who needs to know which happened. POST to the same address answers this platform's own cancel envelope, unchanged.

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — a key with the scope the route names.

Path Parameters

request_idstringrequired
The request_id the submit answered with.

Response

application/json

The cancellation was accepted.

statusstringrequired
request_idstringrequired
job_idstringrequired
The same job reference as request_id, under the one name every host uses.
productstring
job_statusstring
settledboolean
cancelledbooleanrequired
credits_chargedinteger
What the job cost after the cancel's refund — the ledger's net; null, with settled_unknown, when it could not be read. May be null.
credits_reservedinteger
What was taken when the job was charged. May be null.
settled_unknownboolean
Present, and true, when the cancel happened and its figures could not be read.

Was this page helpful?

Cancel a request
curl -X PUT https://queue.auray.run/auray-ai/hunyuan-3d/image-to-3d/requests/photo_docs-mtpb1vnh/cancel \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "status": "<string>",
  "request_id": "<string>",
  "job_id": "<string>",
  "product": "<string>",
  "job_status": "<string>",
  "settled": true,
  "cancelled": true,
  "credits_charged": 123,
  "credits_reserved": 123,
  "settled_unknown": true
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.