API 문서

Shotstack v1 Edit API 완벽 호환. 엔드포인트 URL과 API 키만 교체하면 됩니다.

Base URL

https://api.cutengine.dev

인증

모든 요청에 x-api-key 헤더를 포함해야 합니다. API 키는 대시보드에서 발급받을 수 있습니다.

# 모든 요청에 x-api-key 헤더 필요
curl -H "x-api-key: ce_live_your_key_here" \
  https://api.cutengine.dev/health

엔드포인트

POST/edit/v1/render
GET/edit/v1/render/:id
GET/serve/v1/assets/:id
POST/edit/v1/templates
POST/edit/v1/templates/:id/render
GET/health

빠른 시작: 비디오 렌더링

1. 렌더 요청

curl -X POST https://api.cutengine.dev/edit/v1/render \
  -H "x-api-key: ce_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "timeline": {
      "background": "#000000",
      "tracks": [{
        "clips": [{
          "asset": {
            "type": "image",
            "src": "https://example.com/photo.jpg"
          },
          "start": 0,
          "length": 5,
          "effect": "zoomIn",
          "transition": { "in": "fade" }
        }]
      }]
    },
    "output": {
      "format": "mp4",
      "resolution": "hd",
      "aspectRatio": "16:9"
    }
  }'

# 응답: { "success": true, "response": { "id": "render_abc123", "status": "queued" } }

2. 상태 조회

curl https://api.cutengine.dev/edit/v1/render/render_abc123 \
  -H "x-api-key: ce_live_your_key_here"

# 완료 시: { "response": { "status": "done", "url": "https://..." } }

지원 포맷

출력 형식

mp4, gif, jpg, png, bmp, mp3

해상도

preview, mobile, sd, hd, 1080, 4k

화면 비율

16:9, 9:16, 1:1, 4:5, 4:3