Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

This documentation is valid for the following list of our models:

  • meshy/meshy-6-image-to-3d

  • meshy/v6/image-to-3d

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.

How to make the first API call

1️⃣ Required setup (don’t skip this) ▪ Create an account: Sign up on the AI/ML API website (if you don’t have one yet). ▪ Generate an API key: In your account dashboard, create an API key and make sure it’s enabled in the UI.

2️ Copy the code example At the bottom of this page, pick the snippet for your preferred programming language (Python / Node.js) and copy it into your project.

3️ Update the snippet for your use case ▪ Insert your API key: replace <YOUR_AIMLAPI_KEY> with your real AI/ML API key. ▪ Select a model: set the model field to meshy/meshy-6-image-to-3d or meshy/v6/image-to-3d. ▪ Provide input: put a publicly reachable image URL (or a Base64 data URI) in image_url.

4️ (Optional) Tune the request See the API schema below for model_type, target_polycount, topology and the texturing options.

5️ Run your code Run the updated code in your development environment — and raise the client timeout first.

API Schema

post
Body
modelstring · enumRequiredPossible values:
image_urlstring · uriRequired

The image (URL or Base64 data URI) to build the 3D model from. Supported formats: JPG, JPEG, PNG, AVIF, HEIF.

model_typestring · enumOptional

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.

Default: standardPossible values:
topologystring · enumOptional

Topology of the generated mesh: quad for smooth surfaces, triangle for detailed geometry.

Default: trianglePossible values:
target_polycountinteger · min: 100 · max: 300000Optional

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_modestring · enumOptional

Symmetry during generation: off disables it, auto detects it, on enforces it.

Default: autoPossible values:
should_remeshbooleanOptional

Whether to run the remesh phase.

Default: true
should_texturebooleanOptional

Whether to generate textures.

Default: true
enable_pbrbooleanOptional

Whether to generate PBR maps (metallic, roughness, normal) in addition to the base color.

Default: false
pose_modestring · enumOptional

Pose of the generated model: 'a-pose', 't-pose', or an empty string for no specific pose.

Default: ""Possible values:
texture_promptstring · max: 600Optional

Text prompt that guides texturing, up to 600 characters.

Responses
200

The generated 3D model, with its textures and exports.

application/json
seedintegerOptional

Seed used for this generation.

Example: 107751191
animation_glbany · nullableOptional

Animated GLB, when an animation was requested. Null otherwise.

animation_fbxany · nullableOptional

Animated FBX, when an animation was requested. Null otherwise.

rigged_character_glbany · nullableOptional

Rigged character GLB, when rigging was requested. Null otherwise.

rigged_character_fbxany · nullableOptional

Rigged character FBX, when rigging was requested. Null otherwise.

basic_animationsany · nullableOptional

Basic animation set, when requested. Null otherwise.

rig_task_idany · nullableOptional

Id of the rigging task, when one was created. Null otherwise.

requestIdstringOptionalExample: 01a10cc3-589e-7993-b964-3fe08ef2b484
post/v1/images/generations
curl --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"}'
200

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

Response

Reading the response

There is no data array here — the response is the model itself:

  • model_glb is the main output. Each file object carries url, content_type, file_name and file_size.

  • model_urls holds the same mesh exported to glb, fbx, obj, usdz and stl. blend is null unless it was produced. Pick the format your engine wants; you do not pay extra for the others.

  • thumbnail is a rendered preview, handy for a gallery without loading the mesh.

  • texture_urls holds the texture maps. Only base_color is filled by default — set enable_pbr: true to also get metallic, normal and roughness.

  • animation_*, rigged_character_*, basic_animations, rig_task_id stay null unless you asked for rigging or animation.

  • meta.usage.usd_spent is what the generation cost, and meta.metrics.duration_ms how long it took.

The download URLs are not permanent. Fetch the files you need as soon as the response arrives and store them yourself rather than linking to cdn.aimlapi.com from your application.

Tuning the mesh

The defaults give a standard, textured, triangle-topology mesh. The parameters worth knowing:

Parameter
What it does

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:

Choose reference images where the object is unobstructed and does not blend into the background. The model infers the unseen sides, so detail that only appears on the back of the object will be approximated.

Last updated

Was this helpful?