?
enhanceImageGenerationPrompt
Generate or enhance an image generation prompt using a language model. Optionally generates a negative prompt.
mindstudio.enhanceImageGenerationPrompt({ initialPrompt, includeNegativePrompt, systemPrompt }) → Result
Expands a terse idea into a fuller image-generation prompt with a language model, optionally producing a negative prompt. A pre-step before generateImage when the input is a few words and you want richer, more consistent results.
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.enhanceImageGenerationPrompt({ initialPrompt: /* ... */, includeNegativePrompt: /* ... */, systemPrompt: /* ... */ });