?
enhanceVideoGenerationPrompt
Generate or enhance a video generation prompt using a language model. Optionally generates a negative prompt.
mindstudio.enhanceVideoGenerationPrompt({ initialPrompt, includeNegativePrompt, systemPrompt }) → Result
The video counterpart to prompt enhancement: turns a short idea into a fuller video-generation prompt, optionally with a negative prompt, as a pre-step before generateVideo.
Parameters
initialPrompt
string
RequiredThe raw prompt to enhance
includeNegativePrompt
boolean
RequiredWhether to also generate a negative prompt
negativePromptDestinationVariableName
string
Variable name to save the negative prompt into
systemPrompt
string
RequiredCustom system prompt for the enhancement model. Uses a default prompt if not provided
modelOverride
object
Model override settings. Leave undefined to use the default model
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.enhanceVideoGenerationPrompt({ initialPrompt: /* ... */, includeNegativePrompt: /* ... */, systemPrompt: /* ... */ });