# Tripo3D H3.1 Image to 3D > ادغام مدل هوش مصنوعی tripo3d-h31-image-to-3d از طریق API با کارایی بالا و تعرفه مصرف منعطف. ## نمای کلی - **نقطه پایانی**: `POST https://api.muapi.ai/api/v1/tripo3d-h31-image-to-3d` - **مدل‌ها ID**: `tripo3d-h31-image-to-3d` - **دسته‌بندی**: image to 3d - **نسخه مدل**: Tripo3D H3.1 Image to 3D - **خانواده مدل**: tripo3d - **هزینه**: 0.3 credits(مدل‌ها) ## API MuApi ****:, `request_id`,, `status` `completed`。 `?webhook=YOUR_URL`, POST ()。 ****: `x-api-key` MuApi 。 https://muapi.ai/access-keys 。 ### 1. ```http POST https://api.muapi.ai/api/v1/tripo3d-h31-image-to-3d Content-Type: application/json x-api-key: YOUR_API_KEY ``` **():** ```json { "image_url": "https://example.com/your-image_url" } ``` **(همه):** ```json { "image_url": "https://example.com/your-image_url", "texture": true, "texture_quality": "standard", "geometry_quality": "standard", "pbr": false, "quad": false, "auto_size": false, "face_limit": "" } ``` **:** ```json { "request_id": "abc123", "status": "processing" } ``` ### 2. نتیجه ```http GET https://api.muapi.ai/api/v1/predictions/{request_id}/result x-api-key: YOUR_API_KEY ``` `status` :`queued`、`pending`、`processing`、`completed`、`failed`、`cancelled`。 2–5 ,。 `completed` ,نتیجه URL `outputs` 。 **`completed` :** ```json { "id": "abc123", "status": "completed", "outputs": [ "https://cdn.muapi.ai/.../output.png" ], "urls": { "get": "https://api.muapi.ai/api/v1/predictions/abc123/result" }, "created_at": "2026-05-08T12:34:56Z", "has_nsfw_contents": [] } ``` ### CURL ```bash 1. REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/tripo3d-h31-image-to-3d \ -H "x-api-key: $MUAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"image_url":"https://example.com/your-image_url"}' | jq -r .request_id) 2. while :; do RESP=$(curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY") STATUS=$(echo "$RESP" | jq -r .status) [ "$STATUS" = "completed" ] && echo "$RESP" | jq .outputs && break [ "$STATUS" = "failed" ] && echo "$RESP" && exit 1 sleep 3 done ``` ### پایتون ```python import os, time, requests API = "https://api.muapi.ai/api/v1" headers = {"x-api-key": os.environ["MUAPI_API_KEY"]} r = requests.post(f"{API}/tripo3d-h31-image-to-3d", headers=headers, json={"image_url":"https://example.com/your-image_url"}) request_id = r.json()["request_id"] while True: res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json() if res["status"] == "completed": print(res["outputs"]); break if res["status"] == "failed": raise RuntimeError(res.get("error")); time.sleep(3) ``` ## طرح ورودی (Input Schema) API : - **`image_url`** (`string`, __): تنظیم پارامتر Reference image used to generate the 3D model. جهت هدایت دقیق فرآیند تولید مدل. - **`texture`** (`boolean`, __): تنظیمات کیفیت و نحوه تولید بافت سطوح سه‌بعدی. - پیش‌فرض: `true` - **`texture_quality`** (`string`, __): تنظیمات کیفیت و نحوه تولید بافت سطوح سه‌بعدی. - پیش‌فرض: `"standard"` - گزینه‌ها: `"standard"`, `"detailed"` - **`geometry_quality`** (`string`, __): تنظیم پارامتر Detailed geometry adds finer surface detail (+$0.20). جهت هدایت دقیق فرآیند تولید مدل. - پیش‌فرض: `"standard"` - گزینه‌ها: `"standard"`, `"detailed"` - **`pbr`** (`boolean`, __): تنظیم پارامتر Enable physically based rendering materials. جهت هدایت دقیق فرآیند تولید مدل. - پیش‌فرض: `false` - **`quad`** (`boolean`, __): تعداد چندضلعی‌ها و ساختار مش هندسی مدل سه‌بعدی. - پیش‌فرض: `false` - **`auto_size`** (`boolean`, __): تنظیم پارامتر Automatically scale the model. جهت هدایت دقیق فرآیند تولید مدل. - پیش‌فرض: `false` - **`face_limit`** (`int`, __): تعداد چندضلعی‌ها و ساختار مش هندسی مدل سه‌بعدی. ## طرح خروجی (Output Schema) : - **`id`** (`string`): ID。 - **`status`** (`string`): :`queued`、`pending`、`processing`、`completed`、`failed`、`cancelled`。 - **`outputs`** (`array`): تصویر、ویدیوصدا URL。`status` `completed` 。 - **`urls.get`** (`string`): نتیجه。 - **`error`** (`string` | `null`): `status` `failed` 。 - **`created_at`** (`string`): ISO-8601 。 - **`has_nsfw_contents`** (`array of boolean`): NSFW 。 ## Webhook() URL `?webhook=https://your-server/path`。,MuApi POST URL,。 ## Agent MuApi MCP CLI, Agent(Claude Code、Cursor Agent) HTTP : ```bash # CLI npm install -g muapi-cli # muapi auth login # MuApi مدل‌ها MCP Agent muapi mcp serve ``` MCP مدل‌ها, `tripo3d-h31-image-to-3d`。 `muapi --help` (`muapi image generate`、`muapi video from-image` )。 ## مدل‌ها - [Tripo3D P1 Text to 3D](https://muapi.ai/fa/playground/tripo3d-p1-text-to-3d) - [Tripo3D P1 Image to 3D](https://muapi.ai/fa/playground/tripo3d-p1-image-to-3d) - [Tripo3D H3.1 Text to 3D](https://muapi.ai/fa/playground/tripo3d-h31-text-to-3d) - [Tripo3D H3.1 Image to 3D](https://muapi.ai/fa/playground/tripo3d-h31-image-to-3d) - [Tripo3D H3.1 Multiview to 3D](https://muapi.ai/fa/playground/tripo3d-h31-multiview-to-3d) ## منابع و مستندات - [زمین بازی](https://muapi.ai/fa/playground/tripo3d-h31-image-to-3d) - [API ](https://muapi.ai/fa/playground/tripo3d-h31-image-to-3d/api) - [ llms.txt](https://muapi.ai/fa/llms.txt)