Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions comfy_api_nodes/apis/meshy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class InputShouldRemesh(TypedDict):
class InputShouldTexture(TypedDict):
should_texture: str
enable_pbr: bool
texture_resolution: str
texture_prompt: str
texture_image: Input.Image | None

Expand All @@ -25,7 +26,7 @@ class MeshyTaskResponse(BaseModel):
class MeshyTextToModelRequest(BaseModel):
mode: str = Field("preview")
prompt: str = Field(..., max_length=600)
art_style: str = Field(..., description="'realistic' or 'sculpture'")
art_style: str = Field(...)
ai_model: str = Field(...)
topology: str | None = Field(..., description="'quad' or 'triangle'")
target_polycount: int | None = Field(..., ge=100, le=300000)
Expand All @@ -35,6 +36,7 @@ class MeshyTextToModelRequest(BaseModel):
)
symmetry_mode: str = Field(..., description="'auto', 'off' or 'on'")
pose_mode: str = Field(...)
ultra_mode: bool = Field(False)
seed: int = Field(...)
moderation: bool = Field(False)

Expand All @@ -43,6 +45,7 @@ class MeshyRefineTask(BaseModel):
mode: str = Field("refine")
preview_task_id: str = Field(...)
enable_pbr: bool | None = Field(...)
texture_resolution: str = Field(...)
texture_prompt: str | None = Field(...)
texture_image_url: str | None = Field(...)
ai_model: str = Field(...)
Expand All @@ -61,7 +64,9 @@ class MeshyImageToModelRequest(BaseModel):
)
should_texture: bool = Field(...)
enable_pbr: bool | None = Field(...)
texture_resolution: str | None = Field(None)
pose_mode: str = Field(...)
ultra_mode: bool = Field(False)
texture_prompt: str | None = Field(None, max_length=600)
texture_image_url: str | None = Field(None)
seed: int = Field(...)
Expand All @@ -80,6 +85,7 @@ class MeshyMultiImageToModelRequest(BaseModel):
)
should_texture: bool = Field(...)
enable_pbr: bool | None = Field(...)
texture_resolution: str | None = Field(None)
pose_mode: str = Field(...)
texture_prompt: str | None = Field(None, max_length=600)
texture_image_url: str | None = Field(None)
Expand All @@ -103,8 +109,10 @@ class MeshyTextureRequest(BaseModel):
ai_model: str = Field(...)
enable_original_uv: bool = Field(...)
enable_pbr: bool = Field(...)
text_style_prompt: str | None = Field(...)
image_style_url: str | None = Field(...)
texture_resolution: str = Field(...)
text_style_prompt: str | None = Field(None)
image_style_url: str | None = Field(None)
multiview_image_urls: list[str] | None = Field(None)


class MeshyModelsUrls(BaseModel):
Expand Down
26 changes: 26 additions & 0 deletions comfy_api_nodes/apis/wan.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,32 @@ class Wan27Text2VideoTaskCreationRequest(BaseModel):
parameters: Wan27Text2VideoParametersField = Field(...)


class Wan3MediaItem(BaseModel):
type: str = Field(...)
url: str = Field(...)


class Wan3InputField(BaseModel):
prompt: str | None = Field(None)
media: list[Wan3MediaItem] | None = Field(None)


class Wan3ParametersField(BaseModel):
resolution: str = Field(...)
ratio: str = Field(...)
duration: int = Field(..., ge=-1, le=30)
seed: int = Field(..., ge=0, le=2147483647)
audio: bool = Field(True)
prompt_extend: bool = Field(True)
watermark: bool = Field(False)


class Wan3TaskCreationRequest(BaseModel):
model: str = Field(...)
input: Wan3InputField = Field(...)
parameters: Wan3ParametersField = Field(...)


class TaskCreationOutputField(BaseModel):
task_id: str = Field(...)
task_status: str = Field(...)
Expand Down
Loading
Loading