Start an AI inference (image, video, 3D, or audio). Returns immediately with an ID. Poll with GET /workspaces//inferences/ for results.
Personal Access Token or OAuth2 JWT. Create a PAT at app.layer.ai → Settings → Personal Access Tokens.
REST request body for executing an inference. workspace_id comes from path.
Model/style ID to use for generation.
Text prompt.
100000Output width in pixels.
x > 0Output height in pixels.
x > 0Number of outputs (1-16).
1 <= x <= 16Number of diffusion steps.
x > 0Guidance scale (CFG).
Prompt strength for img2img (0-1).
0 <= x <= 1Quality level: low, medium, or high.
low, medium, high Output sharpness.
Video duration in seconds.
x > 0Generate audio with video.
Keep audio from input video.
FPS for LTX video generation (e.g. 25 or 50).
x > 0Video effects to apply.
Use T/A pose for 3D.
Include textures in 3D output.
Generate quad mesh.
Generate PBR materials.
Generate low-poly mesh.
Generate separate parts.
Face/polygon limit for 3D mesh.
x > 0Audio stability (0-1).
0 <= x <= 1Boost speaker clarity.
Voice similarity boost (0-1).
0 <= x <= 1Style exaggeration (0-1).
0 <= x <= 1Speech speed multiplier.
x > 0Upscale factor (e.g. 2.0, 4.0).
Creative variation strength for upscaling.
Resemblance to original for upscaling.
Vectorize the output image.
Remove background from output.
Reframe/extend the image.
Outpaint/refill transparent areas.
Random seed. -1 for random.
Reference images/files to guide generation.
20Mask for inpainting/outpainting.
Session name.
255Successful Response
Unique identifier for this forge run.
Current status: IN_PROGRESS.
in_progress, complete, failed, cancelled, deleted Suggested polling interval in seconds.
Timestamp of when the run was created.
Estimated price in Creative Units.
Session ID the run was added to, if a session was specified.
Actual parameters used after model-specific normalization and defaults.