KO

언어

KO

언어

MCP 도구와 REST API 참고서

문서 탐색
이 페이지의 목차

앱 연결과 첫 조회

MCP · API 빠른 시작

이미 tacu라는 이름을 사용한다면 터미널에서 기존 주소를 확인하세요. Claude Code는 claude mcp get tacu, Codex는 codex mcp get tacu를 실행하세요. 설정 화면의 MCP 주소와 같으면 등록 명령을 건너뛰세요. 다르면 사용하지 않는 서버 이름을 골라 아래 등록·인증 명령에서 tacu를 그 이름으로 바꾸세요.

bash

claude mcp add --transport http tacu https://api.tacu.ai/mcp

bash

codex mcp add tacu --url https://api.tacu.ai/mcp

Claude Code는 같은 폴더에서 claude를 실행하세요. 대화에 /mcp를 입력하고 Tacu 서버를 선택한 뒤 Authenticate를 누르세요. Codex는 서버 등록 후 로그인 안내가 없으면 codex mcp login tacu를 실행하세요. 브라우저에서 승인한 뒤 같은 폴더에서 codex를 실행하면 대화가 열립니다.

모델 읽기(models:read)만 승인하세요. 설정 화면의 ‘요청 복사’를 눌러 “Tacu에서 사용할 수 있는 영상 모델을 보여 줘.”를 대화에 보내세요. 모델 목록 조회에는 Tacu 크레딧이 들지 않습니다.

사용량 조회 권한 추가하기

“이 워크스페이스의 사용량을 보여 줘”라고 요청하세요. 추가 권한이 필요하다는 안내가 나오면 아래 절차를 따르세요. 새 승인 화면에서도 처음 연결한 워크스페이스를 선택하고 모델 읽기(models:read)와 사용량 읽기(usage:read)를 확인하세요. 같은 브라우저에 Tacu 로그인이 유지되어 있으면 다시 로그인할 필요가 없습니다.

Claude Code

대화에서 /mcp를 입력하고 등록한 Tacu 서버를 골라 다시 인증하세요. 브라우저가 열리지 않으면 Claude Code에 표시된 승인 링크를 여세요. 승인한 뒤 같은 프로젝트 폴더에서 claude를 새로 실행해 모델과 사용량을 조회하세요.

Codex CLI

현재 프로젝트 폴더에서 새 터미널을 열고 아래 명령을 실행하세요. tacu는 처음 등록한 서버 이름입니다. 다른 이름으로 등록했다면 그 이름을 쓰세요.

bash

codex mcp login tacu --scopes models:read,usage:read

브라우저에서 승인한 뒤 같은 터미널에서 아래 명령으로 새 Codex 세션을 여세요. 이미 열려 있던 세션에는 이전 권한이 남을 수 있습니다.

bash

codex

새 세션에서 “이 워크스페이스의 영상 모델과 사용량을 보여 줘”라고 요청해 두 조회를 확인하세요.

스크립트에서 API 키 사용하기

워크스페이스 설정 열기

키에 이름을 붙이고 모델 읽기와 사용량 읽기만 선택하세요. 키 원문은 발급할 때 한 번 표시됩니다. 비밀 저장소에 보관하고 스크립트에는 TACU_API_KEY 환경 변수로 전달하세요. TEAM_SLUG에는 워크스페이스 설정의 일반 탭에서 복사한 ‘팀 주소’를 넣으세요. 아래 두 예제는 Bash와 curl 7.76 이상에서 실행할 수 있으며 무료입니다.

bash

curl --fail-with-body -H "Authorization: Bearer ${TACU_API_KEY}" "https://api.tacu.ai/v1/public/teams/${TEAM_SLUG}/models"

bash

curl --fail-with-body -H "Authorization: Bearer ${TACU_API_KEY}" "https://api.tacu.ai/v1/public/teams/${TEAM_SLUG}/usage/summary"

공개 REST API 명세 (새 탭에서 열림)

견적 확인 후 생성하기

tacu_list_models에서 모델의 tool_id, operation_id, 지원 옵션과 입력 규격을 확인하세요. 파일을 첨부하려면 tacu_create_upload가 반환한 URL로 파일을 PUT하세요. 등록한 Content-Type과 응답의 upload_headers를 함께 보내세요. 업로드가 끝나면 tacu_confirm_upload를 호출하고 생성 입력에는 asset_id를 쓰세요.

모델 조회에는 models:read, 견적·생성에는 generations:write, 결과 조회에는 generations:read가 필요합니다. 파일을 올릴 때는 assets:write도 선택하세요. 앞에서 읽기 전용 키를 발급했다면 필요한 권한으로 새 키를 발급해 TACU_API_KEY를 바꾸세요. 견적은 무료이며 생성을 접수하면 과금됩니다.

tacu_quote_generation으로 견적을 확인하세요. 진행하기로 하면 같은 요청에 estimate_id, contract_revision, 새 idempotency_key를 추가해 tacu_create_generation을 호출합니다. 접수 응답이 끊기면 처음 보낸 본문과 키 그대로 다시 보내세요.

여러 컷을 병렬로 만들거나 새 테이크를 추가할 때는 각각 견적을 받고 서로 다른 idempotency_key로 접수하세요.

접수 응답의 id로 tacu_get_generation을 조회하세요. 완료된 파일은 도구 응답의 content[]에서 type이 resource_link인 항목의 uri로 내려받습니다. 여러 결과를 요청했다면 각각의 상태와 환급 여부를 확인하세요. 다운로드 링크가 만료되면 결과를 다시 조회하세요.

텍스트로 이미지 한 장을 만드는 REST 견적 예시입니다. capabilities에서 파일 없이 이미지 생성이 가능한 항목을 골라 아래의 tool_id, tool_category_id, operation_id를 해당 항목의 값으로 바꾸세요. parameter_schema에 필수 옵션이 있으면 parameters에 넣으세요. 아래 JSON을 request.json으로 저장한 뒤 견적 명령을 실행하세요.

json

{
  "operation_id": "image.generate",
  "tool_id": 1,
  "tool_category_id": 201,
  "prompt": "A quiet harbour at dawn",
  "parameters": {},
  "inputs": [],
  "requested_output_count": 1
}

bash

curl --fail-with-body -H "Authorization: Bearer ${TACU_API_KEY}" -H "Accept: application/json" -H "Content-Type: application/json" --data-binary @request.json "https://api.tacu.ai/v1/public/teams/${TEAM_SLUG}/generations/estimate"

생성 비용을 확인하고 진행할 때만 다음 명령을 실행하세요. request.json을 복사해 submit.json을 만들고, 견적 응답의 estimate_id와 contract_revision, 이번 요청에 사용할 고유한 idempotency_key를 추가하세요.

bash

curl --fail-with-body -H "Authorization: Bearer ${TACU_API_KEY}" -H "Accept: application/json" -H "Content-Type: application/json" --data-binary @submit.json "https://api.tacu.ai/v1/public/teams/${TEAM_SLUG}/generations"

생성 응답의 id를 GENERATION_ID에 넣고 진행 상태를 조회하세요. 완료된 파일은 outputs[].asset.file_url에서 받으세요. 파일을 올리거나 내려받는 주소에는 Tacu API 키를 보내지 마세요.

bash

curl --fail-with-body -H "Authorization: Bearer ${TACU_API_KEY}" "https://api.tacu.ai/v1/public/teams/${TEAM_SLUG}/generations/${GENERATION_ID}"

연결·모델·파일 도구

각 도구는 승인한 워크스페이스에서 실행됩니다. 아래에는 호출 인자와 응답에서 필요한 필드만 담았습니다. 예시의 파일 주소, ID, 금액은 실행할 때 받은 값으로 바꾸세요. REST에서는 GET 옵션을 쿼리로 보내고 POST 본문에는 예시의 request 안쪽 필드를 넣으세요.

tacu_get_connection

유효한 연결 · 크레딧 차감 없음

인자 없이 호출하면 현재 연결의 workspace와 승인한 scopes를 반환합니다. 예상한 워크스페이스인지 먼저 확인하세요.

호출 예시

json

{
  "name": "tacu_get_connection",
  "arguments": {}
}

응답 예시

json

{
  "structuredContent": {
    "workspace": "example-studio",
    "scopes": [
      "models:read"
    ]
  }
}

tacu_list_models

models:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/models

인자 없이 호출합니다. capabilities의 항목별로 모델 이름, tool_id, tool_category_id, operation_id, 필수 입력과 설정(input_contract, parameter_schema)을 확인할 수 있습니다. upload_limits에는 파일 업로드 제한이 있습니다. 아래는 조회된 영상 모델 중 하나입니다. 이미지 견적을 낼 때는 이미지 생성이 가능한 항목을 고르세요.

호출 예시

json

{
  "name": "tacu_list_models",
  "arguments": {}
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "capabilities": [
        {
          "display_name": "Seedance 2.5",
          "tool_id": 105,
          "tool_category_id": 5,
          "operation_id": "video.generate"
        }
      ]
    }
  }
}

tacu_create_upload

assets:write · 크레딧 차감 없음

POST /v1/public/teams/{team_slug}/assets/uploads

file_name, file_size(바이트), content_type(MIME), asset_type(image, video, audio)을 지정하세요. title은 선택입니다. MCP에서는 idempotency_key를 request 밖에 넣고 REST에서는 Idempotency-Key 헤더에 넣으세요. 재전송할 때는 같은 값을 쓰세요. presigned_url로 PUT할 때는 등록한 Content-Type과 응답의 upload_headers를 함께 보내세요. expires_in은 초 단위입니다. 재전송 응답에서 presigned_url이 null이면 asset_id로 상태를 확인하세요.

호출 예시

json

{
  "name": "tacu_create_upload",
  "arguments": {
    "request": {
      "file_name": "reference.png",
      "file_size": 120,
      "content_type": "image/png",
      "asset_type": "image"
    },
    "idempotency_key": "reference-upload-001"
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 201,
    "data": {
      "asset_id": "a2590f0c-52cb-4693-9523-f54f8d302997",
      "presigned_url": "https://storage.example.test/upload",
      "upload_headers": {
        "If-None-Match": "*"
      },
      "expires_in": 3600,
      "state": "uploading"
    }
  }
}

tacu_confirm_upload

assets:write · 크레딧 차감 없음

POST /v1/public/teams/{team_slug}/assets/uploads/{asset_id}/confirm

PUT이 끝나면 이번에 받은 asset_id(UUID)로 확정하세요. 응답에는 파일의 id, state와 미디어 정보가 있습니다. 아직 검사 중이면 tacu_get_asset에서 상태를 다시 확인하세요.

호출 예시

json

{
  "name": "tacu_confirm_upload",
  "arguments": {
    "asset_id": "a2590f0c-52cb-4693-9523-f54f8d302997"
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "id": "a2590f0c-52cb-4693-9523-f54f8d302997",
      "state": "active"
    }
  }
}

tacu_get_asset

assets:write · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/assets/{id}

asset_id(UUID)가 필요합니다. state가 active인지 확인하세요. 파일에 따라 media_probe, mime_type, 크기·길이, file_url도 확인할 수 있습니다. 다운로드 주소가 있으면 content[]에 resource_link가 함께 옵니다.

호출 예시

json

{
  "name": "tacu_get_asset",
  "arguments": {
    "asset_id": "a2590f0c-52cb-4693-9523-f54f8d302997"
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "id": "a2590f0c-52cb-4693-9523-f54f8d302997",
      "state": "active",
      "mime_type": "image/png",
      "file_url": "https://media.example.test/uploads/reference.png"
    }
  },
  "content": [
    {
      "type": "resource_link",
      "uri": "https://media.example.test/uploads/reference.png",
      "mimeType": "image/png"
    }
  ]
}

견적·생성 도구

tacu_quote_generation

generations:write · 크레딧 차감 없음

POST /v1/public/teams/{team_slug}/generations/estimate

request에는 operation_id와 tool_id가 필수입니다. tool_category_id, prompt, parameters, inputs, requested_output_count(기본 1)는 선택이며, 모델에 따라 프롬프트나 파일이 필요합니다. 파일 입력에는 role, origin 값 asset, media_type, asset_id를 넣으세요. metadata는 지원되는 모델의 원본 구간이나 키프레임 시점을 지정할 때 씁니다. estimated_total_credits와 expires_at을 확인하고 estimate_id, contract_revision을 보관하세요.

호출 예시

json

{
  "name": "tacu_quote_generation",
  "arguments": {
    "request": {
      "operation_id": "image.generate",
      "tool_id": 1,
      "tool_category_id": 201,
      "prompt": "A quiet harbour at dawn",
      "parameters": {},
      "inputs": [],
      "requested_output_count": 1
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "estimated_total_credits": 7,
      "estimate_id": "35938b73-8018-4a32-9f4f-9544522e2e07",
      "contract_revision": "2026-11-10.1",
      "expires_at": "2026-11-19T20:11:00.065717+09:00"
    }
  }
}

tacu_create_generation

generations:write · 접수 시 견적에 따라 크레딧 차감

POST /v1/public/teams/{team_slug}/generations

견적에 동의한 뒤에 호출하세요. 견적에 보낸 request 안에 estimate_id, contract_revision, 새 idempotency_key를 추가합니다. 재시도할 때는 본문과 키를 그대로 보내세요. 응답의 id로 진행 상태를 확인합니다. 다시 접수된 같은 요청은 같은 id를 반환합니다.

호출 예시

json

{
  "name": "tacu_create_generation",
  "arguments": {
    "request": {
      "operation_id": "image.generate",
      "tool_id": 1,
      "tool_category_id": 201,
      "prompt": "A quiet harbour at dawn",
      "parameters": {},
      "inputs": [],
      "requested_output_count": 1,
      "estimate_id": "35938b73-8018-4a32-9f4f-9544522e2e07",
      "contract_revision": "2026-11-10.1",
      "idempotency_key": "harbour-image-001"
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 201,
    "data": {
      "id": "4a3eb825-16e4-4523-ad15-99f4f1d399a7",
      "state": "queued",
      "credits_charged": 7
    }
  }
}

tacu_get_generation

generations:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/generations/{id}

generation_id에 접수 응답의 id(UUID)를 넣으세요. state와 outputs에서 각 결과의 상태·차감·환급 상태를 확인할 수 있습니다. 완성된 파일은 outputs[].asset.file_url 또는 content[]의 resource_link.uri로 받을 수 있습니다. 주소가 만료되면 같은 ID로 다시 조회하세요.

호출 예시

json

{
  "name": "tacu_get_generation",
  "arguments": {
    "generation_id": "4a3eb825-16e4-4523-ad15-99f4f1d399a7"
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "id": "4a3eb825-16e4-4523-ad15-99f4f1d399a7",
      "state": "completed",
      "outputs": [
        {
          "state": "completed",
          "refund_state": "none",
          "asset": {
            "file_url": "https://media.example.test/uploads/input.png"
          }
        }
      ]
    }
  },
  "content": [
    {
      "type": "resource_link",
      "uri": "https://media.example.test/uploads/input.png",
      "mimeType": "image/png"
    }
  ]
}

tacu_list_generations

generations:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/generations

이 워크스페이스에서 내가 시작한 진행 중 작업을 조회합니다. page(기본 1)와 include_finished(기본 false)는 선택입니다. true로 설정하면 최근 종료한 작업도 나옵니다. 응답에는 count, results, next, previous가 있습니다. next가 있으면 같은 도구에서 page를 하나 늘려 호출하세요.

호출 예시

json

{
  "name": "tacu_list_generations",
  "arguments": {
    "page": 1,
    "include_finished": true
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "count": 1,
      "next": null,
      "previous": null,
      "results": [
        {
          "id": "4a3eb825-16e4-4523-ad15-99f4f1d399a7",
          "state": "completed"
        }
      ]
    }
  }
}

Studio 프로젝트 만들고 편집하기

프로젝트를 만든 뒤 이야기 자료를 준비하세요. 준비가 끝나면 첫 견적을 확인하고 프리프로덕션을 시작하세요. 기본 이미지를 선택하고 콘티를 생성한 뒤, 콘티와 견적을 확인하고 영상 생성을 승인하세요. 작업 진행 상황은 프로젝트에서 확인할 수 있습니다. 같은 컷에 테이크를 추가할 때는 요금제의 동시 생성 한도가 적용됩니다.

아래 ID·해시·크레딧은 설명용입니다. 실제 요청에는 앞 단계의 응답값을 사용하세요. REST 요청은 표시된 경로에 보내고, POST 본문에는 MCP 예시에서 request 안쪽의 필드만 넣으세요. 다운로드 주소를 열 때는 Tacu API 키를 보내지 마세요.

tacu_get_studio_options

projects:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/studio/projects/options

스타일 가이드와 모델, 사용할 수 있는 언어 코드와 화면 크기를 확인하세요. 프로젝트를 만든 뒤 project_id를 넣어 다시 조회하면 선택 가능한 영상 모델도 볼 수 있습니다.

호출 예시

json

{
  "name": "tacu_get_studio_options",
  "arguments": {}
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "guide_version_id": "a5e546d8-d71e-488a-832d-000000000001",
      "guide_digest": "7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a",
      "languages": [
        "en",
        "ko",
        "ja",
        "zh-CN",
        "zh-TW",
        "es",
        "fr",
        "th",
        "id",
        "vi",
        "ms",
        "other"
      ],
      "frame_sizes": [
        "1280x720",
        "720x1280",
        "1920x1080",
        "1080x1920"
      ]
    }
  }
}

tacu_create_studio_project

projects:write · 크레딧 차감 없음

POST /v1/public/teams/{team_slug}/studio/projects

이야기와 가이드 버전·해시를 지정하세요. duration_seconds는 완성할 영상 전체의 목표 길이입니다. 일반 제작은 30초부터 가능하며, 첫 프로젝트 무료 혜택이 적용된 견적(first_project_free가 true)에서는 30초 미만도 허용합니다. 이후 단계에서는 반환된 project_id를 사용하세요. MCP에서 프로젝트를 만들거나 상세를 조회하면 프로젝트 제목과 web_url이 담긴 text/html 링크도 반환됩니다.

호출 예시

json

{
  "name": "tacu_create_studio_project",
  "arguments": {
    "request": {
      "idempotency_key": "a5e546d8-d71e-488a-832d-000000000002",
      "guide_version_id": "a5e546d8-d71e-488a-832d-000000000001",
      "guide_digest": "7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a",
      "title": "The last train",
      "story": "A stationmaster returns a lost scarf just before the train leaves.",
      "duration_seconds": 30,
      "language": "en",
      "frame_size": "1280x720"
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 201,
    "data": {
      "project_id": "StudioDemo7",
      "title": "The last train",
      "idempotent_replay": false,
      "web_url": "https://studio.example.test/project/open/example-studio/StudioDemo7"
    }
  },
  "content": [
    {
      "type": "resource_link",
      "uri": "https://studio.example.test/project/open/example-studio/StudioDemo7",
      "name": "The last train",
      "mimeType": "text/html"
    }
  ]
}

tacu_list_studio_projects

projects:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/studio/projects

승인한 워크스페이스에서 열 수 있는 프로젝트 목록입니다. next_offset이 있으면 다음 조회의 offset에 넣으세요. 공개 ID가 없는 이전 프로젝트는 목록에 표시되며 web_url은 null입니다.

호출 예시

json

{
  "name": "tacu_list_studio_projects",
  "arguments": {
    "limit": 25,
    "offset": 0
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "projects": [
        {
          "project_id": "StudioDemo7",
          "title": "The last train",
          "web_url": "https://studio.example.test/project/open/example-studio/StudioDemo7"
        }
      ],
      "next_offset": null
    }
  }
}

tacu_get_studio_project

projects:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/studio/projects/{project_id}

web_url을 열면 Tacu에서 콘티나 편집본을 확인할 수 있습니다. 초안의 목표 길이는 target_duration_seconds, 마지막 수정 시각은 updated_at에 있습니다. 편집할 컷은 최상위 cuts의 cut_id로 고르고 현재 document_version을 사용하세요.

콘티는 scenes에서 검토하세요. storyboard_video_tool_id는 현재 콘티를 만든 영상 모델의 ID입니다. 하나의 모델로 확인할 수 없으면 null입니다. 승인 직전에 읽은 snapshot_version을 견적과 승인에 사용하세요.

음악과 내레이션의 생성 상태는 audio_readiness.music과 audio_readiness.narration에서 확인하세요. pending이면 기다리고, failed이면 프로젝트에서 해당 음원을 확인하세요. ready는 사용할 수 있는 상태이고 not_required는 기다릴 음원이 없다는 뜻입니다. 편집 문서가 준비되기 전에는 audio_readiness가 null입니다.

첫 프로젝트 무료 혜택이 적용된 경우 first_project_completion.handoff_status가 scheduled 또는 started이면 이미 제작을 진행 중입니다. 추가 승인 없이 이 프로젝트를 조회하세요. review_required이면 web_url에서 콘티를 확인하세요.

호출 예시

json

{
  "name": "tacu_get_studio_project",
  "arguments": {
    "project_id": "StudioDemo7"
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "project_id": "StudioDemo7",
      "updated_at": "2026-11-21T11:42:17.346120Z",
      "target_duration_seconds": 30,
      "document_version": 12,
      "storyboard_video_tool_id": 105,
      "first_project_completion": null,
      "audio_readiness": {
        "music": "ready",
        "narration": "not_required"
      },
      "editor_available": true,
      "cuts": [
        {
          "cut_id": "cut-2",
          "cut_number": 2,
          "has_video_element": true
        }
      ],
      "web_url": "https://studio.example.test/project/open/example-studio/StudioDemo7",
      "title": "The last train"
    }
  },
  "content": [
    {
      "type": "resource_link",
      "uri": "https://studio.example.test/project/open/example-studio/StudioDemo7",
      "name": "The last train",
      "mimeType": "text/html"
    }
  ]
}

tacu_prepare_studio_sources

projects:write + generations:write · 자료 분석 · 제작 견적 별도

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/prepare

기존 프로젝트의 이야기를 분석해 첫 견적에 필요한 자료를 준비합니다. 분석 과정에서 모델을 사용할 수 있습니다. HTTP 202와 함께 input_state가 pending 또는 processing이면 같은 프로젝트 ID와 같은 idempotency_key로 다시 호출하세요. HTTP 200과 ready가 오면 preparation_id를 저장하세요. 첫 견적에서 source_preparation_required가 반환된 경우에도 같은 프로젝트에서 이 단계부터 이어가세요.

호출 예시

json

{
  "name": "tacu_prepare_studio_sources",
  "arguments": {
    "project_id": "StudioDemo7",
    "request": {
      "idempotency_key": "a5e546d8-d71e-488a-832d-000000000021"
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "project_id": "StudioDemo7",
      "input_state": "ready",
      "preparation_id": "a5e546d8-d71e-488a-832d-000000000022"
    }
  }
}

tacu_quote_studio_stage

projects:write · 크레딧 차감 없음

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/estimate

첫 견적(onboarding_to_preproduction)에는 자료 준비에서 받은 preparation_id를 보내세요. 기본 이미지(preproduction_basic_images)부터는 최신 snapshot_version이 필요합니다. 콘티 생성(preproduction_to_scenario) 견적에는 선택한 영상 모델의 video_tool_id도 넣으세요.

최종 견적(editor_setup_due_now)에는 프로젝트 상세의 storyboard_video_tool_id를 video_tool_id로 보내세요. 값이 null이면 콘티를 만들 때 선택한 모델을 사용하세요. 모델을 바꾸려면 project_id로 tacu_get_studio_options를 조회하세요. 승인할 때는 견적과 같은 모델, 영상·음악·내레이션 옵션을 보내세요.

409 storyboard_video_model_incompatible이면 선택한 모델이 콘티의 입력 방식(unsupported_input_mode)이나 여러 쇼트를 한 번에 생성하는 방식(unsupported_multicut)을 지원하지 않습니다. 409 video_shot_contract_invalid이면 컷 길이를 확인하세요. 같은 견적을 반복하거나 다른 모델을 하나씩 시도하지 마세요. 콘티를 만들 때 쓴 모델로 돌아가거나, 사용자가 선택한 호환 모델로 견적을 받으세요.

503이면 응답의 retryable을 확인하세요(MCP에서는 structuredContent.data.retryable). true일 때만 잠시 기다렸다가 같은 견적을 한 번 더 요청하세요. 대기 시간이 표시되면 그만큼 기다리세요. 값이 없거나 false이면, 또는 한 번 더 요청해도 실패하면 멈추세요.

호출 예시

json

{
  "name": "tacu_quote_studio_stage",
  "arguments": {
    "project_id": "StudioDemo7",
    "request": {
      "stage": "onboarding_to_preproduction",
      "preparation_id": "a5e546d8-d71e-488a-832d-000000000022"
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "stage": "onboarding_to_preproduction",
      "estimate_id": "a5e546d8-d71e-488a-832d-000000000003",
      "preparation_id": "a5e546d8-d71e-488a-832d-000000000022",
      "target_duration_seconds": 30,
      "estimated_credit": 20
    }
  }
}

재시도 응답 예시

json

{
  "isError": true,
  "structuredContent": {
    "status": 503,
    "data": {
      "code": "batch_estimate_failed",
      "retryable": true
    }
  }
}

현재 콘티의 영상 생성 견적 요청 예시

json

{
  "name": "tacu_quote_studio_stage",
  "arguments": {
    "project_id": "StudioDemo7",
    "request": {
      "stage": "editor_setup_due_now",
      "snapshot_version": 5,
      "video_tool_id": 105,
      "generate_videos": true,
      "generate_music": false,
      "generate_narration": false
    }
  }
}

tacu_set_studio_draft_duration

projects:write · 크레딧 차감 없음

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/draft-duration

제작을 시작하기 전 초안의 목표 길이를 바꿀 수 있습니다. 첫 견적에서 422 production_duration_too_short가 나오면 minimum_seconds 이상의 길이를 선택하세요. 같은 프로젝트를 다시 조회해 updated_at 값을 expected_updated_at에 그대로 넣으세요. 저장 후에는 준비가 끝난 자료가 유효한 동안 같은 preparation_id로 새 견적을 받고, 그 견적의 estimate_id로 시작하세요. 409 studio_draft_changed가 나오면 현재 길이를 다시 확인하세요. invalid_generation_phase는 초안의 길이를 수정할 수 있는 단계가 지났다는 뜻입니다.

호출 예시

json

{
  "name": "tacu_set_studio_draft_duration",
  "arguments": {
    "project_id": "ShortDraft7",
    "request": {
      "expected_updated_at": "2026-11-21T10:15:03.123456Z",
      "duration_seconds": 30
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "project_id": "ShortDraft7",
      "target_duration_seconds": 30,
      "updated_at": "2026-11-21T10:16:14.567890Z"
    }
  }
}

tacu_start_studio_project

projects:write + generations:write · 접수 시 견적에 따라 크레딧 차감

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/start

첫 견적의 크레딧을 확인한 뒤 estimate_id와 견적에 쓴 preparation_id를 보내세요. 시작 요청에는 새 idempotency_key를 씁니다. 접수 응답을 받지 못하면 같은 키와 본문으로 다시 보내세요. 접수 후에는 tacu_get_studio_project에서 진행 상황을 확인하세요.

호출 예시

json

{
  "name": "tacu_start_studio_project",
  "arguments": {
    "project_id": "StudioDemo7",
    "request": {
      "idempotency_key": "a5e546d8-d71e-488a-832d-000000000004",
      "estimate_id": "a5e546d8-d71e-488a-832d-000000000003",
      "preparation_id": "a5e546d8-d71e-488a-832d-000000000022"
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 202,
    "data": {
      "project_id": "StudioDemo7",
      "input_state": "ready",
      "request_id": 412
    }
  }
}

tacu_set_studio_basic_images

projects:write + generations:write · 예시의 skip은 무료 · 이미지 생성 시 견적 적용

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/basic-images

기본 이미지를 만들려면 generate와 해당 견적의 estimate_id를 보내세요. 건너뛰려면 예시처럼 skip을 보내세요.

호출 예시

json

{
  "name": "tacu_set_studio_basic_images",
  "arguments": {
    "project_id": "StudioDemo7",
    "request": {
      "idempotency_key": "a5e546d8-d71e-488a-832d-000000000005",
      "snapshot_version": 2,
      "decision": "skip"
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "project_id": "StudioDemo7",
      "phase": "preproduction_ready"
    }
  }
}

tacu_generate_storyboard

projects:write + generations:write · 접수 시 견적에 따라 크레딧 차감

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/storyboard

콘티 견적에 사용한 영상 모델과 스냅샷 버전을 보내세요. 접수 후 프로젝트를 다시 조회해 장면과 컷을 검토하세요.

호출 예시

json

{
  "name": "tacu_generate_storyboard",
  "arguments": {
    "project_id": "StudioDemo7",
    "request": {
      "idempotency_key": "a5e546d8-d71e-488a-832d-000000000006",
      "estimate_id": "a5e546d8-d71e-488a-832d-000000000016",
      "snapshot_version": 4,
      "video_tool_id": 105
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "project_id": "StudioDemo7",
      "phase": "stage2_queued"
    }
  }
}

tacu_approve_storyboard

projects:write + generations:write · 접수 시 견적에 따라 크레딧 차감

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/approve

검토한 콘티 버전과 승인 견적을 보내세요. 응답이 끊기면 같은 본문과 키로 접수 결과를 확인하세요.

호출 예시

json

{
  "name": "tacu_approve_storyboard",
  "arguments": {
    "project_id": "StudioDemo7",
    "request": {
      "idempotency_key": "a5e546d8-d71e-488a-832d-000000000007",
      "estimate_id": "a5e546d8-d71e-488a-832d-000000000017",
      "snapshot_version": 5,
      "video_tool_id": 105,
      "generate_videos": true,
      "generate_music": false,
      "generate_narration": false
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "project_id": "StudioDemo7",
      "snapshot_version": 6
    }
  }
}

tacu_list_cut_takes

projects:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/studio/projects/{project_id}/cuts/{cut_id}/takes

이 컷의 테이크와 선택 상태를 조회하세요. 완료된 테이크에는 원본 파일 주소가 있습니다.

호출 예시

json

{
  "name": "tacu_list_cut_takes",
  "arguments": {
    "project_id": "StudioDemo7",
    "cut_id": "cut-2"
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "document_version": 12,
      "takes": [
        {
          "version": 2,
          "selected": true,
          "status": "completed",
          "asset_request_id": 214,
          "file_url": "https://cdn.example.test/take2.mp4"
        }
      ]
    }
  }
}

tacu_quote_cut_take

projects:read · 크레딧 차감 없음

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/cuts/{cut_id}/takes/estimate

영상 모델과 입력 방식은 tacu_list_models에서 고르세요. 컷의 첫 프레임을 사용할 때는 그 입력을 지원하는 모델·카테고리와 use_first_frame을 지정하세요.

호출 예시

json

{
  "name": "tacu_quote_cut_take",
  "arguments": {
    "project_id": "StudioDemo7",
    "cut_id": "cut-2",
    "request": {
      "tool_id": 105,
      "tool_category_id": 5,
      "prompt": "The stationmaster raises the scarf."
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "estimated_credits": 120
    }
  }
}

tacu_create_cut_take

projects:write + generations:write · 접수 시 견적에 따라 크레딧 차감

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/cuts/{cut_id}/takes

이 컷에 새 테이크를 추가하세요. 최대 차감액을 max_credits에 넣습니다. 추가 테이크마다 새 request_id를 쓰고, 같은 접수를 재전송할 때는 기존 ID와 본문을 쓰세요.

호출 예시

json

{
  "name": "tacu_create_cut_take",
  "arguments": {
    "project_id": "StudioDemo7",
    "cut_id": "cut-2",
    "request": {
      "tool_id": 105,
      "tool_category_id": 5,
      "prompt": "The stationmaster raises the scarf.",
      "request_id": "a5e546d8-d71e-488a-832d-000000000008",
      "max_credits": 120
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 201,
    "data": {
      "request_id": "a5e546d8-d71e-488a-832d-000000000008",
      "version_id": 3,
      "asset_request_id": 215,
      "status": "pending",
      "credits_used": 120
    }
  }
}

tacu_select_cut_take

projects:write · 크레딧 차감 없음

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/cuts/{cut_id}/takes/select

완료된 테이크와 현재 편집 버전을 선택하세요. 다른 편집이 먼저 저장되면 이력을 다시 읽고 적용할 버전을 확인하세요.

호출 예시

json

{
  "name": "tacu_select_cut_take",
  "arguments": {
    "project_id": "StudioDemo7",
    "cut_id": "cut-2",
    "request": {
      "request_id": "a5e546d8-d71e-488a-832d-000000000009",
      "version": 3,
      "document_version": 14
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "version": 3,
      "document_version": 15
    }
  }
}

tacu_export_studio_mp4

projects:write + generations:write · 워크스페이스의 내보내기 조건 적용

POST /v1/public/teams/{team_slug}/studio/projects/{project_id}/exports

저장한 편집 버전을 비공개 MP4로 내보냅니다. 원래 화면 크기를 유지하려면 output_resolution을 생략하세요. export_output_resolution_unavailable은 요청한 크기를 지원하지 않는다는 뜻입니다.

studio_audio_pending이면 음원이 준비될 때까지 기다린 뒤 최신 document_version을 확인하세요. studio_audio_failed이면 프로젝트에서 해당 음원을 수정하거나 음소거하세요.

응답이 끊기면 같은 request_id와 본문으로 다시 보내세요. export_audio_source_unavailable이나 export_renderer_unavailable이면 REST의 Retry-After 또는 MCP의 structuredContent.retry_after_seconds에 표시된 시간만큼 기다리세요.

접수 후에는 export_id로 진행 상태를 조회하세요. 같은 요청을 다시 보내도 같은 ID가 반환됩니다. 상태가 failed로 끝난 뒤 다시 내보내려면 새 request_id를 쓰세요.

호출 예시

json

{
  "name": "tacu_export_studio_mp4",
  "arguments": {
    "project_id": "StudioDemo7",
    "request": {
      "request_id": "a5e546d8-d71e-488a-832d-000000000010",
      "expected_document_version": 15
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "export_id": "a5e546d8-d71e-488a-832d-000000000012",
      "request_id": "a5e546d8-d71e-488a-832d-000000000010",
      "document_version": 15,
      "status": "submitted",
      "recovery_required": false,
      "file_url": null,
      "name": null,
      "mime_type": null
    }
  }
}

재시도 응답 예시

json

{
  "isError": true,
  "structuredContent": {
    "status": 503,
    "data": {
      "code": "export_audio_source_unavailable"
    },
    "retry_after_seconds": 5
  }
}

tacu_get_studio_export

projects:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/studio/projects/{project_id}/exports/{export_id}

export_id로 상태를 조회하세요. recovery_required가 true이면 접수 여부를 확인 중입니다. 같은 ID로 다시 조회하고, 계속 바뀌지 않으면 이 ID로 문의하세요. status가 succeeded이면 expires_at 전에 file_url의 MP4를 name에 표시된 파일명으로 저장하세요. MCP의 resource_link에도 같은 파일명과 MIME 형식이 있습니다. 다운로드할 파일이 없으면 file_url, name, mime_type은 null입니다.

호출 예시

json

{
  "name": "tacu_get_studio_export",
  "arguments": {
    "project_id": "StudioDemo7",
    "export_id": "a5e546d8-d71e-488a-832d-000000000012"
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "export_id": "a5e546d8-d71e-488a-832d-000000000012",
      "request_id": "a5e546d8-d71e-488a-832d-000000000010",
      "status": "succeeded",
      "document_version": 15,
      "recovery_required": false,
      "expires_at": "2026-11-26T12:00:00Z",
      "file_url": "https://cdn.example.test/final.mp4",
      "name": "tacu-the-last-train-a5e546d8-d71e-488a-832d-000000000012.mp4",
      "mime_type": "video/mp4"
    }
  },
  "content": [
    {
      "type": "resource_link",
      "uri": "https://cdn.example.test/final.mp4",
      "name": "tacu-the-last-train-a5e546d8-d71e-488a-832d-000000000012.mp4",
      "mimeType": "video/mp4"
    }
  ]
}

tacu_get_export_originals

projects:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/studio/projects/{project_id}/exports/{export_id}/originals

files에는 이 내보내기에 배치한 영상·이미지·오디오가 담깁니다. 한 MP4를 영상과 원음으로 쓰면 두 항목이 같은 파일을 가리킬 수 있습니다. 사용하지 않은 테이크와 참조 이미지까지 받으려면 tacu_list_studio_originals를 사용하세요.

호출 예시

json

{
  "name": "tacu_get_export_originals",
  "arguments": {
    "project_id": "StudioDemo7",
    "export_id": "a5e546d8-d71e-488a-832d-000000000012"
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "export_id": "a5e546d8-d71e-488a-832d-000000000012",
      "document_version": 15,
      "files": [
        {
          "element_id": "video-2",
          "kind": "video",
          "file_url": "https://cdn.example.test/take3.mp4"
        },
        {
          "element_id": "native-audio-2",
          "kind": "audio",
          "file_url": "https://cdn.example.test/take3.mp4"
        }
      ]
    }
  }
}

tacu_list_studio_originals

projects:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/studio/projects/{project_id}/originals

첫 프레임, 인물·장소·소품 이미지, 다른 테이크와 원음도 받을 수 있습니다. 첫 페이지는 현재 document_version으로 조회하세요. 다음 페이지에는 같은 document_version과 첫 응답의 revision을 쓰고, 직전 응답의 next_offset을 offset에 넣으세요. next_offset이 null이면 끝입니다. file_id는 파일 하나를, uses는 이 파일의 사용처를 나타냅니다.

document_version_conflict가 나오면 프로젝트에서 새 편집 버전을 확인하세요. originals_revision_conflict이면 같은 편집 버전을 사용하세요. 두 경우 모두 revision을 빼고 첫 페이지부터 다시 받으세요. project_original_unavailable이 계속되면 project_id와 not_ready_reason을 적어 문의하세요.

호출 예시

json

{
  "name": "tacu_list_studio_originals",
  "arguments": {
    "project_id": "StudioDemo7",
    "document_version": 15,
    "limit": 1
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "project_id": "StudioDemo7",
      "document_version": 15,
      "revision": "c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6",
      "total_files": 12,
      "files": [
        {
          "file_id": "4545454545454545454545454545454545454545454545454545454545454545",
          "kind": "image",
          "file_url": "https://cdn.example.test/first-frame.png",
          "uses": [
            {
              "role": "first_frame",
              "path": [
                "cuts",
                "cut-2",
                "elements",
                "image-2"
              ],
              "version": 1
            }
          ]
        }
      ],
      "next_offset": 1
    }
  }
}

다음 페이지 요청 예시

json

{
  "name": "tacu_list_studio_originals",
  "arguments": {
    "project_id": "StudioDemo7",
    "document_version": 15,
    "limit": 1,
    "offset": 1,
    "revision": "c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6c6"
  }
}

사용량 조회 도구

tacu_get_usage

usage:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/usage

선택 인자 filters에는 문자열 값을 넣습니다. from·to는 한국 시간 기준 포함 날짜(YYYY-MM-DD)입니다. project, project_scope, user, model, display_name, kind, status로 좁힐 수 있습니다. page, page_size로 페이지를 선택하고 include_details를 "1"로 주면 저장된 세부 내역을 요청합니다. results에는 볼 수 있는 차감·환급 내역이 나오며, 각 행의 credits는 JSON 숫자입니다. 다음 페이지는 filters.page를 늘려 조회하세요.

‘앱 연결 및 API 키’에서 본인이 발급한 키 옆의 ‘키 ID 복사’를 누르세요. 복사한 공개 ID(UUID)를 filters.api_key에 넣으면 이 키로 시작한 작업의 차감과 환급을 볼 수 있습니다. 키 원문은 보내지 마세요.

호출 예시

json

{
  "name": "tacu_get_usage",
  "arguments": {
    "filters": {
      "api_key": "bfa8e4f2-d14a-40f4-a537-1415eab2681c",
      "page": "1",
      "page_size": "5"
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "count": 2,
      "next": null,
      "previous": null,
      "results": [
        {
          "model": "Nanobanana2",
          "kind": "image",
          "status": "refunded",
          "credits": -7
        },
        {
          "model": "Nanobanana2",
          "kind": "image",
          "status": "charged",
          "credits": 7
        }
      ]
    }
  }
}

tacu_get_usage_summary

usage:read · 크레딧 차감 없음

GET /v1/public/teams/{team_slug}/usage/summary

filters는 선택입니다. 사용 내역과 같은 날짜·프로젝트·사용자·모델·종류·상태 필터를 쓰며, group_by에는 project, user, model, day 중 최대 두 값을 쉼표로 연결합니다. totals가 전체 합계이고 groups가 그룹별 합계입니다. usd_incomplete가 true이면 일부 달러 금액을 알 수 없습니다.

워크스페이스 사용량에서는 키 이름을 골라 차감·환급을 확인하세요. 팀 관리자는 다른 멤버의 키도 선택할 수 있습니다. 키별 집계 전 내역은 ‘전체 사용량’에서 확인하세요.

호출 예시

json

{
  "name": "tacu_get_usage_summary",
  "arguments": {
    "filters": {
      "api_key": "bfa8e4f2-d14a-40f4-a537-1415eab2681c",
      "group_by": "model"
    }
  }
}

응답 예시

json

{
  "structuredContent": {
    "status": 200,
    "data": {
      "group_by": [
        "model"
      ],
      "totals": {
        "credits": 0,
        "request_count": 1
      },
      "groups": [
        {
          "model": "Nanobanana2",
          "credits": 0
        }
      ]
    }
  }
}

연결 해제와 오류 처리

401이면 로그인이나 키 상태를 확인하세요. 403이면 승인한 권한과 워크스페이스 역할을 확인하세요. 견적이 만료되면 새 견적을 받고, 429이면 Retry-After가 있을 때 그 시간만큼 기다리세요.

Tacu에서 워크스페이스 권한을 승인한 뒤에도 Codex는 자료 준비 같은 도구를 실행하기 전에 별도로 승인을 요청할 수 있습니다. 읽기 전용 실행에서 멈췄다면 codex resume 명령으로 같은 대화를 열고 /permissions에서 ‘Ask for approval’을 선택한 뒤, 이번 요청에 ‘Allow once’를 누르세요.

워크스페이스 설정에서 앱 연결을 해제하거나 API 키를 폐기하면 다음 요청부터 접근이 차단됩니다. 권한을 추가하면서 같은 앱의 연결이 여러 개 생겼다면, 종료할 연결을 각각 해제하세요.