Video Generation API

Cancel or delete a video generation job

Use DELETE /v2/video_generation/{task_id} to cancel a job or remove a terminal job from the compatibility view. The endpoint never physically deletes control-plane audit records or object-store artifacts.

Request

bash
curl -X DELETE "https://ecotoken.ecophase-ai.com/v2/video_generation/YOUR_TASK_ID" \
  -H "Authorization: Bearer $VIDEO_API_KEY" \
  -H "Idempotency-Key: $VIDEO_DELETE_IDEMPOTENCY_KEY"

Create the idempotency key once per logical cancel/delete operation. If the outcome is unknown, retry with the same key; use a new key for a different operation.

State semantics

Current statusBehavior
queuedSends a real cancellation to the video control plane and returns action: "cancelled"
runningRejects cancellation with 400; execution continues
cancelledCannot be cancelled or deleted again and returns 400
succeeded, failedLogically deletes the task from the MiniMax-H3 compatibility list and returns action: "deleted"

After a terminal task is removed, it no longer appears in the account's compatibility view.

Response

json
{
  "task_id": "YOUR_TASK_ID",
  "action": "cancelled",
  "status": "cancelled"
}

action is cancelled or deleted. A missing, cross-tenant, running, or already cancelled job returns 400; an invalid or revoked key returns 401.

EcoPhase Docs - Cancel or delete a video generation job - EcoPhase.AI