input_task_id 또는 model_url 중 하나만 필수입니다. 둘 다 제공된 경우 input_task_id가 우선합니다.
Name
input_task_id
Type
string
필수
Description
리텍스처하려는, 완료된 이미지로 3D 또는 텍스트로 3D 작업의 ID입니다.
이 작업은 다음 작업 중 하나여야 합니다: 텍스트로 3D 미리보기, 텍스트로 3D 정제, 이미지로 3D 또는 리메시. 또한 상태가 SUCCEEDED여야 합니다.
Name
model_url
Type
string
필수
Description
Meshy가 텍스처를 적용할 3D 모델을 제공하세요. 지원 형식: .glb, .gltf, .obj, .fbx, .stl.
모델을 제공하는 방법은 두 가지입니다:
공개적으로 접근 가능한 URL: 공용 인터넷에서 접근 가능한 URL입니다.
Data URI: 모델을 base64로 인코딩한 data URI입니다. MIME type application/octet-stream을 사용하세요. 예시: data:application/octet-stream;base64,<your base64-encoded model data>.
text_style_prompt, image_style_url, multiview_image_urls 중 정확히 하나의 스타일 입력이 필수입니다. multiview_image_urls는 다른 두 항목과 함께 사용할 수 없으며, text_style_prompt와 image_style_url이 모두 제공된 경우 image_style_url이 우선합니다.
Name
text_style_prompt
Type
string
필수
Description
텍스트를 사용해 원하는 객체의 텍스처 스타일을 설명하세요. 최대 800자입니다.
Name
image_style_url
Type
string
필수
Description
텍스처링 과정을 안내할 2D 이미지를 제공하세요. 현재 .jpg, .jpeg, .png 형식을 지원합니다.
이미지를 제공하는 방법은 두 가지입니다:
공개적으로 접근 가능한 URL: 공용 인터넷에서 접근 가능한 URL
Data URI: 이미지를 base64로 인코딩한 data URI입니다. data URI 예시: data:image/jpeg;base64,<your base64-encoded image data>
원본 에셋과 업로드한 이미지 간에 지오메트리 차이가 크면 이미지 텍스처링이 최적으로 작동하지 않을 수 있습니다.
Name
multiview_image_urls
Type
string[]
필수
Description
텍스처링을 안내하기 위해 동일한 객체를 서로 다른 시점에서 촬영한 이미지를 1~4장 제공하세요. 첫 번째 이미지는 주(정면) 뷰이며, 나머지 뷰(왼쪽, 뒤, 오른쪽)의 순서는 상관없습니다.
각 요소는 image_style_url과 동일한 형식(공개적으로 접근 가능한 URL 또는 base64 data URI, .jpg/.jpeg/.png)을 허용합니다.
명시적으로 ai_model: "meshy-7"이 필요합니다.
Name
ai_model
Type
string
기본값 latest
Description
리텍스처링에 사용할 AI 모델의 ID입니다. 사용 가능한 값: meshy-5, meshy-6, meshy-7, latest(Meshy 7).
Name
enable_original_uv
Type
boolean
기본값 false
Description
새로운 UV 레이아웃을 생성하는 대신 모델의 기존 UV 레이아웃을 유지합니다.
input_task_id를 통해서든, Meshy 출력물을 가리키는 model_url을 통해서든 Meshy가 생성한 모델을 리텍스처링하는 경우, 최적화된 UV 레이아웃을 재사용하려면 이 값을 true로 설정하세요.
업로드한 서드파티 모델을 리텍스처링하는 경우, 이미 좋은 UV가 있어 유지하고 싶다면 true로 설정하고, Meshy가 새로운 UV를 언랩하도록 하려면 false로 두세요(적절한 UV 매핑이 없는 모델에 가장 적합함).
Name
enable_pbr
Type
boolean
기본값 false
Description
기본 색상 외에 PBR 맵(메탈릭, 러프니스, 노멀)을 생성합니다. ai_model이 meshy-6인 경우 이미션 맵도 포함되지만, texture_resolution: 8k에서는 제외됩니다. meshy-7과 latest는 이미션 맵을 생성하지 않습니다.
Name
texture_resolution
Type
string
기본값 2k
Description
기본 색상 텍스처 해상도입니다. 2k(2048×2048), 4k(4096×4096), 8k(8192×8192) 중 하나입니다. 해상도가 높을수록 표면 디테일을 더 많이 담아냅니다.
{"id":"018a210d-8ba4-705c-b111-1f1776f7f578","type":"retexture","model_urls": {"glb":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.glb?Expires=***","fbx":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.fbx?Expires=***","obj":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.obj?Expires=***","usdz":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***","mtl":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.mtl?Expires=***","stl":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***" },"thumbnail_url":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***","text_style_prompt":"red fangs, Samurai outfit that fused with japanese batik style","texture_image_url":"","progress":100,"started_at":1692771667037,"created_at":1692771650657,"expires_at":1692771679037,"finished_at":1692771669037,"status":"SUCCEEDED","texture_urls": [ {"base_color":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0.png?Expires=***","metallic":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_metallic.png?Expires=XXX","normal":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_normal.png?Expires=XXX","roughness":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_roughness.png?Expires=XXX","emission":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_emission.png?Expires=XXX" } ],"task_error": {"message":"" },"consumed_credits":10}
[ {"id":"018a210d-8ba4-705c-b111-1f1776f7f578","type":"retexture","model_urls": {"glb":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.glb?Expires=***","fbx":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.fbx?Expires=***","usdz":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***" },"thumbnail_url":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***","text_style_prompt":"red fangs, Samurai outfit that fused with japanese batik style","progress":100,"started_at":1692771667037,"created_at":1692771650657,"expires_at":1692771679037,"finished_at":1692771669037,"status":"SUCCEEDED","texture_urls": [ {"base_color":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0.png?Expires=***","metallic":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_metallic.png?Expires=XXX","normal":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_normal.png?Expires=XXX","roughness":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_roughness.png?Expires=XXX","emission":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_emission.png?Expires=XXX" } ],"preceding_tasks":0,"task_error": {"message":"" },"consumed_credits":10 }]
리텍스처 작업 객체는 Meshy가 텍스트 또는 이미지 입력을 통해 3D 텍스처를 생성하는 작업 단위입니다.
모델은 다음과 같은 속성을 가지고 있습니다:
속성
Name
id
Type
string
Description
작업의 고유 식별자입니다. 작업 ID에 대해 k-sortable UUID를 구현 세부사항으로 사용하지만, ID의 형식에 대해 어떠한 가정도 하지 않아야 합니다.
Name
type
Type
string
Description
리텍스처 작업의 유형입니다. 값은 retexture입니다.
Name
model_urls
Type
object
Description
Meshy에 의해 생성된 텍스처가 적용된 3D 모델 파일의 다운로드 가능한 URL입니다.
Name
glb
Type
string
Description
GLB 파일의 다운로드 가능한 URL입니다.
Name
fbx
Type
string
Description
FBX 파일의 다운로드 가능한 URL입니다.
Name
obj
Type
string
Description
OBJ 파일의 다운로드 가능한 URL입니다.
Name
usdz
Type
string
Description
USDZ 파일의 다운로드 가능한 URL입니다.
Name
mtl
Type
string
Description
텍스처가 있을 때 OBJ 내보내기와 함께 반환되는 MTL 파일의 다운로드 가능한 URL입니다.
Name
stl
Type
string
Description
STL 파일의 다운로드 가능한 URL입니다.
Name
3mf
Type
string
Description
3MF 파일의 다운로드 가능한 URL입니다. target_formats를 통해 3mf가 요청되었을 때만 존재합니다.
Name
text_style_prompt
Type
string
Description
텍스처링 작업을 생성하는 데 사용된 텍스트 prompt입니다.
Name
image_style_url
Type
string
Description
텍스처링 작업을 생성하는 데 사용된 이미지 입력입니다.
Name
multiview_image_urls
Type
string[]
Description
텍스처링 작업을 생성하는 데 사용된 멀티뷰 참조 이미지의 다운로드 가능한 URL입니다. 작업이 multiview_image_urls로 생성된 경우에만 존재합니다.
Name
thumbnail_url
Type
string
Description
모델 파일의 썸네일 이미지의 다운로드 가능한 URL입니다.
Name
alpha_thumbnail_url
Type
string
Description
thumbnail_url의 투명 배경(RGBA) 버전의 다운로드 가능한 URL입니다. 작업이 alpha_thumbnail: true로 생성되고 투명 미리보기가 성공적으로 렌더링된 경우에만 존재하며, 그렇지 않으면 이 필드는 생략됩니다.
Name
progress
Type
integer
Description
작업의 진행 상황입니다. 작업이 아직 시작되지 않은 경우 이 속성은 0이 됩니다. 작업이 성공하면 이 값은 100이 됩니다.
Name
started_at
Type
timestamp
Description
작업이 시작된 시점의 타임스탬프입니다(밀리초 단위). 작업이 아직 시작되지 않은 경우 이 속성은 0이 됩니다.
타임스탬프는 1970년 1월 1일 UTC 이후 경과된 밀리초 수를 나타내며, RFC 3339 표준을 따릅니다.
예를 들어, 2023년 9월 1일 금요일 오후 12:00:00 GMT는 1693569600000으로 표시됩니다. 이는 Meshy API의 모든 타임스탬프에 적용됩니다.
Name
created_at
Type
timestamp
Description
작업이 생성된 시점의 타임스탬프입니다(밀리초 단위).
Name
expires_at
Type
timestamp
Description
작업 결과가 만료되는 시점의 타임스탬프입니다(밀리초 단위).
Name
finished_at
Type
timestamp
Description
작업이 완료된 시점의 타임스탬프입니다(밀리초 단위). 작업이 아직 완료되지 않은 경우 이 속성은 0이 됩니다.
Name
status
Type
string
Description
작업의 상태입니다. 가능한 값은 PENDING, IN_PROGRESS, SUCCEEDED, FAILED, CANCELED 중 하나입니다.
Name
texture_urls
Type
array
Description
작업에서 생성된 텍스처 URL 객체의 배열입니다. 일반적으로 이 배열에는 하나의 텍스처 URL 객체만 포함됩니다. 각 텍스처 URL에는 다음과 같은 속성이 있습니다:
Name
base_color
Type
string
Description
기본 색상 맵 이미지의 다운로드 가능한 URL입니다.
Name
metallic
Type
string
Description
금속성 맵 이미지의 다운로드 가능한 URL입니다.
작업이 enable_pbr: false로 생성된 경우 이 속성은 생략됩니다.
Name
normal
Type
string
Description
노멀 맵 이미지의 다운로드 가능한 URL입니다.
작업이 enable_pbr: false로 생성된 경우 이 속성은 생략됩니다.
Name
roughness
Type
string
Description
거칠기 맵 이미지의 다운로드 가능한 URL입니다.
작업이 enable_pbr: false로 생성된 경우 이 속성은 생략됩니다.
Name
emission
Type
string
Description
방출 맵 이미지의 다운로드 가능한 URL입니다.
작업이 enable_pbr: false로 생성되었거나 ai_model이 meshy-5인 경우 이 속성은 생략됩니다.
Name
preceding_tasks
Type
integer
Description
이전 작업의 수입니다.
이 속성은 작업 상태가 PENDING일 때만 존재합니다.
Name
task_error
Type
object
Description
실패한 작업에 대한 오류 세부 정보입니다. 전체 task_error 객체 참조는 오류를 참조하세요.
Name
consumed_credits
Type
integer
Description
이 작업에 소모된 크레딧의 수입니다. 작업 상태가 PENDING, IN_PROGRESS, 또는 SUCCEEDED일 때 존재합니다. FAILED 작업의 경우 0을 반환합니다 (실패 시 크레딧은 환불됩니다).
Example Retexture Task Model
{"id":"018a210d-8ba4-705c-b111-1f1776f7f578","type":"retexture","model_urls": {"glb":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.glb?Expires=***","fbx":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.fbx?Expires=***","usdz":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***" },"text_style_prompt":"red fangs, Samurai outfit that fused with japanese batik style","image_style_url":"https://assets.meshy.ai/***/image/example_image.jpg?Expires=***","thumbnail_url":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***","progress":100,"started_at":1692771667037,"created_at":1692771650657,"expires_at":1692771679037,"finished_at":1692771669037,"status":"SUCCEEDED","texture_urls": [ {"base_color":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0.png?Expires=***","metallic":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_metallic.png?Expires=XXX","normal":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_normal.png?Expires=XXX","roughness":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_roughness.png?Expires=XXX","emission":"https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_emission.png?Expires=XXX" } ],"preceding_tasks":0,"task_error": {"message":"" },"consumed_credits":10}