Estimate the Creative Units cost of an inference with given parameters.
Personal Access Token or OAuth2 JWT. Create a PAT at app.layer.ai → Settings → Personal Access Tokens.
REST request body for estimating inference price. 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.
Successful Response
Total estimated Creative Units price for this run.
Usable Creative Units balance (total balance minus reserved by in-progress generations).
Usable balance after subtracting the estimated price. Can be negative.
Whether the workspace has enough available Creative Units to cover the estimated price.