API reference · Meshy

meshy/meshy/v5/multi-image-to-3d

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

IMAGEAsyncOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDmeshy/meshy/v5/multi-image-to-3d
01

Input Schema

15 parameters · 0 required · 15 optional

ParameterTypeRequiredDescription
imagesstring[]Optional1 to 4 images for 3D model creation. All images should depict the same object from different angles. Supports .jpg, .jpeg, .png formats, and AVIF/HEIF which will be automatically converted. If more than 4 images are provided, only the first 4 will be used.
topologystringOptionalSpecify the topology of the generated model. Quad for smooth surfaces, Triangle for detailed geometry. · Options: quad, triangle · Default: "triangle"
quadtriangle
pose_modestringOptionalPose mode for the generated model. 'a-pose' generates an A-pose, 't-pose' generates a T-pose, empty string for no specific pose. · Options: a-pose, t-pose, · Default: ""
a-poset-pose
enable_pbrbooleanOptionalGenerate PBR Maps (metallic, roughness, normal) in addition to base color. Requires should_texture to be true. · Default: false
is_a_t_posebooleanOptionalDeprecated: use pose_mode instead. When true, generates a T-pose model. · Default: false
should_remeshbooleanOptionalWhether to enable the remesh phase. When false, returns triangular mesh ignoring topology and target_polycount. · Default: true
symmetry_modestringOptionalControls symmetry behavior during model generation. · Options: off, auto, on · Default: "auto"
offautoon
enable_riggingbooleanOptionalAutomatically rig the generated model as a humanoid character. Includes basic walking and running animations. Best results with humanoid characters that have clearly defined limbs. · Default: false
should_texturebooleanOptionalWhether to generate textures. False provides mesh without textures for 5 credits, True adds texture generation for additional 10 credits. · Default: true
texture_promptstringOptionalText prompt to guide the texturing process. Requires should_texture to be true. · Max length: 600
enable_animationbooleanOptionalApply an animation preset to the rigged model. Requires enable_rigging to be true. · Default: false
target_polycountintegerOptionalTarget number of polygons in the generated model · Min: 100 · Max: 300000 · Default: 30000
texture_image_urlstringOptional2D image to guide the texturing process. Requires should_texture to be true.
animation_action_idintegerOptionalAnimation preset ID from Meshy's library (500+ presets). Only used when enable_animation is true. See https://docs.meshy.ai/en/api/animation-library for available action IDs. · Default: 1001
rigging_height_metersnumberOptionalApproximate height of the character in meters. Only used when enable_rigging is true. · Default: 1.7
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description

Async Workflow

This model uses asynchronous execution. Submit a request and poll for the result.

  1. Submit — POST to /v1/run, receive an id
  2. Poll — GET /v1/run/{id} until status is completed, failed, or timeout
  3. Retrieve — Read outputs from the completed response
03

Code Examples

Ready-to-run snippets

const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/run", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "meshy/meshy/v5/multi-image-to-3d",
    "images": [
      "https://static.sandbase.ai/examples/meshy/meshy/v5/multi-image-to-3d/input_images_0.png",
      "https://static.sandbase.ai/examples/meshy/meshy/v5/multi-image-to-3d/input_images_1.png",
      "https://static.sandbase.ai/examples/meshy/meshy/v5/multi-image-to-3d/input_images_2.png"
    ],
    "topology": "triangle",
    "enable_pbr": false,
    "is_a_t_pose": false,
    "should_remesh": true,
    "symmetry_mode": "auto",
    "enable_rigging": false,
    "should_texture": true,
    "enable_animation": false,
    "target_polycount": 30000,
    "animation_action_id": 1001,
    "rigging_height_meters": 1.7
  }),
});

if (!response.ok) throw new Error(await response.text());
let result = await response.json();
for (let attempt = 0; attempt < 120 && !["completed", "failed", "timeout"].includes(result.status); attempt++) {
  await new Promise((resolve) => setTimeout(resolve, 2_000));
  const poll = await fetch(`https://api.sandbase.ai/v1/run/${result.id}`, {
    headers: { Authorization: `Bearer ${apiKey}` },
  });
  if (!poll.ok) throw new Error(await poll.text());
  result = await poll.json();
}
if (result.status !== "completed") throw new Error(`Generation ended: ${result.status}`);
console.log(result);