2 Resources videos_config
Forgejo Actions edited this page 2026-11-26 06:51:28 +00:00

openwebui_videos_config (Resource)

Manages Open WebUI video generation settings (Open WebUI 0.13.x). The update route writes every field, so this resource owns the whole section. Deleting it only removes it from state.

Example Usage

resource "openwebui_videos_config" "this" {
  enable_video_generation        = true
  video_generation_default_model = "gateway:veo"

  connections = [{
    id   = "gateway"
    name = "Gateway"
    type = "openai"
    url  = "https://llm.example.com/v1"
    key  = var.gateway_key
    config_json = jsonencode({
      enable    = true
      model_ids = ["veo"]
      provider  = "openrouter" # JSON requests; the default provider sends form data
      size      = "1280x720"
    })
  }]
}

Schema

Required

  • connections (Attributes List) VIDEO_CONNECTIONS, in order. Open WebUI replaces the whole list on every update. (see below for nested schema)
  • enable_video_generation (Boolean) Open WebUI setting ENABLE_VIDEO_GENERATION.
  • video_generation_default_model (String) Open WebUI setting VIDEO_GENERATION_DEFAULT_MODEL: <connection id>:<model id>, or empty.

Read-Only

  • id (String) Identifier of this singleton resource. Always videos.

Nested Schema for connections

Required:

  • config_json (String) The connection's config object as JSON, for example jsonencode({ enable = true, model_ids = ["marine"] }). Compared semantically.
  • id (String) Connection id. Default models refer to it as <id>:<model>.
  • name (String) Display name.
  • type (String) Connection type, for example openai.
  • url (String) Base URL of the endpoint.

Optional:

  • key (String, Sensitive) API key. Leave it out to keep the key Open WebUI already holds for the connection with the same id; it is then neither sent from configuration nor recorded in state.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Open WebUI holds one video-generation configuration, so this resource is a
# singleton. Import it under its fixed id.
terraform import openwebui_videos_config.this videos