Skip to content

execute_forge

Execute a forge run to generate images, videos, 3D models, or audio.

Returns immediately with an inference ID, which can be polled with `get_forge_run` for results.

Call `get_forge_instructions` first for full forge lifecycle guidance.

Parameters

ParameterTypeDefaultDescription
model_idrequiredstring (uuid)Model/style ID to use for generation.
weightnumber0–21Style/LoRA strength applied to the model. 1.0 = as trained; lower weakens, higher over-applies the style. Only affects LoRA/adapter-backed styles; ignored for models without a trainable adapter.
promptstringText prompt describing what to generate.
widthinteger>0Output width in pixels. Pass both width and height whenever the output must have a specific aspect ratio: with either one absent and an init image, editing reference, or first frame attached, the output geometry is taken from that file rather than from a model default.
heightinteger>0Output height in pixels. Pass both width and height whenever the output must have a specific aspect ratio: with either one absent and an init image, editing reference, or first frame attached, the output geometry is taken from that file rather than from a model default.
batch_sizeinteger1–164Number of outputs to generate (1-16).
seedinteger-1Random seed. -1 for random.
guidance_filesForgeGuidanceFileInput[][]Reference images/files to guide generation.
file_idrequiredstring (uuid)File ID of an uploaded file.
typerequiredstringGuidance type: init, reference_image, pose, depth, canny, softedge_hed, segmentation, lineart, prompt (style reference), face, first_frame, last_frame, init_video, audio, init_mesh, texture_image, scribble, color_sketch, editing_reference. See model capabilities for supported types per model.
weightnumber0–1Influence weight (0-1). Defaults to 0.5 for init, 1 for others.
maskForgeMaskInputMask for inpainting/outpainting. Provide file_id or transparency flags.
file_idstring (uuid)Mask image file ID.
for_transparencybooleanUse transparent areas as mask.
for_nontransparencybooleanUse non-transparent areas as mask.
edge_radiusinteger≥00Mask edge blur radius in pixels.
num_inference_stepsintegerNumber of diffusion steps.
guidance_scalenumberGuidance scale (CFG).
prompt_strengthnumber0–1Prompt strength for img2img (0-1).
qualityenumQuality level.
One of: low, medium, high
sharpnessnumberOutput sharpness.
duration_secondsnumberVideo duration in seconds.
generate_audiobooleanGenerate audio with video.
keep_audiobooleanKeep audio from input video.
fpsintegerFPS for LTX video generation (e.g. 25 or 50).
video_effectsForgeVideoEffectInput[][]Video effects to apply.
typerequiredstringVideo effect type (UPPERCASE). Common types: GENERAL, ORBIT_360, DOLLY_IN, DOLLY_OUT, ZOOM_IN, ZOOM_OUT, CRANE_UP, CRANE_DOWN, TILT_UP, TILT_DOWN, STATIC, FPV_DRONE, HYPERLAPSE, HANDHELD. See model capabilities for supported effects per model.
weightnumber0–100Effect strength (0-100).
frame_extraction_locationenumWhich frame to extract from an input video: first, middle, or last. Used by ffmpeg-extract-frame and similar models.
One of: first, last, middle, timestamp
use_ta_posebooleanDeprecated: use pose_mode. Legacy rig-ready-pose toggle for 3D.
pose_modeenumRest pose for a character mesh: A_POSE or T_POSE. Support varies by model.
One of: A_POSE, T_POSE
include_texturesbooleanInclude textures in 3D output.
quad_meshbooleanGenerate quad mesh.
pbr_materialsbooleanGenerate PBR materials.
low_polybooleanGenerate low-poly mesh.
generate_partsbooleanGenerate separate parts.
detailed_geometrybooleanGenerate denser, more detailed geometry. Costs extra and only some 3D models support it.
export_uvbooleanSet false to omit UV coordinates from the 3D output.
compress_geometrybooleanReturn a geometry-compressed mesh. Only some 3D models support it.
face_limitintegerFace/polygon limit for 3D mesh.
stabilitynumber0–1Audio stability (0-1).
use_speaker_boostbooleanBoost speaker clarity.
similarity_boostnumber0–1Voice similarity boost (0-1).
style_exaggerationnumber0–1Style exaggeration (0-1).
speednumberSpeech speed multiplier.
upscale_rationumberUpscale factor (e.g. 2.0, 4.0).
creativitynumberCreative variation strength for upscaling.
resemblancenumberResemblance to original for upscaling.
vectorizebooleanVectorize the output image.
vectorization_modeenumSVG path mode: 'spline' (curved) or 'polygon' (straight lines).
One of: spline, polygon
vectorization_color_modeenumSVG color output: 'color' or 'binary' (black and white).
One of: color, binary
vectorization_filter_speckleinteger0–128Filter out small speckles and noise when vectorizing (0-128).
vectorization_color_precisioninteger1–8Color quantization level when vectorizing (1-8).
remove_backgroundbooleanRemove the background. Effective as the standalone operation on a background-removal model; a generation model does not chain removal onto its outputs on this surface.
reframebooleanReframe/extend the image.
refillbooleanOutpaint/refill transparent areas.
workspace_idrequiredstring (uuid)The user's workspace id.
session_idstring (uuid)The Session ID to attach the results to.
session_namestringCreates a new session with this name. One of `session_name` or `session_id` must specified, but not both.