promptstring필수텍스트 입력에서는 물체 설명을 필수로 입력합니다. 텍스트 입력에서는 1,024자 이내로 전체 형태, 재질, 색, 스타일, 크기를 적습니다.
- 기본값
- 지정되지 않음
- 제약 조건
- minLength:1maxLength:1024
예시는 선택한 엔드포인트의 공개 파라미터 정의를 사용합니다. API 키와 예시 미디어를 바꾼 뒤 서버에서 요청하세요.
SDK 및 연동https://api.spicyapi.ai/api/v1/jobs/createTaskAPI 키는 서버 환경 변수 SPICY_API_KEY에 보관하세요. Bearer 인증을 사용하고 JSON 요청에는 Content-Type: application/json을 지정하세요.
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/h3.1/text-to-3d",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"low_poly": false,
"quad_mesh": false,
"generate_pbr": true,
"generate_parts": false,
"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"이 모델의 입력 스키마에서 뽑아낸 예시입니다. API도 모든 요청을 같은 스키마로 검증합니다.
이 필드들은 요청 본문의 input 객체 안에 넣습니다. 이름과 타입은 API와 동일합니다. 기본값이 적혀 있지 않은 필드는 임의로 가정하지 마세요.
promptstring필수텍스트 입력에서는 물체 설명을 필수로 입력합니다. 텍스트 입력에서는 1,024자 이내로 전체 형태, 재질, 색, 스타일, 크기를 적습니다.
texture_seedinteger선택텍스트 입력에서는 텍스처 단계 비교용 시드입니다. 텍스트 입력에서는 동일한 표면 결과를 보장하지 않습니다.
image_seedinteger선택텍스트 입력에서는 3D 재구성 전 참고 이미지 단계의 시드입니다. 텍스트 입력에서는 비교에 사용하지만 정확한 재현은 보장하지 않습니다.
seedinteger선택텍스트 입력에서는 형태 단계 시드입니다. 텍스트 입력에서는 설정을 하나씩 바꾸며 비교하지만 정확한 재현은 보장하지 않습니다.
uv_unwrapboolean선택텍스트 입력에서는 기본으로 켭니다. 텍스트 입력에서는 끄면 처리와 파일 크기가 줄지만 나중에 텍스처를 입힐 UV 좌표가 없습니다.
auto_sizeboolean선택텍스트 입력에서는 기본으로 끕니다. 텍스트 입력에서는 실제 크기를 추정해 조정하며 텍스처 출력이 필요합니다.
face_limitinteger선택텍스트 입력에서는 텍스트로 만드는 메시는 1,000~2,000,000면을 지정합니다. 텍스트 입력에서는 low_poly에서는 20,000 이하를 권장합니다.
generate_partsboolean선택요금에 영향텍스트 입력에서는 텍스처 없는 삼각형 부품으로 나눕니다. 텍스트 입력에서는 텍스처와 쿼드 설정 및 요금을 빼고 부품 분리 요금을 적용합니다.
low_polyboolean선택요금에 영향텍스트 입력에서는 수작업 느낌의 로우폴리 처리로 별도 요금을 적용합니다. 텍스트 입력에서는 face_limit은 20,000 이하를 권장합니다.
quad_meshboolean선택요금에 영향텍스트 입력에서는 GLB 대신 사각 면 FBX를 출력합니다. 텍스트 입력에서는 generate_parts에서는 무시하며 추가 요금도 없습니다.
geometry_qualitystring선택요금에 영향텍스트 입력에서는 standard 또는 detailed를 선택합니다. 텍스트 입력에서는 detailed는 형상 세부 처리와 추가 요금이 적용됩니다.
"standard""detailed"remove_lightingboolean선택텍스트 입력에서는 기본으로 켜지만 v3.5에서만 적용합니다. 텍스트 입력에서는 참고 이미지에 포함된 조명을 제거합니다.
texture_versionstring선택텍스트 입력에서는 기본 v3.0-20250812 또는 v3.5-20260815를 선택합니다. 텍스트 입력에서는 fast와 조명 제거는 v3.5를 사용합니다.
"v3.0-20250812""v3.5-20260815"texture_qualitystring선택요금에 영향텍스트 입력에서는 standard가 기본입니다. 텍스트 입력에서는 detailed와 extreme(8K)은 별도 추가 요금이며 fast는 v3.5를 사용해 standard와 같은 요금입니다. 텍스트 입력에서는 텍스처가 없으면 품질 요금도 없습니다.
"standard""detailed""extreme""fast"generate_pbrboolean선택요금에 영향텍스트 입력에서는 기본으로 켭니다. 텍스트 입력에서는 generate_texture가 꺼져 있어도 PBR 재질이 텍스처를 활성화합니다.
generate_textureboolean선택요금에 영향텍스트 입력에서는 기본으로 켭니다. 텍스트 입력에서는 색상 텍스처를 없애려면 generate_pbr도 끕니다.
negative_promptstring선택텍스트 입력에서는 받침대 등 제외할 요소를 255자 이내로 간단히 입력합니다.
{
"type": "object",
"required": [
"prompt"
],
"x-pricing": {
"billingMode": "formula",
"variantFields": []
},
"properties": {
"seed": {
"type": "integer",
"x-ui": {
"order": 20,
"widget": "number",
"advanced": true
},
"maximum": 2147483647,
"minimum": 0,
"description": "Seed for the geometry step, for reproducible shapes."
},
"prompt": {
"type": "string",
"x-ui": {
"order": 100,
"widget": "textarea",
"primary": true
},
"maxLength": 1024,
"minLength": 1,
"description": "Describe the object to build: shape, material, colour, style and scale. One object, fully visible. Up to 1,024 characters."
},
"low_poly": {
"type": "boolean",
"x-ui": {
"order": 68,
"widget": "switch",
"affects_price": true
},
"default": false,
"description": "Build a low-poly mesh with clean, hand-modelled-style topology instead of a dense scan-like one. Best for simple objects; keep face_limit at 20,000 or below with it. Off by default; adds to the price."
},
"auto_size": {
"type": "boolean",
"x-ui": {
"order": 30,
"widget": "switch",
"advanced": true,
"affects_price": false
},
"default": false,
"description": "Scale the mesh to estimated real-world dimensions. Off by default."
},
"quad_mesh": {
"type": "boolean",
"x-ui": {
"order": 70,
"widget": "switch",
"affects_price": true
},
"default": false,
"description": "Return four-sided (quad) polygons instead of triangles, for editing in modelling tools; the file then comes back as FBX instead of GLB. Off by default; adds to the price. Ignored when generate_parts is on."
},
"uv_unwrap": {
"type": "boolean",
"x-ui": {
"order": 25,
"widget": "switch",
"advanced": true,
"affects_price": false
},
"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."
},
"face_limit": {
"type": "integer",
"x-ui": {
"step": 1000,
"order": 65,
"widget": "slider",
"affects_price": false
},
"maximum": 2000000,
"minimum": 1000,
"description": "Target face count, 1,000 to 2,000,000. Leave empty to let the model decide (often over a million faces). Does not change the price."
},
"image_seed": {
"type": "integer",
"x-ui": {
"order": 15,
"widget": "number",
"advanced": true
},
"maximum": 2147483647,
"minimum": 0,
"description": "Seed for the first step, which draws a reference picture from the prompt. Keep it fixed to keep the same starting picture."
},
"generate_pbr": {
"type": "boolean",
"x-ui": {
"order": 85,
"widget": "switch",
"affects_price": true
},
"default": true,
"description": "Add PBR material maps (metal-roughness and normal). On by default and switches texturing on."
},
"texture_seed": {
"type": "integer",
"x-ui": {
"order": 10,
"widget": "number",
"advanced": true
},
"maximum": 2147483647,
"minimum": 0,
"description": "Seed for the texture step. Keep seed fixed and change this to try new textures on the same shape."
},
"generate_parts": {
"type": "boolean",
"x-ui": {
"order": 67,
"widget": "switch",
"affects_price": true
},
"default": false,
"description": "Return the model split into separate, editable parts. Parts are untextured triangle meshes, so the texture options and quad_mesh are ignored and not charged. Off by default; costs more than the textured default."
},
"negative_prompt": {
"type": "string",
"x-ui": {
"order": 96,
"widget": "textarea",
"advanced": true
},
"maxLength": 255,
"description": "What the object should not have, written as a short list. Up to 255 characters."
},
"remove_lighting": {
"type": "boolean",
"x-ui": {
"order": 77,
"widget": "switch",
"affects_price": false
},
"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."
},
"texture_quality": {
"enum": [
"standard",
"detailed",
"extreme",
"fast"
],
"type": "string",
"x-ui": {
"order": 80,
"widget": "radio",
"enum_labels": {
"fast": "Fast",
"extreme": "8K",
"detailed": "Detailed",
"standard": "Standard"
},
"affects_price": true
},
"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."
},
"texture_version": {
"enum": [
"v3.0-20250812",
"v3.5-20260815"
],
"type": "string",
"x-ui": {
"order": 78,
"widget": "radio",
"enum_labels": {
"v3.0-20250812": "v3.0",
"v3.5-20260815": "v3.5"
},
"affects_price": false
},
"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."
},
"generate_texture": {
"type": "boolean",
"x-ui": {
"order": 90,
"widget": "switch",
"affects_price": true
},
"default": true,
"description": "Paint a texture onto the mesh. On by default; turning it off only removes texturing if generate_pbr is off too."
},
"geometry_quality": {
"enum": [
"standard",
"detailed"
],
"type": "string",
"x-ui": {
"order": 75,
"widget": "radio",
"enum_labels": {
"detailed": "Detailed",
"standard": "Standard"
},
"affects_price": true
},
"default": "standard",
"description": "Geometry detail: standard (the default) or detailed. detailed builds finer surface detail and costs more."
}
},
"additionalProperties": false
}HTTP 202는 접수되었다는 뜻이며 생성 완료가 아닙니다. 반환된 taskId를 저장하고 같은 작업을 조회하세요. 결과를 기다리는 동안 작업을 다시 생성하지 마세요.
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"
}
}접수 응답에 이번 예상 비용이 포함되므로 앱의 작업 기록과 청구 화면에 같은 금액을 표시할 수 있습니다.
curl --get "https://api.spicyapi.ai/api/v1/jobs/recordInfo" \
--data-urlencode "taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"약 2초 간격으로 시작해서 점점 간격을 넓히세요. 종료 상태가 나오면 멈추고, 연결이 끊겼더라도 원래 taskId를 그대로 조회하세요. 다시 생성할 때는 처음에 쓴 Idempotency-Key와 본문을 그대로 써야 합니다.
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);
});작업을 만들 때 callBackUrl을 넘기면 완료된 레코드가 POST로 전달됩니다 — 폴링 루프가 아예 필요 없습니다. 모든 전달에는 X-Webhook-Timestamp, X-Webhook-Signature, X-Webhook-Payload-Version이 함께 옵니다. 서명은 taskId.timestamp.sha256(body)에 대한 base64 HMAC-SHA256이므로 반드시 원본 바이트로 검증해야 합니다. JSON을 파싱했다가 다시 직렬화하면 바이트가 달라져 검증이 실패합니다. 실패한 전달은 재시도되므로 같은 taskId가 두 번 올 수 있습니다. 핸들러를 멱등하게 만드세요. 먼저 2xx로 답하고 처리는 그다음에 — 응답이 느리면 전달 실패로 간주됩니다.
state가 succeeded일 때만 output을 사용하세요. 실패 시 errorCode, errorMessage, request_id로 원인을 확인하세요. 예시 비용과 상태는 실제 청구 내역이 아닙니다.
{
"code": 200,
"msg": "success",
"request_id": "req_example_record",
"data": {
"taskId": "job_01k3m8x9q2z4v7n5p6r8s0t1w3",
"model": "tripo/h3.1/text-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"
}
}사용 가능한 파일은 assets[].url에서 바로 열거나 다운로드할 수 있으며 API Authorization 헤더가 필요하지 않습니다. 서명 URL은 expiresAt에 만료됩니다. 보관 기간 내에 작업을 다시 조회하면 URL이 갱신됩니다. 처리 중이거나 사용할 수 없는 파일에는 URL이 없습니다. 서명 URL은 비공개로 보관하세요.
앱, 터미널, AI 어시스턴트 또는 시각적 워크플로에서 SpicyAPI를 사용하세요. 원하는 설정 가이드를 선택하세요.
위 코드를 직접 쓸 필요는 없습니다. MCP 서버를 한 번만 연결해 두면 MCP를 지원하는 에이전트(Claude Code, Codex, Cursor, Windsurf, VS Code, Gemini CLI, Cline, LibreChat)가 이 모델을 이름으로 호출합니다. 셸에서 명령 한 줄로 실행할 수도 있습니다.
tripo/h3.1/text-to-3d로 네온 아래 선 댄서의 인물 사진을 만들어서 ./out/에 저장해 줘.
에이전트가 공개 카탈로그에서 모델을 찾고, 로컬 파일을 대신 업로드한 뒤, 정확한 견적과 최대 청구액을 보여 주고 확인을 기다립니다. 승인하기 전에는 요금이 발생하지 않습니다.
claude mcp add spicyapi -e SPICY_API_KEY=$SPICY_API_KEY \
-- npx --yes --package=@spicyapi/mcp spicyapi-mcp
npx skills add spicyapi-ai/spicy-skill첫 줄은 도구를, 둘째 줄은 Skill을 넘겨줍니다. Skill은 그 도구를 다루는 규칙입니다 — 청구 전에 견적을 받고, 로컬 파일은 바이트를 붙여 넣는 대신 업로드하고, 완성된 산출물 URL을 추측하지 않고 읽습니다. 다른 클라이언트도 각자의 설정 파일로 같은 서버를 사용합니다. 개발자 페이지를 참고하세요.
npx @spicyapi/cli tasks create --model tripo/h3.1/text-to-3d \
--input-json '{"prompt":"A ceramic teapot on a linen cloth, soft window light, muted palette","low_poly":false,"quad_mesh":false,"generate_pbr":true,"generate_parts":false,"texture_quality":"standard"}' \
--wait입력값은 위 예시와 마찬가지로 이 엔드포인트의 스키마에서 생성했습니다. --wait는 작업이 끝날 때까지 폴링해 결과를 출력하고, CI에서는 --yes로 확인 절차를 건너뜁니다. 먼저 SPICY_API_KEY를 설정하세요. API와 CLI, MCP 서버가 같은 키를 씁니다.
npx @spicyapi/cli tasks create --model tripo/h3.1/text-to-3d \
--input-json '{…}' --retention 1h --wait
npx @spicyapi/cli tasks get $TASK_ID # read back the retention that applied--retention은 보관 기간을 줄이기만 합니다 — 30m, 1h, 7d, 또는 0이면 작업이 종료 상태에 도달하는 즉시 삭제됩니다. 실제로 적용되는 값은 요청과 계정 설정, 플랫폼 상한 중 가장 짧은 값이므로 요청한 숫자가 그대로 반영됐다고 가정하지 말고 작업 레코드에서 다시 읽으세요. 계정이 허용하는 것보다 긴 값을 넘기면 아무 일도 일어나지 않습니다.
ComfyUI Manager나 아래 명령으로 SpicyAPI 노드를 설치한 뒤 캔버스에서 Tripo H3.1 · Text to 3D를 검색하세요. 노드는 이 페이지와 같은 옵션을 제공하며, 실행하기 전에 가격을 보여 줍니다.
cd ComfyUI/custom_nodes
git clone https://github.com/spicyapi-ai/comfyui-spicyapi삽입된 패널은 이 페이지와 같은 스키마를 참조하므로 API 사양과 어긋나지 않습니다. 문서 검색 대상에 포함하려면 /api/embed/models/의 JSON을 받아 직접 렌더링하세요.
<iframe src="https://spicyapi.ai/embed/ko/models/tripo-h3-1/api?model=tripo%2Fh3.1%2Ftext-to-3d" width="100%" height="560" loading="lazy" title="요청 예시" style="border:1px solid rgba(0,0,0,.12)"></iframe>