What this is
The preview service generates image previews for projects, models, versions, and objects. The service returns PNG files. If a preview is not ready, the service returns a placeholder image.When to use it
Use the preview service when you need preview images in your application. Previews are generated in the background. They are cached after the first generation.When not to use it
Do not use the preview service for real-time rendering. Previews are static images. Do not use the preview service if you need interactive 3D views.The simplest working example
Get the preview for the latest version in a project:abc123 with your project ID.
Notes for real projects
Endpoints
All endpoints return PNG images. If a preview is missing, a placeholder image is returned. The URLs use legacy parameter names (streamId, branchName, commitId) for backward compatibility. These correspond to project ID, model name, and version ID in modern Speckle terminology.
Get project preview
Returns the preview for the latest version in a project:streamId: Project ID (required)angle: View angle such asiso,top, orfront(optional)
Get model preview
Returns the preview for the latest version in a specific model:streamId: Project ID (required)branchName: Model name (required)angle: View angle (optional)
Get version preview
Returns the preview for a specific version:streamId: Project ID (required)commitId: Version ID (required)angle: View angle (optional)
Get object preview
Returns the preview for a specific object:streamId: Project ID (required)objectId: Object ID (required)angle: View angle (optional)
Authentication
Private projects require an authentication token:Self-hosted setup
The preview service must run separately. It requires:- Redis for the job queue
- A database connection
- The server URL for fetching objects