OptionalcontextOptionalcontrolControlNet model parameters
OptionaldisableNSFWFilterDisable NSFW filter for Project. Default is false, meaning NSFW filter is enabled. If image triggers NSFW filter, it will not be available for download.
Guidance scale. For most Stable Diffusion models, optimal value is 7.5
OptionalheightOutput image height. Only used if sizePreset is "custom"
ID of the model to use, available models are available in the availableModels property of the ProjectsApi instance.
Prompt for what to be avoided
OptionalnetworkOverride current network type. Default value can be read from client.account.currentAccount.network
Number of images to generate
OptionalnumberNumber of previews to generate. Note that previews affect project cost\
OptionaloutputOutput image format. Can be 'png' or 'jpg'. If not specified, 'png' will be used.
Prompt for what to be created
OptionalschedulerScheduler to use
OptionalseedSeed for one of images in project. Other will get random seed. Must be Uint32
OptionalsizeSize preset ID to use. You can query available size presets
from client.projects.sizePresets(network, modelId)
OptionalstartingGenerate images based on the starting image.
Supported types:
File - file object from input[type=file]
Buffer - Node.js buffer object with image data
Blob - blob object with image data
true - indicates that the image is already uploaded to the server
OptionalstartingHow strong effect of starting image should be. From 0 to 1, default 0.5
Number of steps. For most Stable Diffusion models, optimal value is 20
Image style prompt
OptionaltimeTime step spacing method
OptionaltokenSelect which tokens to use for the project. If not specified, the Sogni token will be used.
OptionalwidthOutput image width. Only used if sizePreset is "custom"
Context images for Flux Kontext model. Flux Kontext support up to 2 context images. Supported types:
File- file object from input[type=file]Buffer- Node.js buffer object with image dataBlob- blob object with image datatrue- indicates that the image is already uploaded to the server