MiniMax H3's v2 interface can cancel a task that is still queued, but it does not allow cancellation while the task is running. Treat the provider's operation result as authoritative rather than assuming a queued label in your interface guarantees that cancellation will succeed.
Imagine a user clicking Cancel just as the service starts processing. A frontend that immediately marks the task as cancelled can now disagree with the provider, and may later receive a completed video for work the user believes has stopped. The problem is a race between observation and action. Refreshing the status before the click reduces stale information, but it does not make those two events atomic.
There is another distinction to preserve: the same documented endpoint can delete the record of a finished task. Deleting a record and preventing an unstarted operation from executing are different outcomes, with different implications for the user. An application should not silently substitute one intention for the other. The workflow below explains how to map the current MiniMax contract into an honest user interaction, including ownership checks, uncertain responses, and late results. The goal is not merely to remove a row from a screen, but to make the provider action, application record, and user-facing message agree.
Other candidates to compare
Runway offers video-generation tools and an API, providing another candidate alongside MiniMax. Compare the selected models on supported inputs, duration, resolution, task states and cost. Verify features such as end frames, cancellation and reference inputs individually rather than transferring one API’s behavior to another.
一、Use the correct task contract
This discussion concerns H3 v2 through the MiniMax API Platform. The cancel-or-delete documentation distinguishes queued cancellation, unsupported cancellation while running, and deletion of succeeded or failed records. Do not reuse the v1 state vocabulary without checking the interface.
Store the provider task identifier alongside the application's task and account context. The backend should perform the operation with controlled credentials only after checking that the user may manage that task.
二、Implement four stages
(一)Display current possibilities accurately
Use a recent status or refresh it before presenting the action. A useful interface requirement is: “Offer cancellation for queued work, explain that running work cannot be stopped through this endpoint, and present finished-record deletion as a separate action.” The observable result is that users are not shown one ambiguous Stop button for every state.
This preliminary check is not an atomic guarantee. The provider can advance the task after it was observed and before the requested operation arrives.
(二)Validate ownership and the intended consequence
Resolve the provider identifier from the application's own record and authorize the user's action. Do not accept an arbitrary identifier and forward a privileged request simply because it is syntactically valid.
Because the endpoint chooses its action from the current server state, consider whether your product can accept the possibility of a finished record being deleted during the race. Explain that consequence and obtain the appropriate user intent, or avoid presenting this operation as a guarantee of cancellation only. A local pre-check cannot manufacture a conditional provider operation that the contract does not expose.
(三)Interpret the actual returned action
Record cancellation only when the response supports that outcome. If the returned action indicates deletion, describe deletion rather than claiming processing was stopped. If the task is running and the operation is rejected, retain the task and show its current state.
A lost response means the outcome needs reconciliation, not that nothing happened. Avoid blind repeated requests, since a subsequent attempt may encounter a different task state and therefore a different action.
(四)Stop the application's own follow-up work
Separately handle your local retry queue, automatic recreation policy, and result notifications. Provider cancellation does not automatically implement those application decisions. Keep a record of which layer stopped and why.
If cancellation did not occur and the task continues, handle a late result according to the business rule without falsely announcing success. Preserve the identifier and timeline for any manual reconciliation.
三、Test the race and the failure cases
Exercise a queued task, a task that becomes running before the operation, repeated clicks, a lost response, and a task already finished. Check that the UI follows the actual returned action instead of unconditionally setting a local cancelled flag. Mock responses can validate these branches without purchasing generation jobs solely to test interface logic.
After integration and authentication, call the MiniMax cancel-or-delete video-task API for a test task confirmed to be queued, then inspect the returned action and status rather than assuming that a local cancel button stopped server processing.
The documentation describes no charge for queued cancellation. Do not broaden that condition into a claim that every deletion, failed operation, or cancellation attempt results in a refund. Reconcile costs with the actual task and applicable billing information.
四、Use agreement between states as the acceptance test
The flow is correct when provider action, application state, and user message describe the same event. Distinguishing cancellation from deletion and accounting for the observation-action race are essential to making that agreement reliable.
