An object, from photos
POST /v1/image-to-3d models:create
Turns one photo of an object, or up to four of it in any order, into a textured, PBR-material 3D model (GLB and OBJ).
Form (multipart): files and fields
-
imagefile - PNG, JPEG or WebP photo of one object
-
imagesfiles - or up to 4 photos of it, in any order: the engine works out which side each shows
-
qualityfast | standard | high | ultra · default standard - fast | standard | high | ultra (default standard). Every quality builds the shape with Microsoft TRELLIS.2 at full detail and paints it with Hunyuan3D's PBR painter; the qualities differ in the faces delivered (30,000, 80,000, 150,000, 300,000) and in the texture's size (2K for fast, else 4K) and painted views, not in the shape's detail.
-
texturetrue | false · default true - true | false (default true). false makes the shape only, faster and cheaper, and keeps it (shape.npz, and the drawn views it was built from as sides.zip) so that POST /v1/jobs/{id}/texture can paint it later from the same views: a model in two steps, the shape chosen first.
-
face_countinteger · 2,000 to 300,000 - 2000-300000 (default from quality)
-
texture_sizeinteger - 1024 | 2048 | 4096 (default from quality)
-
seedinteger · 0 to 2,147,483,647 - 0-2147483647 (default random). Same seed + image + settings gives the same shape.
-
remove_backgroundauto | always | never · default auto - auto | always | never (default auto: keep an existing transparent cut-out)
-
normal_maptrue | false - true | false (default true): bake the full-detail shape's fine surface into a normal map
-
project_photostrue | false - true | false (default true): put the photos' own pixels on the surfaces they show, so lettering and fine patterns stay sharp. false keeps the generated, evenly lit texture.
-
descriptiontext · up to 600 characters - What the photos don't show, or what to change: OpenAI draws the object's sides from the photos and these words first
-
draw_sidestrue | false · default true - Have OpenAI redraw the object from all four sides first (the default); false builds from the photos alone
-
webhook_urltext - optional https URL; receives the finished job, including download links
-
latitudenumber · -90 to 90 - Where the photos or video were taken (WGS 84 degrees). Send it with longitude; it takes precedence over the files' metadata.
-
longitudenumber · -180 to 180 - optional WGS 84 degrees: where the input was captured. Without them the location is read from the photo's EXIF GPS or the video's metadata, when present.
-
headingnumber · 0 to 360 - Compass direction the (first) photo faced, in degrees from north
-
location_sourcephoto | video | device | manual · default manual - Where latitude and longitude came from, for display
-
detect_locationtrue | false · default true - Without latitude and longitude, read the location from the photo's EXIF GPS or the video's metadata