POST /single

Generates a single image of the model from a specific angle, with adjustable rendering options.

Request Body

ParameterTypeRequiredDefaultDescription
modelstringYes-URL or base64 data of the GLB model.
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).
yawnumberNo315Rotation around the Y-axis (turning left/right).
cameraOrbitXnumberNo0Base camera azimuth (theta) in degrees for positioning the camera around the model.
cameraOrbitYnumberNo75Base camera elevation (phi) in degrees.
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.
includeMetadatabooleanNofalseIf true, the response will include a metadata object with details about the 3D model.
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"The desired image format. 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.
imagestringA base64-encoded data URL of the rendered image.
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).