Reference
Remy Reference/agent/generateImage
?

generateImage

Generate an image from a text prompt using an AI model.
mindstudio.generateImage({ prompt }) → Result

Generates an image from a text prompt and returns a hosted image URL — the default model works out of the box, or a model override picks a specific model with its own options like dimensions, steps, and seed. Write the result into a file store if you need it to persist on your own domain.

Parameters
prompt
string
RequiredText prompt describing the image to generate
intermediateAsset
boolean
When true, the asset is created but hidden from the user's gallery (tagged as intermediate)
imageModelOverride
object
Optional model configuration override. Uses the workflow's default image model if not specified
generateVariants
boolean
Whether to generate multiple image variants in parallel
numVariants
number
Number of variants to generate (max 10)
addWatermark
boolean
Whether to add a MindStudio watermark to the generated image. The watermark is a product mark on assets generated in the MindStudio UI. A step run directly via the SDK or API is producing the app's own asset, so it is never watermarked and
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.generateImage({
  prompt: /* ... */
});