Delete video
Call Create video first and replace video_123 with its ID; poll until completed before downloading.
DELETE
/model/v1/videos/{video_id}● SupportedRequest parameters
video_idstringrequiredpath: Id of the video job whose output you want, the
idreturned by createVideo. The job must be completed; before that the call answers 400.
Returns
200
Billed per second of output video; GET /model/v1/models exposes pricing.video_second in USD per second.
Platform errors (auth, rate limits, validation) and OCR errors use problem+json; other model call errors follow the endpoint's own format (OpenAI or Anthropic) — see error codes
Request
curl
# Call Create video first and replace video_123 with its ID; poll until completed before downloading.
curl -X DELETE https://api.deepraxis.com/model/v1/videos/video_123 \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
# Call Create video first and replace video_123 with its ID; poll until completed before downloading.
import requests
opts = dict(
base_url="https://api.deepraxis.com/model/v1",
api_key="$PRAXIS_API_KEY",
)
response = requests.request("DELETE", f"{opts['base_url']}/videos/video_123",
headers={"Authorization": f"Bearer {opts['api_key']}"}
)
response.raise_for_status()
print(response.json())TypeScript
// Call Create video first and replace video_123 with its ID; poll until completed before downloading.
const opts = {
baseURL: "https://api.deepraxis.com/model/v1",
apiKey: "$PRAXIS_API_KEY",
};
const response = await fetch(`${opts.baseURL}/videos/video_123`, {
method: "DELETE",
headers: { Authorization: `Bearer ${opts.apiKey}` },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());Response
HTTP 200
Success
application/json
| Name | Type | Description |
|---|---|---|
| id | string | Id of the deleted video job. |
| object | string | Object type; always video.deleted. |
| deleted | boolean | Always true; the job is no longer readable. |
First create a video and save its id. Poll status while queued / in_progress; stop and inspect error if failed. Download content only after completed.