image_urlstringRequiredP1 reference workflow: JPEG, PNG or WebP reference up to 10 MB; frame one complete object.
- Default
- Not specified
- Constraints
- minLength:1contentMediaType:["image/jpeg","image/png","image/webp","image/gif"]
tripo/p1/image-to-3dTripo P1, also called Smart Mesh P1.0, is Tripo AI’s image-to-3D model for clean, low-polygon objects. It builds a mesh directly from a picture, with a target range of 50–20,000 faces. The emphasis is a manageable shape for games, mobile scenes and user-created props, with optional textures packed into a GLB.
Examples use the selected endpoint’s public parameter definitions. Replace the API key and example media, then send the request from your server.
SDKs & integrationshttps://api.spicyapi.ai/api/v1/jobs/createTaskKeep the API key in the server environment variable SPICY_API_KEY. Use Bearer authentication and Content-Type: application/json for JSON requests.
Authorization: Bearer $SPICY_API_KEY# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "tripo/p1/image-to-3d",
"input": {
"generate_pbr": true,
"generate_texture": true,
"image_url": "https://example.com/reference.png",
"model_orientation": "default",
"texture_alignment": "original_image",
"texture_quality": "standard"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"Generated from this model’s input schema — the same one the API validates every request against.
Place these fields inside the request body’s input object. Names and types match the API. Do not assume a default when none is specified.
image_urlstringRequiredP1 reference workflow: JPEG, PNG or WebP reference up to 10 MB; frame one complete object.
texture_seedintegerOptionalP1 reference workflow: Texture-stage seed for controlled surface comparisons, without an identical-output guarantee.
seedintegerOptionalP1 reference workflow: Geometry seed for comparisons where you change one setting at a time; exact repetition is not assured.
uv_unwrapbooleanOptionalP1 reference workflow: On by default; disabling UV export reduces processing and size but removes coordinates needed for later texturing.
auto_sizebooleanOptionalP1 reference workflow: Off by default; estimates real-world scale and requires textured output.
texture_alignmentstringOptionalP1 reference workflow: original_image follows the input picture; geometry aligns the texture with the reconstructed shape.
"original_image""geometry"model_orientationstringOptionalP1 reference workflow: Choose default for the usual pose or align_image to follow the reference orientation.
"default""align_image"image_autofixbooleanOptionalP1 reference workflow: Off by default; cleans a blurry or low-resolution image before modelling, adding processing time.
face_limitintegerOptionalP1 reference workflow: Target 50–20,000 faces; omit the value to let the model choose.
remove_lightingbooleanOptionalP1 reference workflow: On by default, but only effective with v3.5; removes lighting baked into the reference texture.
texture_versionstringOptionalP1 reference workflow: Choose v3.0-20250812 (default) or v3.5-20260815; fast and lighting removal use v3.5.
"v3.0-20250812""v3.5-20260815"texture_qualitystringOptionalAffects priceP1 reference workflow: standard is the default; detailed and extreme (8K) add quality charges; fast uses v3.5 at the standard rate; no quality charge without textures.
"standard""detailed""extreme""fast"generate_pbrbooleanOptionalAffects priceP1 reference workflow: On by default; PBR materials enable texturing even when generate_texture is off.
generate_texturebooleanOptionalAffects priceP1 reference workflow: On by default; adds colour textures, and a plain mesh requires generate_pbr to be off as well.
{
"additionalProperties": false,
"properties": {
"auto_size": {
"default": false,
"description": "Scale the mesh to estimated real-world dimensions. Off by default.",
"type": "boolean",
"x-ui": {
"advanced": true,
"affects_price": false,
"order": 30,
"widget": "switch"
}
},
"face_limit": {
"description": "Target face count, 50 to 20,000. Leave empty to let the model decide. Does not change the price.",
"maximum": 20000,
"minimum": 50,
"type": "integer",
"x-ui": {
"affects_price": false,
"order": 65,
"step": 50,
"widget": "slider"
}
},
"generate_pbr": {
"default": true,
"description": "Add PBR material maps (metal-roughness and normal). On by default and switches texturing on.",
"type": "boolean",
"x-ui": {
"affects_price": true,
"order": 85,
"widget": "switch"
}
},
"generate_texture": {
"default": true,
"description": "Paint a texture onto the mesh. On by default; turning it off only removes texturing if generate_pbr is off too.",
"type": "boolean",
"x-ui": {
"affects_price": true,
"order": 90,
"widget": "switch"
}
},
"image_autofix": {
"default": false,
"description": "Clean up a blurry, noisy or low-resolution picture before generation. Slower. Off by default; does not change the price.",
"type": "boolean",
"x-ui": {
"advanced": true,
"affects_price": false,
"order": 45,
"widget": "switch"
}
},
"image_url": {
"contentMediaType": [
"image/jpeg",
"image/png",
"image/webp",
"image/gif"
],
"description": "The picture to turn into a 3D model: one object or character, fully in frame. JPEG, PNG or WebP up to 10 MB.",
"minLength": 1,
"type": "string",
"x-ui": {
"accept": [
"image/jpeg",
"image/png",
"image/webp"
],
"max_size_mb": 10,
"order": 100,
"primary": true,
"widget": "upload"
}
},
"model_orientation": {
"default": "default",
"description": "default keeps the standard orientation; align_image rotates the model to match the picture.",
"enum": [
"default",
"align_image"
],
"type": "string",
"x-ui": {
"affects_price": false,
"enum_labels": {
"align_image": "Match picture",
"default": "Default"
},
"order": 40,
"widget": "radio"
}
},
"remove_lighting": {
"default": true,
"description": "Remove the lighting and shadows baked into the picture before texturing, so the texture reacts cleanly to scene lights. On by default; only takes effect with the v3.5 texture model. Does not change the price.",
"type": "boolean",
"x-ui": {
"affects_price": false,
"order": 77,
"widget": "switch"
}
},
"seed": {
"description": "Seed for the geometry step, for reproducible shapes.",
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"x-ui": {
"advanced": true,
"order": 20,
"widget": "number"
}
},
"texture_alignment": {
"default": "original_image",
"description": "Align the texture to the original picture (the default) or to the generated geometry.",
"enum": [
"original_image",
"geometry"
],
"type": "string",
"x-ui": {
"affects_price": false,
"enum_labels": {
"geometry": "Geometry",
"original_image": "Picture"
},
"order": 35,
"widget": "radio"
}
},
"texture_quality": {
"default": "standard",
"description": "Texture quality: standard (the default), detailed (higher resolution), extreme (8K) or fast (standard size, generated quicker with the v3.5 texture model). detailed and extreme cost more and only apply to textured meshes.",
"enum": [
"standard",
"detailed",
"extreme",
"fast"
],
"type": "string",
"x-ui": {
"affects_price": true,
"enum_labels": {
"detailed": "Detailed",
"extreme": "8K",
"fast": "Fast",
"standard": "Standard"
},
"order": 80,
"widget": "radio"
}
},
"texture_seed": {
"description": "Seed for the texture step. Keep seed fixed and change this to try new textures on the same shape.",
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"x-ui": {
"advanced": true,
"order": 10,
"widget": "number"
}
},
"texture_version": {
"default": "v3.0-20250812",
"description": "Texture model version: v3.0-20250812 (the default) or the newer v3.5-20260815. texture_quality fast and remove_lighting use v3.5. Does not change the price.",
"enum": [
"v3.0-20250812",
"v3.5-20260815"
],
"type": "string",
"x-ui": {
"affects_price": false,
"enum_labels": {
"v3.0-20250812": "v3.0",
"v3.5-20260815": "v3.5"
},
"order": 78,
"widget": "radio"
}
},
"uv_unwrap": {
"default": true,
"description": "Unwrap UV coordinates during generation. On by default; turning it off is faster and gives a smaller file, but the mesh then has no UVs for texturing later. Does not change the price.",
"type": "boolean",
"x-ui": {
"advanced": true,
"affects_price": false,
"order": 25,
"widget": "switch"
}
}
},
"required": [
"image_url"
],
"type": "object",
"x-pricing": {
"billingMode": "formula",
"variantFields": []
}
}HTTP 202 means the task was accepted, not completed. Save the returned taskId and query that task. Do not create another task while waiting for its result.
HTTP/1.1 202 Accepted
Location: /api/v1/jobs/recordInfo?taskId=job_01k3m8x9q2z4v7n5p6r8s0t1w3
{
"code": 200,
"msg": "success",
"request_id": "req_example_create",
"data": {
"taskId": "job_01k3m8x9q2z4v7n5p6r8s0t1w3",
"state": "queued",
"estimatedCost": "0.750000"
}
}The accepted response includes the estimate so your app can show the same amount in task history and billing.
curl --get "https://api.spicyapi.ai/api/v1/jobs/recordInfo" \
--data-urlencode "taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"Start polling at about 2 seconds and gradually increase the interval. Stop at a terminal state. After a connection failure, query the original taskId. Retry creation only with the original idempotency key and body.
import { verifyWebhook } from "@spicyapi/sdk";
// express.raw keeps the bytes we signed; express.json never matches.
app.post("/hooks/spicy", express.raw({ type: "application/json" }), (req, res) => {
const { payload } = verifyWebhook({
rawBody: req.body,
timestamp: req.header("X-Webhook-Timestamp"),
signature: req.header("X-Webhook-Signature"),
payloadVersion: Number(req.header("X-Webhook-Payload-Version")),
secret: process.env.SPICY_WEBHOOK_SECRET,
});
res.status(200).end();
void handleFinishedTask(payload);
});Pass callBackUrl when you create the task and the finished record is POSTed to you — no polling loop at all. Every delivery carries X-Webhook-Timestamp, X-Webhook-Signature and X-Webhook-Payload-Version. The signature is a base64 HMAC-SHA256 over taskId.timestamp.sha256(body), so it must be checked against the raw bytes: parsing the JSON and re-serialising it changes them and the check will fail. Failed deliveries are retried, so the same taskId can arrive twice — make the handler idempotent. Answer 2xx first and do the work afterwards; a slow handler is treated as a failed delivery.
Consume output only when state is succeeded. On failure, use errorCode, errorMessage and request_id to investigate. Example costs and states do not represent an actual bill.
{
"code": 200,
"msg": "success",
"request_id": "req_example_record",
"data": {
"taskId": "job_01k3m8x9q2z4v7n5p6r8s0t1w3",
"model": "tripo/p1/image-to-3d",
"state": "succeeded",
"output": {
"assets": [
{
"key": "tasks/2026/08/28/job_01k3m8x9q2z4v7n5p6r8s0t1w3/3f7a1c9e5b2d48f0a6c1e3d5b7f9a1c3.png",
"mime": "image/png",
"url": "https://example.r2.cloudflarestorage.com/results/job_01k3m8x9q2z4v7n5p6r8s0t1w3/result.png?X-Amz-Signature=SIGNATURE_FROM_RESPONSE",
"expiresAt": "2026-08-28T12:20:08.000Z"
}
]
},
"cost": "0.750000",
"settled": true,
"createdAt": "2026-08-28T12:00:00Z",
"completedAt": "2026-08-28T12:00:30Z"
}
}For each available asset, open or download assets[].url directly without an API Authorization header. The signed URL expires at expiresAt; poll the task again to refresh it while the asset remains within its retention period. A pending or unavailable asset has no URL. Treat signed URLs as private.
Use SpicyAPI in your app, terminal, AI assistant or visual workflow. Choose a setup guide below.
You do not have to write any of the code above. Connect the MCP server once and any agent that speaks MCP — Claude Code, Codex, Cursor, Windsurf, VS Code, Gemini CLI, Cline, LibreChat — can run this model by name, or run it from your shell with a single command.
Use tripo/p1/image-to-3d to edit ./poster.png — warmer light, cleaner background — and save the result next to it.
The agent looks the model up in the live catalogue, uploads the local file for you, then shows the exact quote and its maximum charge and waits for your confirmation. Nothing is billed until you say yes.
claude mcp add spicyapi -e SPICY_API_KEY=$SPICY_API_KEY \
-- npx --yes --package=@spicyapi/mcp spicyapi-mcp
npx skills add spicyapi-ai/spicy-skillThe first line gives the agent the tools; the second gives it the Skill — the operating rules for them, so it quotes before it bills, uploads local files instead of pasting bytes, and reads the finished asset URL rather than guessing. Every other client takes the same server through its own config file: see the developer hub.
npx @spicyapi/cli tasks create --model tripo/p1/image-to-3d \
--input-json '{"generate_pbr":true,"generate_texture":true,"image_url":"https://example.com/reference.png","model_orientation":"default","texture_alignment":"original_image","texture_quality":"standard"}' \
--waitThe input is this endpoint’s own schema, same as the examples above. --wait polls until the task is finished and prints it; add --yes to skip the confirmation prompt in CI. Set SPICY_API_KEY first — one key works for the API, the CLI and the MCP server.
npx @spicyapi/cli files upload ./poster.png
# -> spicy://uploads/01k3m8x9q2z4v7n5p6r8s0t1w3
npx @spicyapi/cli tasks create --model tripo/p1/image-to-3d \
--input-json '{"image_url":"spicy://uploads/01k3m8x9q2z4v7n5p6r8s0t1w3"}' \
--waitRequest bodies take URLs, not bytes. Upload the file first and pass the spicy:// URI it prints — the field name above is this endpoint’s own, straight from its schema. An agent on MCP does this step for you, which is why the sentence further up can name ./poster.png directly. Media already reachable over public HTTPS needs no upload.
npx @spicyapi/cli tasks create --model tripo/p1/image-to-3d \
--input-json '{…}' --retention 1h --wait
npx @spicyapi/cli tasks get $TASK_ID # read back the retention that applied--retention only ever shortens the window — 30m, 1h, 7d, or 0 to delete as soon as the task reaches a terminal state. The value that actually applies is the shortest of your request, your account settings and the platform maximum, so read it back from the task record rather than assuming the number you asked for took effect. Passing a longer window than your account allows does nothing.
Install the SpicyAPI nodes from ComfyUI Manager or with the command below, then search for Tripo P1 · Image to 3D on the canvas. The node has the same options as this page and shows its price before it runs.
cd ComfyUI/custom_nodes
git clone https://github.com/spicyapi-ai/comfyui-spicyapiThe embedded panel reads the same schema as this page, so it cannot drift from the API. If your docs need the content to be searchable, read the JSON under /api/embed/models/ and render it yourself.
<iframe src="https://spicyapi.ai/embed/en/models/tripo-p1/api?model=tripo%2Fp1%2Fimage-to-3d" width="100%" height="560" loading="lazy" title="Request example" style="border:1px solid rgba(0,0,0,.12)"></iframe>