Skip to content

PiAPI nodes

Tools for AI image, video, and audio generation via PiAPI.  These nodes are also served as MCP tools on the piapi MCP server. Back to the full node reference.

PiAPI Audio Generation

piapi_audio_gen · natural-language configurable · read-only · 2 credits on Cloud

Generate audio using PiAPI.

Credential: PiApi (API key)

Parameters

FieldTypeRequiredDescription
gptDescriptionPromptstringOptional GPT-generated description prompt for guidance.
lyricsstringUser-provided lyrics when lyricsType is set to user.
lyricsTypeenumHow lyrics should be produced for the track. One of: generate, user, instrumental. Default: generate.
negativeTagsstringTags to exclude from the generated audio.
promptstringPrompt describing the audio to generate.
seednumberSeed used for deterministic generation.
titlestringTitle for the generated track.

Output

Returns a list of records — reference fields downstream as $<node>.audio.

FieldTypeDescription
audiostringURL of the generated audio file.
imagestringURL of the generated cover image.
textstringGenerated lyrics text.

PiAPI Image Generation

piapi_image_gen · natural-language configurable · read-only · 2 credits on Cloud

Generate an image using PiAPI.

Credential: PiApi (API key)

Parameters

FieldTypeRequiredDescription
batchSizenumberNumber of images to generate in a single batch.
controlNetImagestringReference image URL used for ControlNet conditioning.
controlNetTypeenumType of ControlNet conditioning to apply. One of: depth, soft_edge, canny. Default: depth.
denoisenumberDenoising strength applied during generation.
guidanceScalenumberClassifier-free guidance scale for the model.
heightnumberHeight of the generated image in pixels.
loraImagestringOptional reference image URL for the LoRA.
loraTypeenumOptional LoRA style to apply to the generation. One of: anime, art, disney, furry, mjv6, realism, scenery, collage-artstyle, creepcute, cyberpunk-anime-style, deco-pulse, deep-sea-particle-enhencer, faetastic-details, fractal-geometry, galactixy-illustrations-style, geometric-woman, graphic-portrait, mat-miller-art, moebius-style, ob3d-isometric-3d-room, paper-quilling-and-layering-style.
modelenumPiAPI image model identifier to use. One of: Qubico/flux1-schnell, Qubico/flux1-dev, Qubico/flux1-dev-advanced. Default: Qubico/flux1-schnell.
negativePromptstringAspects to discourage in the generated image.
promptstringPrompt describing the image to generate.
serviceModeenumPiAPI service mode used for the request. One of: private, public. Default: private.
widthnumberWidth of the generated image in pixels.

Output

Returns a list of records — reference fields downstream as $<node>.image.

FieldTypeDescription
imagestringURL of the generated image.

PiAPI Video Generation

piapi_video_gen · natural-language configurable · read-only · 3 credits on Cloud

Generate a video using PiAPI.

Credential: PiApi (API key)

Parameters

FieldTypeRequiredDescription
aspectRatioenumAspect ratio of the generated video. One of: 16:9, 9:16, 1:1. Default: 16:9.
cameraControlConfigHorizontalnumberHorizontal camera movement amount.
cameraControlConfigPannumberCamera pan movement amount.
cameraControlConfigRollnumberCamera roll movement amount.
cameraControlConfigTiltnumberCamera tilt movement amount.
cameraControlConfigVerticalnumberVertical camera movement amount.
cameraControlConfigZoomnumberCamera zoom movement amount.
cameraControlTypestringCamera control preset to apply during generation.
cfgScalenumberClassifier-free guidance scale used during generation. Default: 0.5.
durationnumberDuration of the generated video in seconds. Default: 5.
effectenumVisual effect to apply to the generated video. One of: squish, expansion. Default: squish.
imageTailUrlstringOptional ending reference image URL.
imageUrlstringOptional reference image URL for image-to-video.
modeenumGeneration mode (standard or pro). One of: std, pro. Default: std.
motionBrushMaskUrlstringURL of the motion brush mask image.
motionBrushPointsDynamicMasksXnumberX coordinate for the dynamic motion brush point.
motionBrushPointsDynamicMasksYnumberY coordinate for the dynamic motion brush point.
motionBrushPointsStaticMasksXnumberX coordinate for the static motion brush point.
motionBrushPointsStaticMasksYnumberY coordinate for the static motion brush point.
negativePromptstringAspects to discourage in the generated video.
promptstringPrompt describing the video to generate.
serviceModeenumPiAPI service mode used for the request. One of: private, public. Default: private.
versionenumPiAPI Kling model version. Version 2.1-master only supports pro mode. One of: 2.6, 2.5, 2.1-master, 2.1, 1.6, 1.5. Default: 2.6.

Output

Returns a list of records — reference fields downstream as $<node>.image.

FieldTypeDescription
imagestringURL of the generated cover image.
videostringURL of the generated video.