Documentation

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Features
    Multi-Vendor Store
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    SubscriptionConductor
    PaymentConductor
    Ring Oracle
    Payments Overview
    Public Pools & DAO Jars
    WayForPay Payment Integration
    Wallet & Credit System
    WalletConductor
    Affiliate & Referral Enablement
    Referral Codes (Refcodes)
    NFT Exhibition Marketplace
    Solana NFT Gates
    Token Staking System
    Owner Project Lab
    Entities
    Opportunities
    Real-Time Messaging
    Ring Tasks
    WebRTC Calls & STUNner TURN
    Peer Games
    News Module
    Member Blogs
    Public Profile Pages
    Profile Account Widgets
    Ring File Cabinet
    Username Reservation System
    Scientific Editor
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Email AI-CRM
    Ring Mailer & RingdomX Mail
    Tunnel Protocol
    VideoConductor
    MediaConductor
    Generative Gallery
    Authentication
    Security & Compliance
    Admin console
    Admin Wiki
    Manage via Telegram
    Locale System
    Mobile Experience
    Performance Optimization Patterns
    Examples
    Quick Start
    Basic Setup
    White Label
    Custom Branding
    Web3 Integration
    Real World
    Advanced Features
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Vertical Presets (SSOT)
    Ringization playbook
    Branding
    Themes
    Features
    Localization
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Project configuration
    Public environment variables
    Order Lab secrets
    WalletConnect Project ID (Reown Cloud)
    Supported services
    NODUS wiki (project knowledge)
    Configuration playbook
    Web3
    Token launch jurisdictions
    Wallet
    Wallet Security Tips
    Integrations
    Ethereum wallets (Wagmi v3)
    RingFileBase (object storage API)
    Ring CDN (RingFileBase edge)
    Deployment
    Self-hosted deployment
    Vercel Deployment
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Architecture
    Data Model
    Security
    Real Time
    Discovery Mutation Sync
    PaymentConductor architecture
    WalletConductor architecture
    Backend Services
    Firebase Integration
    Development
    Ring MCP Server

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)

    Documentation

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Features
    Multi-Vendor Store
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    SubscriptionConductor
    PaymentConductor
    Ring Oracle
    Payments Overview
    Public Pools & DAO Jars
    WayForPay Payment Integration
    Wallet & Credit System
    WalletConductor
    Affiliate & Referral Enablement
    Referral Codes (Refcodes)
    NFT Exhibition Marketplace
    Solana NFT Gates
    Token Staking System
    Owner Project Lab
    Entities
    Opportunities
    Real-Time Messaging
    Ring Tasks
    WebRTC Calls & STUNner TURN
    Peer Games
    News Module
    Member Blogs
    Public Profile Pages
    Profile Account Widgets
    Ring File Cabinet
    Username Reservation System
    Scientific Editor
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Email AI-CRM
    Ring Mailer & RingdomX Mail
    Tunnel Protocol
    VideoConductor
    MediaConductor
    Generative Gallery
    Authentication
    Security & Compliance
    Admin console
    Admin Wiki
    Manage via Telegram
    Locale System
    Mobile Experience
    Performance Optimization Patterns
    Examples
    Quick Start
    Basic Setup
    White Label
    Custom Branding
    Web3 Integration
    Real World
    Advanced Features
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Vertical Presets (SSOT)
    Ringization playbook
    Branding
    Themes
    Features
    Localization
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Project configuration
    Public environment variables
    Order Lab secrets
    WalletConnect Project ID (Reown Cloud)
    Supported services
    NODUS wiki (project knowledge)
    Configuration playbook
    Web3
    Token launch jurisdictions
    Wallet
    Wallet Security Tips
    Integrations
    Ethereum wallets (Wagmi v3)
    RingFileBase (object storage API)
    Ring CDN (RingFileBase edge)
    Deployment
    Self-hosted deployment
    Vercel Deployment
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Architecture
    Data Model
    Security
    Real Time
    Discovery Mutation Sync
    PaymentConductor architecture
    WalletConductor architecture
    Backend Services
    Firebase Integration
    Development
    Ring MCP Server

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)

    Documentation

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    First Success Validation
    Next Steps
    Features
    Multi-Vendor Store
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    SubscriptionConductor
    PaymentConductor
    Ring Oracle
    Payments Overview
    Public Pools & DAO Jars
    WayForPay Payment Integration
    Wallet & Credit System
    WalletConductor
    Affiliate & Referral Enablement
    Referral Codes (Refcodes)
    NFT Exhibition Marketplace
    Solana NFT Gates
    Token Staking System
    Owner Project Lab
    Entities
    Opportunities
    Real-Time Messaging
    Ring Tasks
    WebRTC Calls & STUNner TURN
    Peer Games
    News Module
    Member Blogs
    Public Profile Pages
    Profile Account Widgets
    Ring File Cabinet
    Username Reservation System
    Scientific Editor
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Email AI-CRM
    Ring Mailer & RingdomX Mail
    Tunnel Protocol
    VideoConductor
    MediaConductor
    Generative Gallery
    Authentication
    Security & Compliance
    Admin console
    Admin Wiki
    Manage via Telegram
    Locale System
    Mobile Experience
    Performance Optimization Patterns
    Examples
    Quick Start
    Basic Setup
    White Label
    Custom Branding
    Web3 Integration
    Real World
    Advanced Features
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Vertical Presets (SSOT)
    Ringization playbook
    Branding
    Themes
    Features
    Localization
    Token Economics Setup
    Payment Gateway Integration
    Reference Ring deployments
    Project configuration
    Public environment variables
    Order Lab secrets
    WalletConnect Project ID (Reown Cloud)
    Supported services
    NODUS wiki (project knowledge)
    Configuration playbook
    Web3
    Token launch jurisdictions
    Wallet
    Wallet Security Tips
    Integrations
    Ethereum wallets (Wagmi v3)
    RingFileBase (object storage API)
    Ring CDN (RingFileBase edge)
    Deployment
    Self-hosted deployment
    Vercel Deployment
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Architecture
    Data Model
    Security
    Real Time
    Discovery Mutation Sync
    PaymentConductor architecture
    WalletConductor architecture
    Backend Services
    Firebase Integration
    Development
    Ring MCP Server

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)
    Ring Platform Logo

    Loading documentation...

    Preparing Ring Platform content

    Ring Platform Logo

    Loading documentation...

    Preparing Ring Platform content

    Ring Platform Logo

    Loading documentation...

    Preparing Ring Platform content

    VideoConductor

    VideoConductor is Ring Platform's async generative video layer — the video counterpart to ImageConductor. It polls xAI Grok Imagine Video, optionally uploads MP4s to ring-filebase, and records an audit row in PostgreSQL generated_videos.

    Use Founder / Developer tabs in the docs sidebar to filter this page. Founders see operator workflows and cost control; developers see facade APIs, MCP payloads, and storage.

    Executive summary

    Operators and agents call ring-video-create (MCP) or VideoConductor from server code. Default draft mode uses grok-imagine-video @ 480p (~$0.05/second) for cheap text-to-video iteration. Set remaster: true for 720p finals, or pass sourceVideoUrl for scene-preserving edit/remaster via xAI's video edits API. First-frame stills compose through ImageConductor.

    What VideoConductor does

    CapabilityDetail
    Text-to-video (T2V)grok-imagine-video — montages, UI demos, vague dialogue
    Image-to-video (I2V)grok-imagine-video-1.5 — requires imageUrl; prompt drives motion
    Draft iteration480p presets — minimize cost while scripting scenes
    Production remaster720p re-generate or edit pass on an existing MP4 URL
    First-frame automationfirstFramePrompt → ImageConductor when imageUrl is absent
    Thumbnail overlaysOptional thumbnail spec via lib/media/thumbnail
    Persistencering-filebase CDN URL + generated_videos JSONB ledger
    Pipeline auditclipId, pipelineRequestId, refCode, actorId

    Quality modes

    SSOT: lib/video/video-presets.json. Passing imageUrl on a draft request auto-upgrades to draft_i2v.

    qualityModeModelResolution~$/secNeeds imageUrl
    draft (default)grok-imagine-video480p$0.05No (T2V)
    draft_i2vgrok-imagine-video-1.5480p$0.08Yes
    productiongrok-imagine-video720p$0.05No
    production_i2v
    Model truth

    grok-imagine-video-1.5 is not text-only T2V — it needs a starting frame (imageUrl or firstFramePrompt). For word-perfect spoken lines, burn VO in post or treat DIALOGUE: blocks as best-effort guidance.

    Operator journey

    Draft → remaster → CDN

    ring-video-create MCP

    Bearer-gated tool for agents and ops — draft clips without touching server code.

    Viral video CLI

    Manifest-driven multi-clip campaigns with draft → remaster upserts.

    ImageConductor

    First-frame stills and shared xAI credentials for I2V scenes.

    WalletConductor

    End-to-end flow

    VideoConductor — end-to-end flow

    Public API

    Implementation map

    LayerPath
    Typeslib/video/conductor/types.ts
    Facadelib/video/conductor/video-conductor.ts
    Presetslib/video/video-presets.json
    Configlib/video/video.config.ts
    xAI provider

    Related

    Generative Gallery

    Product/NFT gallery field; video studio polish is backlog there (GENERATIVE_CREDIT_VIDEO).

    Generative videos (developer)

    CLI examples, model pricing table, legacy generate script.

    Generative images

    Shared xAI block and first-frame generation.

    WalletConductor

    Conductor pattern for wallet money paths.

    Release history

    DateMilestone
    2026-06-09ImageConductor — generated_images ledger, ring-image-create MCP
    2026-06-18VideoConductor v1 — draft/production T2V, ring-video-create MCP, manifest v2
    2026-06-18I2V modes — draft_i2v / production_i2v, firstFramePrompt, sourceVideoUrl edit remaster
    2026-06-19Migration 018 — generated_videos on dev + prod
    2026-07-12Dual-audience docs — Founder ops journey vs Developer API/storage

    VideoConductor

    VideoConductor is Ring Platform's async generative video layer — the video counterpart to ImageConductor. It polls xAI Grok Imagine Video, optionally uploads MP4s to ring-filebase, and records an audit row in PostgreSQL generated_videos.

    Use Founder / Developer tabs in the docs sidebar to filter this page. Founders see operator workflows and cost control; developers see facade APIs, MCP payloads, and storage.

    Executive summary

    Operators and agents call ring-video-create (MCP) or VideoConductor from server code. Default draft mode uses grok-imagine-video @ 480p (~$0.05/second) for cheap text-to-video iteration. Set remaster: true for 720p finals, or pass sourceVideoUrl for scene-preserving edit/remaster via xAI's video edits API. First-frame stills compose through ImageConductor.

    What VideoConductor does

    CapabilityDetail
    Text-to-video (T2V)grok-imagine-video — montages, UI demos, vague dialogue
    Image-to-video (I2V)grok-imagine-video-1.5 — requires imageUrl; prompt drives motion
    Draft iteration480p presets — minimize cost while scripting scenes
    Production remaster720p re-generate or edit pass on an existing MP4 URL
    First-frame automationfirstFramePrompt → ImageConductor when imageUrl is absent
    Thumbnail overlaysOptional thumbnail spec via lib/media/thumbnail
    Persistencering-filebase CDN URL + generated_videos JSONB ledger
    Pipeline auditclipId, pipelineRequestId, refCode, actorId

    Quality modes

    SSOT: lib/video/video-presets.json. Passing imageUrl on a draft request auto-upgrades to draft_i2v.

    qualityModeModelResolution~$/secNeeds imageUrl
    draft (default)grok-imagine-video480p$0.05No (T2V)
    draft_i2vgrok-imagine-video-1.5480p$0.08Yes
    productiongrok-imagine-video720p$0.05No
    production_i2v
    Model truth

    grok-imagine-video-1.5 is not text-only T2V — it needs a starting frame (imageUrl or firstFramePrompt). For word-perfect spoken lines, burn VO in post or treat DIALOGUE: blocks as best-effort guidance.

    Operator journey

    Draft → remaster → CDN

    ring-video-create MCP

    Bearer-gated tool for agents and ops — draft clips without touching server code.

    Viral video CLI

    Manifest-driven multi-clip campaigns with draft → remaster upserts.

    ImageConductor

    First-frame stills and shared xAI credentials for I2V scenes.

    WalletConductor

    End-to-end flow

    VideoConductor — end-to-end flow

    Public API

    Implementation map

    LayerPath
    Typeslib/video/conductor/types.ts
    Facadelib/video/conductor/video-conductor.ts
    Presetslib/video/video-presets.json
    Configlib/video/video.config.ts
    xAI provider

    Related

    Generative Gallery

    Product/NFT gallery field; video studio polish is backlog there (GENERATIVE_CREDIT_VIDEO).

    Generative videos (developer)

    CLI examples, model pricing table, legacy generate script.

    Generative images

    Shared xAI block and first-frame generation.

    WalletConductor

    Conductor pattern for wallet money paths.

    Release history

    DateMilestone
    2026-06-09ImageConductor — generated_images ledger, ring-image-create MCP
    2026-06-18VideoConductor v1 — draft/production T2V, ring-video-create MCP, manifest v2
    2026-06-18I2V modes — draft_i2v / production_i2v, firstFramePrompt, sourceVideoUrl edit remaster
    2026-06-19Migration 018 — generated_videos on dev + prod
    2026-07-12Dual-audience docs — Founder ops journey vs Developer API/storage

    VideoConductor

    VideoConductor is Ring Platform's async generative video layer — the video counterpart to ImageConductor. It polls xAI Grok Imagine Video, optionally uploads MP4s to ring-filebase, and records an audit row in PostgreSQL generated_videos.

    Use Founder / Developer tabs in the docs sidebar to filter this page. Founders see operator workflows and cost control; developers see facade APIs, MCP payloads, and storage.

    Executive summary

    Operators and agents call ring-video-create (MCP) or VideoConductor from server code. Default draft mode uses grok-imagine-video @ 480p (~$0.05/second) for cheap text-to-video iteration. Set remaster: true for 720p finals, or pass sourceVideoUrl for scene-preserving edit/remaster via xAI's video edits API. First-frame stills compose through ImageConductor.

    What VideoConductor does

    CapabilityDetail
    Text-to-video (T2V)grok-imagine-video — montages, UI demos, vague dialogue
    Image-to-video (I2V)grok-imagine-video-1.5 — requires imageUrl; prompt drives motion
    Draft iteration480p presets — minimize cost while scripting scenes
    Production remaster720p re-generate or edit pass on an existing MP4 URL
    First-frame automationfirstFramePrompt → ImageConductor when imageUrl is absent
    Thumbnail overlaysOptional thumbnail spec via lib/media/thumbnail
    Persistencering-filebase CDN URL + generated_videos JSONB ledger
    Pipeline auditclipId, pipelineRequestId, refCode, actorId

    Quality modes

    SSOT: lib/video/video-presets.json. Passing imageUrl on a draft request auto-upgrades to draft_i2v.

    qualityModeModelResolution~$/secNeeds imageUrl
    draft (default)grok-imagine-video480p$0.05No (T2V)
    draft_i2vgrok-imagine-video-1.5480p$0.08Yes
    productiongrok-imagine-video720p$0.05No
    production_i2v
    Model truth

    grok-imagine-video-1.5 is not text-only T2V — it needs a starting frame (imageUrl or firstFramePrompt). For word-perfect spoken lines, burn VO in post or treat DIALOGUE: blocks as best-effort guidance.

    Operator journey

    Draft → remaster → CDN

    ring-video-create MCP

    Bearer-gated tool for agents and ops — draft clips without touching server code.

    Viral video CLI

    Manifest-driven multi-clip campaigns with draft → remaster upserts.

    ImageConductor

    First-frame stills and shared xAI credentials for I2V scenes.

    WalletConductor

    End-to-end flow

    VideoConductor — end-to-end flow

    Public API

    Implementation map

    LayerPath
    Typeslib/video/conductor/types.ts
    Facadelib/video/conductor/video-conductor.ts
    Presetslib/video/video-presets.json
    Configlib/video/video.config.ts
    xAI provider

    Related

    Generative Gallery

    Product/NFT gallery field; video studio polish is backlog there (GENERATIVE_CREDIT_VIDEO).

    Generative videos (developer)

    CLI examples, model pricing table, legacy generate script.

    Generative images

    Shared xAI block and first-frame generation.

    WalletConductor

    Conductor pattern for wallet money paths.

    Release history

    DateMilestone
    2026-06-09ImageConductor — generated_images ledger, ring-image-create MCP
    2026-06-18VideoConductor v1 — draft/production T2V, ring-video-create MCP, manifest v2
    2026-06-18I2V modes — draft_i2v / production_i2v, firstFramePrompt, sourceVideoUrl edit remaster
    2026-06-19Migration 018 — generated_videos on dev + prod
    2026-07-12Dual-audience docs — Founder ops journey vs Developer API/storage
    grok-imagine-video-1.5
    720p
    $0.14
    Yes

    Same conductor pattern for money paths (top-up, desk, custodial send).

    Surfaces

    SurfaceEntryAuth
    MCPring-video-create → POST /api/mcp/v1/videos/generateRING_MCP_ACCESS_KEY bearer
    Scripted CLInode scripts/ring-viral-video/run-scripted-video.mjs <request.json>Local XAI_API_KEY + gateway token
    Server codeVideoConductor.generate / .remaster / .editFromSourceApp runtime

    Remaster strategies

    InputBehavior
    remaster: true onlyRe-generate at 720p
    remaster: true + sourceVideoUrlPOST /v1/videos/edits — scene-preserving edit

    Cost control workflow

    1. 1

      Draft every scene @ 480p

      Use qualityMode: draft (or draft_i2v with a still) until framing and motion are acceptable. Manifest CLI upserts by id::qualityMode — partial runs never wipe prior clips.

    2. 2

      Remaster winners @ 720p

      Call with remaster: true on approved clips, or pass sourceVideoUrl from the draft manifest for an edit pass that preserves composition.

    3. 3

      Persist to ring-filebase

      Leave persistToFilebase at default true so operators get permanent CDN URLs instead of expiring xAI temporary links.

    Treat draft spend as the learning budget. Only remaster clips that survive review — that is the main lever on xAI video cost.

    lib/video/providers/xai.provider.ts
    Request schemalib/media/schemas.ts → generateVideoBodySchema
    MCP routeapp/api/mcp/v1/videos/generate/route.ts
    Scripted medialib/media/* — prompt compiler, thumbnail renderer
    Truth lensAI-LEGIOX/legiox-truth-lens/xai-grok-imagine-video-specialist.nodus.json

    MCP request body (validated)

    FieldRequiredNotes
    promptYesMotion, ACTION, DIALOGUE blocks
    qualityModeNodraft (default), draft_i2v, production, production_i2v
    imageUrlFor 1.5 I2VAuto-upgrades draft → draft_i2v
    firstFramePromptNoTriggers ImageConductor when imageUrl absent
    thumbnailNoThumbnailSpec — overlays on first frame
    sourceVideoUrlFor edit remasterPrior clip url from manifest or CDN
    remasterNotrue → VideoConductor.remaster()
    remasterFromRequestIdNoAudit link to draft xAI job
    persistToFilebaseNoDefault true
    clipId / pipelineRequestIdNoMulti-clip campaign tracking
    purpose / refCodeNoStorage path + referral attribution

    actorId is set server-side from the MCP guard — never trust client-supplied actor ids on the gateway.

    Database & storage

    Apply migration data/migrations/018_generative_media_conductor_schema.sql (idempotent).

    TableRole
    generated_videosOne row per persisted clip — JSONB data holds GeneratedVideoRecord
    generated_imagesFirst-frame stills from ImageConductor (separate ledger)

    Indexed JSONB paths: actorId, provider, purpose, refCode, clipId, pipelineRequestId, qualityMode, requestId, generationKind, remasterFromRequestId.

    Storage layout

    BackendSelector routes generated_videos and generated_images to PostgreSQL. Missing table: upload still succeeds; persist logs a warning until migration 018 is applied.

    Architecture

    VideoConductor module graph

    Environment variables

    From env.local.template — reuse XAI_API_KEY from ImageConductor:

    Security

    Never commit XAI_API_KEY or RING_MCP_ACCESS_KEY. MCP routes are bearer-gated via withMcpGuard.

    Response shape

    FieldDescription
    video.urlPermanent CDN URL (when persisted) or temporary xAI URL
    video.temporaryUrlOriginal xAI download link (expires)
    video.requestIdxAI job id — audit and remaster chains
    video.recordIdgenerated_videos row id
    firstFrameImageConductor asset when firstFramePrompt was used
    thumbnailRendered thumbnail when thumbnail.enabled
    estimatedCostUsdduration × preset rate estimate
    qualityMode / resolutionEffective preset after auto-upgrade

    Moderation failures return success: false when xAI sets respect_moderation: false.

    Documentation components

    MDX widget reference for authoring.

    grok-imagine-video-1.5
    720p
    $0.14
    Yes

    Same conductor pattern for money paths (top-up, desk, custodial send).

    Surfaces

    SurfaceEntryAuth
    MCPring-video-create → POST /api/mcp/v1/videos/generateRING_MCP_ACCESS_KEY bearer
    Scripted CLInode scripts/ring-viral-video/run-scripted-video.mjs <request.json>Local XAI_API_KEY + gateway token
    Server codeVideoConductor.generate / .remaster / .editFromSourceApp runtime

    Remaster strategies

    InputBehavior
    remaster: true onlyRe-generate at 720p
    remaster: true + sourceVideoUrlPOST /v1/videos/edits — scene-preserving edit

    Cost control workflow

    1. 1

      Draft every scene @ 480p

      Use qualityMode: draft (or draft_i2v with a still) until framing and motion are acceptable. Manifest CLI upserts by id::qualityMode — partial runs never wipe prior clips.

    2. 2

      Remaster winners @ 720p

      Call with remaster: true on approved clips, or pass sourceVideoUrl from the draft manifest for an edit pass that preserves composition.

    3. 3

      Persist to ring-filebase

      Leave persistToFilebase at default true so operators get permanent CDN URLs instead of expiring xAI temporary links.

    Treat draft spend as the learning budget. Only remaster clips that survive review — that is the main lever on xAI video cost.

    lib/video/providers/xai.provider.ts
    Request schemalib/media/schemas.ts → generateVideoBodySchema
    MCP routeapp/api/mcp/v1/videos/generate/route.ts
    Scripted medialib/media/* — prompt compiler, thumbnail renderer
    Truth lensAI-LEGIOX/legiox-truth-lens/xai-grok-imagine-video-specialist.nodus.json

    MCP request body (validated)

    FieldRequiredNotes
    promptYesMotion, ACTION, DIALOGUE blocks
    qualityModeNodraft (default), draft_i2v, production, production_i2v
    imageUrlFor 1.5 I2VAuto-upgrades draft → draft_i2v
    firstFramePromptNoTriggers ImageConductor when imageUrl absent
    thumbnailNoThumbnailSpec — overlays on first frame
    sourceVideoUrlFor edit remasterPrior clip url from manifest or CDN
    remasterNotrue → VideoConductor.remaster()
    remasterFromRequestIdNoAudit link to draft xAI job
    persistToFilebaseNoDefault true
    clipId / pipelineRequestIdNoMulti-clip campaign tracking
    purpose / refCodeNoStorage path + referral attribution

    actorId is set server-side from the MCP guard — never trust client-supplied actor ids on the gateway.

    Database & storage

    Apply migration data/migrations/018_generative_media_conductor_schema.sql (idempotent).

    TableRole
    generated_videosOne row per persisted clip — JSONB data holds GeneratedVideoRecord
    generated_imagesFirst-frame stills from ImageConductor (separate ledger)

    Indexed JSONB paths: actorId, provider, purpose, refCode, clipId, pipelineRequestId, qualityMode, requestId, generationKind, remasterFromRequestId.

    Storage layout

    BackendSelector routes generated_videos and generated_images to PostgreSQL. Missing table: upload still succeeds; persist logs a warning until migration 018 is applied.

    Architecture

    VideoConductor module graph

    Environment variables

    From env.local.template — reuse XAI_API_KEY from ImageConductor:

    Security

    Never commit XAI_API_KEY or RING_MCP_ACCESS_KEY. MCP routes are bearer-gated via withMcpGuard.

    Response shape

    FieldDescription
    video.urlPermanent CDN URL (when persisted) or temporary xAI URL
    video.temporaryUrlOriginal xAI download link (expires)
    video.requestIdxAI job id — audit and remaster chains
    video.recordIdgenerated_videos row id
    firstFrameImageConductor asset when firstFramePrompt was used
    thumbnailRendered thumbnail when thumbnail.enabled
    estimatedCostUsdduration × preset rate estimate
    qualityMode / resolutionEffective preset after auto-upgrade

    Moderation failures return success: false when xAI sets respect_moderation: false.

    Documentation components

    MDX widget reference for authoring.

    grok-imagine-video-1.5
    720p
    $0.14
    Yes

    Same conductor pattern for money paths (top-up, desk, custodial send).

    Surfaces

    SurfaceEntryAuth
    MCPring-video-create → POST /api/mcp/v1/videos/generateRING_MCP_ACCESS_KEY bearer
    Scripted CLInode scripts/ring-viral-video/run-scripted-video.mjs <request.json>Local XAI_API_KEY + gateway token
    Server codeVideoConductor.generate / .remaster / .editFromSourceApp runtime

    Remaster strategies

    InputBehavior
    remaster: true onlyRe-generate at 720p
    remaster: true + sourceVideoUrlPOST /v1/videos/edits — scene-preserving edit

    Cost control workflow

    1. 1

      Draft every scene @ 480p

      Use qualityMode: draft (or draft_i2v with a still) until framing and motion are acceptable. Manifest CLI upserts by id::qualityMode — partial runs never wipe prior clips.

    2. 2

      Remaster winners @ 720p

      Call with remaster: true on approved clips, or pass sourceVideoUrl from the draft manifest for an edit pass that preserves composition.

    3. 3

      Persist to ring-filebase

      Leave persistToFilebase at default true so operators get permanent CDN URLs instead of expiring xAI temporary links.

    Treat draft spend as the learning budget. Only remaster clips that survive review — that is the main lever on xAI video cost.

    lib/video/providers/xai.provider.ts
    Request schemalib/media/schemas.ts → generateVideoBodySchema
    MCP routeapp/api/mcp/v1/videos/generate/route.ts
    Scripted medialib/media/* — prompt compiler, thumbnail renderer
    Truth lensAI-LEGIOX/legiox-truth-lens/xai-grok-imagine-video-specialist.nodus.json

    MCP request body (validated)

    FieldRequiredNotes
    promptYesMotion, ACTION, DIALOGUE blocks
    qualityModeNodraft (default), draft_i2v, production, production_i2v
    imageUrlFor 1.5 I2VAuto-upgrades draft → draft_i2v
    firstFramePromptNoTriggers ImageConductor when imageUrl absent
    thumbnailNoThumbnailSpec — overlays on first frame
    sourceVideoUrlFor edit remasterPrior clip url from manifest or CDN
    remasterNotrue → VideoConductor.remaster()
    remasterFromRequestIdNoAudit link to draft xAI job
    persistToFilebaseNoDefault true
    clipId / pipelineRequestIdNoMulti-clip campaign tracking
    purpose / refCodeNoStorage path + referral attribution

    actorId is set server-side from the MCP guard — never trust client-supplied actor ids on the gateway.

    Database & storage

    Apply migration data/migrations/018_generative_media_conductor_schema.sql (idempotent).

    TableRole
    generated_videosOne row per persisted clip — JSONB data holds GeneratedVideoRecord
    generated_imagesFirst-frame stills from ImageConductor (separate ledger)

    Indexed JSONB paths: actorId, provider, purpose, refCode, clipId, pipelineRequestId, qualityMode, requestId, generationKind, remasterFromRequestId.

    Storage layout

    BackendSelector routes generated_videos and generated_images to PostgreSQL. Missing table: upload still succeeds; persist logs a warning until migration 018 is applied.

    Architecture

    VideoConductor module graph

    Environment variables

    From env.local.template — reuse XAI_API_KEY from ImageConductor:

    Security

    Never commit XAI_API_KEY or RING_MCP_ACCESS_KEY. MCP routes are bearer-gated via withMcpGuard.

    Response shape

    FieldDescription
    video.urlPermanent CDN URL (when persisted) or temporary xAI URL
    video.temporaryUrlOriginal xAI download link (expires)
    video.requestIdxAI job id — audit and remaster chains
    video.recordIdgenerated_videos row id
    firstFrameImageConductor asset when firstFramePrompt was used
    thumbnailRendered thumbnail when thumbnail.enabled
    estimatedCostUsdduration × preset rate estimate
    qualityMode / resolutionEffective preset after auto-upgrade

    Moderation failures return success: false when xAI sets respect_moderation: false.

    Documentation components

    MDX widget reference for authoring.

    1. Docs
    2. /Features
    3. /VideoConductor

    Updated Jul 12, 20266 min listen

    1. Docs
    2. /Features
    3. /VideoConductor

    Updated Jul 12, 20266 min listen

    1. Docs
    2. /Features
    3. /VideoConductor

    Updated Jul 12, 20266 min listen