Quickstart Guide

How to use our API

https://www.glb2png.com/v1/
1
/r/
2
/u/
3
1. API Key
Used to identify your account. Can be found on your dashboard
2. Scene and image settings
Scene settings can be set as a comma (,) separated key-value list in the following format: key:value
All settings and examples can be found below.
3. URL to glb/glTF file
Public link to your glb/glTF model
Scene and image settings

rh - camera rotation horizontal

Controls how far the camera is rotated to the left or right.

Examples:

  • rh:45 means the camera is rotated 45 degrees to the right
  • rh:-70 means the camera is rotated -70 degrees to the left

Default: 0

rv - camera rotation vertical

Controls how far the camera is rotated up or down.

Examples:

  • rv:45 means the camera is rotated 45 degrees up
  • rv:-70 means the camera is rotated -70 degrees down, showing the object from below

Default: 0

s - size

Set the resolution of the returned image. Images are always square.

Examples:

  • s:256 means the returned image has a resolution of 256x256 pixels

Default: 1024

v - variant

Set the variant name that should be rendered. About glTF Material Variants

Examples:

  • v:street means the returned image will be off the glTF/glb with variant name 'street'
Examples
Example 1
Settings: rh:-45,rv:15,s:512
Rotated 45 degrees left (-) and 15 degrees up
Example 1
Settings: rh:-45,rv:15,s:256,v:beach
Rendered a different variant: beach
Example 1
Settings: rh:-45,rv:15,s:512,v:beach
With yellow set as css image background