Capped Video

v0.1.2
io.github.bslim1009/capped-video-mcp Checked 4 days ago Published 11 days ago

Video generation (Seedance, Kling, Veo, Wan) via fal/Replicate with hard budget caps

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

generate_video

영상 생성 작업을 만든다. **과금된다.** 사용자가 영상 생성을 요청했을 때만 부른다. 기본값: config.toml 의 defaults (seedance-2.5 / Replicate, 480p, 5초, 16:9). 이미지→영상: image_path 에 첫 프레임으로 쓸 로컬 이미지의 절대 경로(PNG·JPEG·WebP)를 준다. 이때 model 은 이름이 -i2v 로 끝나는 이미지→영상 모델이어야 하며, 생략하면 list_models 의 defaults.image_model 을 쓴다. 대부분의 이미지→영상 모델은 화면 비율이 이미지를 따르므로 aspect_ratio 를 주지 않는다 (list_models…

ParameterTypeDescription
prompt *string
aspect_ratio
duration_sec
forceboolean
image_path
model
reference_audio_paths
reference_dir
reference_image_paths
request_id
resolution

get_video_status

작업 상태를 확인한다. 과금되지 않는다. 완료될 때까지 최대 wait_seconds(상한 60초) 동안 기다린다. status 가 queued/running/downloading 이면 이 도구를 다시 부른다. succeeded 이면 file 에 저장된 영상 경로가 있다.

ParameterTypeDescription
job_id *string
wait_secondsinteger

download_video

내려받지 못한(lost) 작업의 다운로드를 다시 시도하거나, 완료된 파일 경로를 돌려준다. 과금되지 않는다. 보통은 서버가 자동으로 내려받으므로 부를 필요가 없다. URL 이나 경로는 받지 않는다.

ParameterTypeDescription
job_id *string
wait_secondsinteger

get_usage

오늘·이번 달 생성 횟수와 예상 비용, 상한, 진행 중인 작업 수를 돌려준다.

preview_video

완성된 영상의 프레임 여러 장을 한 이미지로 붙여 돌려준다. 과금되지 않는다. 영상을 직접 볼 수 없으니 이 이미지로 결과가 요청과 맞는지 확인한다. 왼쪽 위부터 오른쪽 아래로 시간 순서다. succeeded 상태에서만 만들 수 있다. ffmpeg 가 없으면 preview_available=false 와 이유를 돌려준다.

ParameterTypeDescription
job_id *string

estimate_video

과금 없이 비용을 견적한다. 조건(길이·해상도·화면 비율)에 맞는 모델을 싼 순서로, 남은 예산과 함께 돌려준다. generate_video 를 부르기 전에 모델을 고르거나 예산이 충분한지 볼 때 쓴다. cheapest 는 예산 안에서 가장 싼 모델. 조건을 지정하지 않으면 모델별 가장 싼 값을 가정한다. 조건을 만족하지 못하는 모델은 unavailable 에 이유와 함께 나온다. prompt 를 주면 같은 요청이 최근에 있었는지(duplicate_of)도 알려 준다. 입력 종류가 같은 모델끼리 비교한ë‹…

ParameterTypeDescription
aspect_ratio
duration_sec
image_path
model
prompt
reference_audio_paths
reference_dir
reference_image_paths
resolution

list_models

사용할 수 있는 모델, 해상도별 초당 가격(USD), 길이 범위, 기본값을 돌려준다. input 이 image 인 모델은 이미지→영상 모델이며 generate_video 에 image_path 가 필요하다. input 이 reference 인 모델은 참조→영상 모델이며 참조 이미지(reference_image_paths 또는 reference_dir)가 필요하다.