InfoPreview
Endpoint added: POST /v1/videos
openapi:POST /v1/videos::operation.endpoint-added- Product
- DigitalOcean API
- Source
- OpenAPI URL
- Change kind
- Endpoint Added
- Detected
- Last updated
Deterministic evidence
Before / after
Extracted from DigitalOcean's published contract. Shows the whole operation — a narrower excerpt was not available for this change. Open the source ↗
null
{
"operationId": "inference_create_video",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"fps": {
"minimum": 1,
"type": "integer"
},
"model": {
"type": "string"
},
"prompt": {
"minLength": 1,
"type": "string"
},
"size": {
"type": "string"
}
},
"required": [
"model",
"prompt"
],
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/video_generation"
}
}
},
"headers": {
"ratelimit-limit": {
"$ref": "#/components/headers/ratelimit-limit"
},
"ratelimit-remaining": {
"$ref": "#/components/headers/ratelimit-remaining"
},
"ratelimit-reset": {
"$ref": "#/components/headers/ratelimit-reset"
}
}
},
"401": {
"$ref": "#/components/responses/unauthorized"
},
"429": {
"$ref": "#/components/responses/too_many_requests"
},
"500": {
"$ref": "#/components/responses/server_error"
},
"default": {
"$ref": "#/components/responses/unexpected_error"
}
},
"security": [
{
"inference_bearer_auth": []
}
],
"servers": [
{
"url": "https://inference.do-ai.run"
}
],
"tags": [
"Serverless Inference"
],
"x-codeSamples": [
{
"lang": "cURL",
"source": "curl -X POST https://inference.do-ai.run/v1/videos \\\n -H \"Authorization: Bearer $DIGITALOCEAN_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"wan2-2-t2v-a14b\",\n \"prompt\": \"Two anthropomorphic cats in boxing gear fight intensely on a spotlighted stage\",\n \"size\": \"1280x720\",\n \"fps\": 16\n }'"
},
{
"lang": "Python",
"source": "import os\nfrom pydo.inference import Client\n\nclient = Client(token=os.environ.get(\"DIGITALOCEAN_TOKEN\"))\n\njob = client.video.generations.create(\n model=\"wan2-2-t2v-a14b\",\n prompt=\"Two anthropomorphic cats in boxing gear fight intensely on a spotlighted stage\",\n size=\"1280x720\",\n fps=16,\n)\n\nprint(job.id, job.status)"
},
{
"lang": "Go",
"source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"os\"\n\n \"github.com/digitalocean/godo\"\n)\n\nfunc main() {\n client := godo.NewFromToken(os.Getenv(\"DIGITALOCEAN_TOKEN\"))\n ctx := context.Background()\n\n job, _, err := client.Video.Generations.Create(ctx, &godo.VideoGenerateParams{\n Model: \"wan2-2-t2v-a14b\",\n Prompt: \"Two anthropomorphic cats in boxing gear fight intensely on a spotlighted stage\",\n Size: \"1280x720\",\n FPS: godo.PtrTo(16),\n })\n if err != nil {\n panic(err)\n }\n\n fmt.Println(job.ID, job.Status)\n}"
},
{
"lang": "JavaScript",
"source": "import { InferenceClient } from \"@digitalocean/dots\";\n\nconst client = new InferenceClient({\n apiKey: process.env.DIGITALOCEAN_TOKEN,\n});\n\nconst job = await client.video.generations.create({\n model: \"wan2-2-t2v-a14b\",\n prompt: \"Two anthropomorphic cats in boxing gear fight intensely on a spotlighted stage\",\n size: \"1280x720\",\n fps: 16,\n});\n\nconsole.log(job.id, job.status);"
}
],
"x-inference-base-url": "https://inference.do-ai.run"
}
Monitored for you
Does this change affect your integration?
Choose the operations and fields your services use. Detektu matches DigitalOcean findings to that declared usage so your team can review the relevant evidence. No agent or repository access required.