POST /sequence

Generates a sequence of images for rotation and/or animation playback.

Request Body

ParameterTypeRequiredDefaultDescription
modelstringYes-URL or base64 data of the GLB model.
frameCountnumberNo8Number of frames to generate (min 1, max 32 for the Cloud API).
rotationAxisstringNonullThe axis to rotate around. Options: x (Pitch), y (Yaw), or z (Roll). Case-insensitive. If null or omitted, no rotation is applied.
cameraOrbitSwingXnumberNo0Swing range (0-120) applied to cameraOrbitX. Oscillates ±swing/2 around the base value over the sequence.
cameraOrbitSwingYnumberNo0Swing range (0-120) applied to cameraOrbitY. Oscillates ±swing/2 around the base value over the sequence. Set to 100 to match the previous vertical swing (25°–125°).
rotationOrbitstringNonullRotates the camera orbit over the sequence. "x" spins cameraOrbitX 0–360°, "y" spins cameraOrbitY 0–360°.
updateFramingbooleanNofalseWhen true, calls updateFraming() between frames to recalc camera framing after orientation/scale changes.
widthnumberNo1024Output image width (64-2048).
heightnumberNo1024Output image height (64-2048).
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.
cameraOrbitYnumberNo75Base camera elevation (phi) in degrees.
cameraDistancenumberNo105Camera distance as a percentage of tight framing (e.g., 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.
includeMetadatabooleanNofalseIf true, the response will include a metadata object with details about the 3D model.
animationNamestringNonullThe name of the animation to play during the sequence. If set to "auto", the first available animation is used. If not provided or null, no animation is played and startTime/endTime are ignored.
startTimenumberNo0 (if animation)The start time of the animation sequence in seconds. Only used if animationName is provided. Defaults to 0 if not specified.
endTimenumberNoanimation duration (if animation)The end time of the animation sequence in seconds. Only used if animationName is provided. If not specified, uses the full animation duration.
outputFormatstringNo"webp"The desired image format of all frames. Supported values are webp, png, and avif.
qualitynumberNo70The compression quality for lossy formats like webp and avif, ranging from 1 to 100. Higher values mean better quality and larger file sizes.

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).