Meshy 6 Image to 3D
Model id: meshy/meshy-6-image-to-3d. Meshy 6 turns a single image into a textured 3D model, with a low-poly mode and a target polygon count for game-ready assets.
Model Overview
Meshy 6 turns a single image into a textured 3D model, with a low-poly mode and a target polygon count for game-ready assets.
The two ids above are the same model and take the same request — use either one. The mesh comes back in GLB, FBX, OBJ, USDZ and STL at once, with its textures as separate files.
API Schema
The image (URL or Base64 data URI) to build the 3D model from. Supported formats: JPG, JPEG, PNG, AVIF, HEIF.
Mesh generation mode. 'standard' produces a regular high-detail mesh, 'lowpoly' produces a clean low-poly mesh (the remesh controls topology, target_polycount and should_remesh are ignored in this mode), 'smart-topology' produces clean, natively separated parts.
standardPossible values: Topology of the generated mesh: quad for smooth surfaces, triangle for detailed geometry.
trianglePossible values: Target number of polygons in the generated mesh, from 100 to 300,000 (at most 15,000 for 'smart-topology'). The actual count may deviate from the target. When omitted, 30,000 is used for 'standard' and 4,000 for 'smart-topology'. Ignored for 'lowpoly'.
Symmetry during generation: off disables it, auto detects it, on enforces it.
autoPossible values: Whether to run the remesh phase.
trueWhether to generate textures.
trueWhether to generate PBR maps (metallic, roughness, normal) in addition to the base color.
falsePose of the generated model: 'a-pose', 't-pose', or an empty string for no specific pose.
""Possible values: Text prompt that guides texturing, up to 600 characters.
The generated 3D model, with its textures and exports.
Seed used for this generation.
107751191Animated GLB, when an animation was requested. Null otherwise.
Animated FBX, when an animation was requested. Null otherwise.
Rigged character GLB, when rigging was requested. Null otherwise.
Rigged character FBX, when rigging was requested. Null otherwise.
Basic animation set, when requested. Null otherwise.
Id of the rigging task, when one was created. Null otherwise.
01a10cc3-589e-7993-b964-3fe08ef2b484curl --request POST \
--url 'https://api.aimlapi.com/v1/images/generations' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--max-time 900 \
--data '{"model": "meshy/meshy-6-image-to-3d", "image_url": "https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/.gitbook/assets/576px-Fly_Agaric_mushroom_05.jpg"}'The generated 3D model, with its textures and exports.
{
"model_glb": {
"url": "https://s3.aimlapi.com/files/file-01a10cc8-472f-75a4-bdd8-c97e46dcdd1f",
"content_type": "model/gltf-binary",
"file_name": "model.glb",
"file_size": 4788316
},
"thumbnail": {
"url": "https://s3.aimlapi.com/files/file-01a10cc8-472f-75a4-bdd8-c97e46dcdd1f",
"content_type": "image/png",
"file_name": "preview.png",
"file_size": 90966
},
"model_urls": {
"glb": {
"url": "https://s3.aimlapi.com/files/file-01a10cc8-472f-75a4-bdd8-c97e46dcdd1f",
"content_type": "model/gltf-binary",
"file_name": "model.glb",
"file_size": 4788316
},
"fbx": {
"url": "https://s3.aimlapi.com/files/file-01a10cc8-472f-75a4-bdd8-c97e46dcdd1f",
"content_type": "application/octet-stream",
"file_name": "model.fbx",
"file_size": 4512748
},
"obj": {
"url": "https://s3.aimlapi.com/files/file-01a10cc8-472f-75a4-bdd8-c97e46dcdd1f",
"content_type": "text/plain",
"file_name": "model.obj",
"file_size": 3328531
},
"usdz": {
"url": "https://s3.aimlapi.com/files/file-01a10cc8-472f-75a4-bdd8-c97e46dcdd1f",
"content_type": "model/vnd.usdz+zip",
"file_name": "model.usdz",
"file_size": 5195846
},
"blend": {
"url": "https://s3.aimlapi.com/files/file-01a10cc8-472f-75a4-bdd8-c97e46dcdd1f",
"content_type": "application/octet-stream",
"file_name": "model.blend",
"file_size": 0
},
"stl": {
"url": "https://s3.aimlapi.com/files/file-01a10cc8-472f-75a4-bdd8-c97e46dcdd1f",
"content_type": "application/octet-stream",
"file_name": "model.stl",
"file_size": 1529634
}
},
"texture_urls": [
{
"base_color": {
"url": "text",
"content_type": "image/png",
"file_name": "texture_0.png",
"file_size": 1
},
"metallic": {
"url": "text",
"content_type": "image/png",
"file_name": "texture_0.png",
"file_size": 1
},
"normal": {
"url": "text",
"content_type": "image/png",
"file_name": "texture_0.png",
"file_size": 1
},
"roughness": {
"url": "text",
"content_type": "image/png",
"file_name": "texture_0.png",
"file_size": 1
}
}
],
"seed": 107751191,
"animation_glb": null,
"animation_fbx": null,
"rigged_character_glb": null,
"rigged_character_fbx": null,
"basic_animations": null,
"rig_task_id": null,
"requestId": "01a10cc3-589e-7993-b964-3fe08ef2b484",
"meta": {
"model": "meshy/v6/image-to-3d",
"provider": "falai",
"usage": {
"credits_used": 2080000,
"usd_spent": 1.04
},
"metrics": {
"duration_ms": 323751
}
}
}Code Example
Reading the response
There is no data array here — the response is the model itself:
model_glbis the main output. Each file object carriesurl,content_type,file_nameandfile_size.model_urlsholds the same mesh exported toglb,fbx,obj,usdzandstl.blendisnullunless it was produced. Pick the format your engine wants; you do not pay extra for the others.thumbnailis a rendered preview, handy for a gallery without loading the mesh.texture_urlsholds the texture maps. Onlybase_coloris filled by default — setenable_pbr: trueto also getmetallic,normalandroughness.animation_*,rigged_character_*,basic_animations,rig_task_idstaynullunless you asked for rigging or animation.meta.usage.usd_spentis what the generation cost, andmeta.metrics.duration_mshow long it took.
Tuning the mesh
The defaults give a standard, textured, triangle-topology mesh. The parameters worth knowing:
model_type
standard (detailed), lowpoly (clean low-poly) or smart-topology
target_polycount
100 to 300,000 polygons — at most 15,000 with smart-topology. The result may deviate from the target
topology
quad for smooth surfaces, triangle for detailed geometry
symmetry_mode
auto detects symmetry, on enforces it, off disables it
enable_pbr
adds metallic, roughness and normal maps to texture_urls
texture_prompt
up to 600 characters of text to steer the texturing
should_texture
set to false for an untextured mesh
pose_mode
a-pose or t-pose for characters, empty for no specific pose
A game-ready low-poly asset, for example:
Last updated
Was this helpful?