@@ -14,6 +14,7 @@ class InputShouldRemesh(TypedDict):
1414class InputShouldTexture (TypedDict ):
1515 should_texture : str
1616 enable_pbr : bool
17+ texture_resolution : str
1718 texture_prompt : str
1819 texture_image : Input .Image | None
1920
@@ -25,7 +26,7 @@ class MeshyTaskResponse(BaseModel):
2526class MeshyTextToModelRequest (BaseModel ):
2627 mode : str = Field ("preview" )
2728 prompt : str = Field (..., max_length = 600 )
28- art_style : str = Field (..., description = "'realistic' or 'sculpture'" )
29+ art_style : str = Field (...)
2930 ai_model : str = Field (...)
3031 topology : str | None = Field (..., description = "'quad' or 'triangle'" )
3132 target_polycount : int | None = Field (..., ge = 100 , le = 300000 )
@@ -35,6 +36,7 @@ class MeshyTextToModelRequest(BaseModel):
3536 )
3637 symmetry_mode : str = Field (..., description = "'auto', 'off' or 'on'" )
3738 pose_mode : str = Field (...)
39+ ultra_mode : bool = Field (False )
3840 seed : int = Field (...)
3941 moderation : bool = Field (False )
4042
@@ -43,6 +45,7 @@ class MeshyRefineTask(BaseModel):
4345 mode : str = Field ("refine" )
4446 preview_task_id : str = Field (...)
4547 enable_pbr : bool | None = Field (...)
48+ texture_resolution : str = Field (...)
4649 texture_prompt : str | None = Field (...)
4750 texture_image_url : str | None = Field (...)
4851 ai_model : str = Field (...)
@@ -61,7 +64,9 @@ class MeshyImageToModelRequest(BaseModel):
6164 )
6265 should_texture : bool = Field (...)
6366 enable_pbr : bool | None = Field (...)
67+ texture_resolution : str | None = Field (None )
6468 pose_mode : str = Field (...)
69+ ultra_mode : bool = Field (False )
6570 texture_prompt : str | None = Field (None , max_length = 600 )
6671 texture_image_url : str | None = Field (None )
6772 seed : int = Field (...)
@@ -80,6 +85,7 @@ class MeshyMultiImageToModelRequest(BaseModel):
8085 )
8186 should_texture : bool = Field (...)
8287 enable_pbr : bool | None = Field (...)
88+ texture_resolution : str | None = Field (None )
8389 pose_mode : str = Field (...)
8490 texture_prompt : str | None = Field (None , max_length = 600 )
8591 texture_image_url : str | None = Field (None )
@@ -103,8 +109,10 @@ class MeshyTextureRequest(BaseModel):
103109 ai_model : str = Field (...)
104110 enable_original_uv : bool = Field (...)
105111 enable_pbr : bool = Field (...)
106- text_style_prompt : str | None = Field (...)
107- image_style_url : str | None = Field (...)
112+ texture_resolution : str = Field (...)
113+ text_style_prompt : str | None = Field (None )
114+ image_style_url : str | None = Field (None )
115+ multiview_image_urls : list [str ] | None = Field (None )
108116
109117
110118class MeshyModelsUrls (BaseModel ):
0 commit comments