---
title: "Set Video Generation"
method: PATCH
path: "/api/workspaces/{workspace_id}/video-generation"
tags: ["workspaces", "workspaces"]
---

# Set Video Generation

`PATCH /api/workspaces/{workspace_id}/video-generation`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/workspaces/{workspace_id}/video-generation`
- Auth: none declared

Flip the per-workspace Seedance video-generation opt-in flag.

`videos.generate` (apps/api-gateway/src/tools/definitions/videos/generate.py:272)
refuses to run unless `workspaces.video_generation_enabled` is true. This
endpoint is the supported owner-self-serve toggle for that flag — flipping
it here takes effect on the next tool call (no cache to bust).

OWNER permission required (not ADMIN). Seedance generations consume
third-party credits + temporarily host reference images on imgbb's CDN —
that's a billing + data-handling decision the workspace owner makes,
not something a regular admin should self-grant.

## Path parameters

- `workspace_id` integer, required

## Request body

- VideoGenerationToggleRequest: Toggle the workspace-level video generation opt-in flag and/or set default model.
  - `enabled` boolean, nullable
  - `default_video_model` string, nullable

## Response `200`

Successful Response

- VideoGenerationToggleResponse
  - `workspace_id` integer, required
  - `video_generation_enabled` boolean, required
  - `default_video_model` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
