Skip to content
中文

Delete video

Call Create video first and replace video_123 with its ID; poll until completed before downloading.

DELETE/openai/v1/videos/{video_id}● Supported

Official OpenAI docs ↗

Request parameters

  • video_idstringrequired

    path: Id of the video job whose output you want, the id returned by createVideo. The job must be completed; before that the call answers 400.

Returns

200 video.deleted

Deletes the job and its generated content. An unknown job returns 404.

Errors follow the OpenAI format — 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/openai/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.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deepraxis.com/openai/v1",
    api_key="$PRAXIS_API_KEY",
)

client.videos.delete("video_123")
TypeScript
// Call Create video first and replace video_123 with its ID; poll until completed before downloading.
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.deepraxis.com/openai/v1",
  apiKey: "$PRAXIS_API_KEY",
});

await client.videos.delete("video_123");

Response 200

{
  "id": "vjob_2f7b73157212463da76762b0",
  "object": "video.deleted",
  "deleted": true
}

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.