POST /batch

Generates multiple images, each with its own custom parameters.

Request Body

ParameterTypeRequiredDefaultDescription
modelstringYes-URL or base64 data of the GLB model.
includeMetadatabooleanNofalseIf true, includes model metadata in the response.
updateFramingbooleanNotrueWhen true, calls updateFraming() between frames to recalc camera framing after orientation/scale changes.
framesarrayYes-An array of frame configuration objects (min 1, max 32 for the Cloud API).

Frame Object Parameters

Each object in the frames array can contain the following parameters:

ParameterTypeRequiredDefaultDescription
widthnumberNo1024Output image width for this frame.
heightnumberNo1024Output image height for this frame.
rollnumberNo0Rotation around the Z-axis (tilting sideways).
pitchnumberNo0Rotation around the X-axis (tilting forward/backward).
yawnumberNo0Rotation around the Y-axis (turning left/right).
cameraOrbitXnumberNo0Base camera azimuth (theta) in degrees for this frame.
cameraOrbitYnumberNo75Base camera elevation (phi) in degrees for this frame.
cameraDistancenumberNo105Camera distance as a percentage of tight framing (105105%). Increase to pull the camera back (wider view); decrease to move it closer (tighter framing).
scaleXnumberNo1Model scale factor for the X-axis.
scaleYnumberNo1Model scale factor for the Y-axis.
scaleZnumberNo1Model scale factor for the Z-axis.
shadowIntensitynumberNo0Controls the opacity of the model's shadow. A value of 0 makes the shadow invisible, and 1 makes it fully opaque.
shadowSoftnessnumberNo1Controls the blurriness of the shadow, clamped between 0 (hard) and 1 (soft). Softer shadows render faster.
backgroundstringNo"transparent"Sets the visual background (does not affect scene lighting). Accepts a URL, base64 data, and CSS color formats like hex (#RRGGBB), rgba, the keyword transparent, or CSS gradients with hex color stops (e.g., "radial-gradient(circle, #f2f2f2 0%, #2b2b2b 150%)"). For background colors that affect lighting, use environment or skybox with a CSS color or gradient string.
environmentstringNonullSpecifies the environmental image used for reflections and lighting. Accepts a URL, base64 data, CSS color/gradient, or a special value. Supported image formats include PNG, HDR, and UltraHDR JPEG. CSS gradients must use hex color stops (e.g., "linear-gradient(to right, #ffffff, #00abff)"). Special values: "neutral" (default lighting), "legacy" (old default environment).
skyboxstringNonullSpecifies the background image and environment lighting of the scene. Accepts a URL, base64 data, or a CSS color/gradient string. Supported image formats include PNG, HDR, and UltraHDR JPEG. CSS gradients must use hex color stops (e.g., "linear-gradient(to right, #ffffff, #00abff)"). HDR images are recommended for realistic lighting. UltraHDR JPEG is recommended for efficient HDR compression (see this online converter).
skyboxHeightstringNo"0m"Sets the height of the skybox, relative to the model. Accepts units "m", "cm", "mm", or a number interpreted as meters. For example, "1.5m".
exposurenumberNo1.0Adjusts the overall brightness of the scene. Higher values increase brightness.
toneMappingstringNo"neutral"The tone mapping algorithm to use. neutral is best for color accuracy. aces provides a more cinematic, film-like look but can alter hues. agx is a newer alternative to aces.
variantNamestringNonullThe name of a material variant defined in the GLB file. Set to null to use the default material.
animationNamestringNonullThe name of the animation to display. If not specified but currentTime is provided, uses the first available animation.
currentTimenumberNonullThe time position within the animation in seconds. If not specified but animationName is provided, defaults to 0 (start of animation).
outputFormatstringNo"webp"Output format for this frame. Supported: webp, png, avif.
qualitynumberNo70Compression quality for this frame (1-100, higher is better quality/larger).

Response

A successful request returns a JSON object with the following fields:

FieldTypeDescription
successbooleanAlways true for a successful response.
imagesarrayAn array of objects, where each object contains the index number and the base64-encoded image data URL.
metadataobjectAn object containing details about the model. This field is only present if includeMetadata was set to true.
warningsarrayOptional messages when a non-critical issue occurred (for example, an environment/skybox image failed to load and the render proceeded without it).