v1
latestOpenAPI 3.0.22026-07-26530237.8 KBnode
Create a node
post/api/v1/canvases/{canvasId}/direct/nodes
Path parameters
canvasIdstring uuid required
Request body
idstring uuid required
nodeType'text' | 'image' | 'video' | 'audio' | 'file' | 'group' | 'custom_text' | 'pdf' | 'composite' | 'stitch' | 'magic_resize' required
titlestring
groupIdstring uuid nullable
textPromptstring nullable
textstring
outputAspectRatio'21:9' | '16:9' | '4:3' | '5:4' | '3:2' | '1:1' | '2:3' | '3:4' | '4:5' | '9:16' | '9:21' nullable
outputDurationinteger nullable
matchAudioToVideoDurationboolean nullable
seedinteger nullable
negativePromptstring nullable
stitchClipOrderstring[] nullable
stitchScaleFit'fit' | 'stretch' nullable
stitchClipTrimsobject nullable
voiceIdstring nullable
customVoiceIdstring uuid nullable
srcstring uri nullable
mediaType'image' | 'video' | 'audio' | 'pdf' nullable
s3Keystring
s3Bucketstring
contentTypestring
sourceNodeIdstring uuid
groupType'default' | 'unified' | 'template' nullable
templateIdstring uuid nullable
Response
201
idstring uuid required
nodeType'text' | 'image' | 'video' | 'audio' | 'file' | 'group' | 'custom_text' | 'pdf' | 'composite' | 'stitch' | 'magic_resize' required
groupIdstring uuid nullable required
titlestring required
autoModelboolean nullable
fastModelboolean nullable
textPromptstring nullable required
outputAspectRatio'21:9' | '16:9' | '4:3' | '5:4' | '3:2' | '1:1' | '2:3' | '3:4' | '4:5' | '9:16' | '9:21' nullable required
outputDurationinteger nullable required
matchAudioToVideoDurationboolean nullable
seedinteger nullable required
negativePromptstring nullable required
stitchClipOrderstring[] nullable
stitchScaleFit'fit' | 'stretch' nullable
stitchClipTrimsobject nullable
voiceIdstring nullable
customVoiceIdstring nullable
srcstring nullable required
previewSrcstring nullable required
mediaType'image' | 'video' | 'audio' | 'pdf' nullable required
generatedTextstring nullable required
activeVersionIdstring uuid nullable required
assetDurationInMsinteger nullable required
createdByUserIdstring uuid nullable required