MCPcopy Create free account
hub / github.com/VAST-AI-Research/tripo-python-sdk / create_task

Method create_task

tripo3d/client.py:200–215  ·  view source on GitHub ↗

Create a task. Args: task_data: The task data. Returns: The task ID. Raises: TripoRequestError: If the request fails. TripoAPIError: If the API returns an error.

(self, task_data: Dict[str, Any])

Source from the content-addressed store, hash-verified

198
199
200 async def create_task(self, task_data: Dict[str, Any]) -> str:
201 """
202 Create a task.
203
204 Args:
205 task_data: The task data.
206
207 Returns:
208 The task ID.
209
210 Raises:
211 TripoRequestError: If the request fails.
212 TripoAPIError: If the API returns an error.
213 """
214 response = await self._impl._request("POST", "/task", json_data=task_data)
215 return response["data"]["task_id"]
216
217 async def get_balance(self) -> Balance:
218 """

Callers 15

text_to_modelMethod · 0.95
image_to_modelMethod · 0.95
multiview_to_modelMethod · 0.95
text_to_imageMethod · 0.95
generate_imageMethod · 0.95
edit_multiview_imageMethod · 0.95
import_modelMethod · 0.95
convert_modelMethod · 0.95
stylize_modelMethod · 0.95
texture_modelMethod · 0.95
refine_modelMethod · 0.95

Calls 1

_requestMethod · 0.45

Tested by

no test coverage detected