Free plan

3D model preview

Make a picture of a 3D model from the angle you choose
POST
/v1/render/model-3d

About this tool

A 3D model is a file that describes an object in three dimensions, such as an STL, OBJ or text PLY file. This tool draws a picture of it from the side or angle you choose, shaded by a light. You can show edges, a ground shadow and axes, make a turntable sheet and read its size, surface area and volume.
For example, you make a preview picture of a product model.

How to use it

  1. Choose this tool.
  2. Add your 3D model file with Upload or drag and drop.
  3. Choose the view or angle, and the colour.
  4. Choose extras such as edges or a shadow, then press Generate.
  5. Download the picture.

What you get back

You get a picture of your model, plus its measurements. Download it.
GOOD TO KNOW
The model is drawn by the service itself (no graphics card), so very large models are thinned out. Colours and materials in the file are not used. A binary PLY is not supported. Counts as one render.
TEST IT LIVE

Try 3D model preview in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Render
Plan
Free
Method
POST
Endpoint
/v1/render/model-3d
Tool ID
render.model-3d
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Render
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/render/model-3d" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'view=isometric' \
  -F 'up=z' \
  -F 'azimuth=-360'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.render.model3d({
    "file": 'document.pdf',
    "view": "isometric",
    "up": "z",
    "azimuth": -360
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->render()->model3d([
    'file' => 'document.pdf',
    'view' => 'isometric',
    'up' => 'z',
    'azimuth' => -360,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Draw a picture of a 3D model (STL, OBJ or text PLY) from the side or angle you choose, shaded by a light, with edges, a ground shadow, axes and a turntable sheet, and get its size, surface area and volume.

3D model preview works from text and settings, so no file is needed. Every input is optional.

3D model preview is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/render/model-3d with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.