Microsoft Trellis 2

300积分/次起
ae_trellis_2

将单张图像转换为带纹理的 3D GLB 模型,并可平衡细节、网格质量和文件大小。

图像
300积分/次起

价格说明

300积分/次起
分辨率费用
512300积分/次
1024 / 未指定360积分/次
1536420积分/次

起价对应分辨率:512。

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
request_bodyobject是暂无参数说明。—
request_body.seedinteger | unknown否Random seed for reproducibility—
request_body.remeshboolean否Rebuild the mesh topology for cleaner triangles. Slower but usually produces better results for downstream use (animation, 3D printing, etc).true
request_body.image_urlstring是URL of the input image to convert to 3D—
request_body.resolutionenum (512 | 1024 | 1536)否Output resolution; higher is slower but more detailed1024
request_body.remesh_bandnumber否Controls how far remeshing can move vertices from the original surface. Higher values allow more smoothing but may lose fine details.1
request_body.ss_rescale_tnumber否Controls noise schedule sharpness for structure generation. Higher values produce sharper transitions.5
request_body.texture_sizeenum (1024 | 2048 | 4096)否Resolution of the texture image baked onto the mesh. Higher values capture finer surface details but produce larger files.2048
request_body.remesh_projectnumber否How much to project remeshed vertices back onto the original surface. 0 = no projection (smoother), 1 = full projection (preserves detail).0
request_body.decimation_targetinteger否Target number of vertices in the final mesh. Lower values produce smaller files but less detail. 500k is good for most uses, reduce to 20k-50k for web/mobile.500000
request_body.ss_sampling_stepsinteger否Number of denoising steps for the initial structure. More steps = slower but potentially higher quality.12
request_body.tex_slat_rescale_tnumber否Controls noise schedule sharpness for texture generation. Higher values produce sharper texture details.3
request_body.ss_guidance_rescalenumber否Dampens artifacts from high guidance in stage 1. Lower values allow stronger guidance effects, higher values stabilize the output.0.7
request_body.shape_slat_rescale_tnumber否Controls noise schedule sharpness for shape refinement. Higher values produce sharper geometric details.3
request_body.ss_guidance_strengthnumber否How closely the initial 3D structure follows the input image. Higher values produce more faithful but potentially noisier results.7.5
request_body.tex_slat_sampling_stepsinteger否Number of denoising steps for texture generation. More steps = slower but potentially cleaner textures.12
request_body.shape_slat_sampling_stepsinteger否Number of denoising steps for shape refinement. More steps = slower but potentially smoother geometry.12
request_body.tex_slat_guidance_rescalenumber否Dampens artifacts from high guidance in the texture stage. Increase if textures look noisy or have color banding.0
request_body.tex_slat_guidance_strengthnumber否How closely the texture follows the input image colors. Higher values produce more vivid but potentially oversaturated textures.1
request_body.shape_slat_guidance_rescalenumber否Dampens artifacts from high guidance in the shape stage. Increase if you see noisy geometry.0.5
request_body.shape_slat_guidance_strengthnumber否How closely the detailed geometry follows the input image. Higher values add more detail but may introduce noise.7.5

调用示例

提交任务并查询完成结果

POST/agent-api/v1/tool/executeX-Api-Key

先提交任务,再用返回的 task_id 查询,直至完成。

请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_trellis_2' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "decimation_target": 120000,
      "image_url": "https://agentearth.ai/fileserver/file/e526a548-99f9-4088-a924-85d9fea088ce.jpg",
      "remesh": true,
      "resolution": 1024,
      "texture_size": 2048
    }
  }
}'
返回示例response.json
JSON
{
  "description": "task accepted; poll the result via query_tool with this task_id",
  "query_tool": "ae_get_result",
  "status": "created",
  "task_id": "bfc1a9e0-6721-4930-aab7-bddbbe56484a"
}

使用该工具的指南

看看真实工作流里怎么用这个工具