WaveSpeedAI

OpenCode에서 WaveSpeed 스킬로 이미지와 비디오 생성하기

OpenCode는 .claude/skills에서 스킬을 불러오며, 이는 wavespeed skill install이 파일을 설치하는 바로 그 위치입니다. 명령어 하나면 에이전트가 모델 카탈로그를 검색하고, 입력 스키마를 읽고, 이미지·비디오·오디오·3D 모델을 무엇이든 실행할 수 있습니다.

By WaveSpeedAI3 min read
OpenCode에서 WaveSpeed 스킬로 이미지와 비디오 생성하기

OpenCode는 여러 디렉터리에서 에이전트 스킬을 찾으며, .claude/skills도 그 목록에 포함됩니다. 프로젝트 로컬과 글로벌 모두 해당합니다. wavespeed CLI가 이미 그 위치에 스킬을 설치하므로, WaveSpeed 설정은 명령어 한 줄로 끝납니다.

npm install -g @wavespeed/cli
wavespeed login            # opens the key page at wavespeed.ai, validates the paste
wavespeed skill install    # writes .claude/skills/wavespeed/SKILL.md and .agents/skills/wavespeed/SKILL.md

npm으로 설치하려면 CLI에 Node.js 18 이상이 필요합니다. 생성을 시작하기 전에 OpenCode가 사용하는 셸에서 node --version, wavespeed --version, wavespeed status를 확인하세요. 스킬은 에이전트에게 CLI 사용법을 알려줄 뿐입니다. 에이전트가 지침을 불러오고 명령어를 실행할 수 있는지는 여전히 OpenCode의 스킬 및 셸 권한이 결정합니다.

플러그인도, MCP 서버도, OpenCode 전용 패키징도 필요 없습니다. 이 스킬은 Claude Code, Cursor, Codex에서 쓰는 파일과 같은 파일입니다.

에이전트가 하는 일

wavespeed.ai의 모든 모델은 wavespeed run <model-id> 명령어 하나로 실행할 수 있습니다. 스킬은 찾기 → 확인 → 실행 순서의 패턴을 가르쳐 줍니다.

# 1. FIND a model in the live catalog
wavespeed models "seedream"
wavespeed models --type image-to-video --popular

# 2. INSPECT each model's current input schema
wavespeed run bytedance/seedream-v5.0-pro -h
wavespeed run bytedance/seedance-2.5/image-to-video -h

# 3. GENERATE an image and save it locally
wavespeed run bytedance/seedream-v5.0-pro \
  -p "a cyberpunk skyline at golden hour" \
  -i aspect_ratio="16:9" -i resolution="2k" -i output_format=png \
  --json --download ./hero.png
test -s ./hero.png

이 순서는 중요합니다. 파라미터 이름을 추측하는 에이전트는 잘못된 입력을 제출할 수 있기 때문에, 스킬은 현재 스키마 확인을 작업 흐름의 일부로 포함합니다. 이미지 명령이 saved 필드에 ./hero.png를 보고하고 파일 확인이 성공한 경우에만 다음 단계로 진행하세요.

로컬 파일은 @path 마커로 전달합니다. 한 번에 업로드되어 호스팅된 URL로 대체됩니다.

# Edit a local image
wavespeed run bytedance/seedream-v5.0-pro/edit \
  -p "replace the background with a sunlit kitchen" \
  -i images='["@./input.jpg"]' --json

# Animate the image generated above and save the video
wavespeed run bytedance/seedance-2.5/image-to-video \
  -p "subtle parallax, gentle wind" \
  -i image=@./hero.png -i resolution=720p -i duration=5 -i output_format=mp4 \
  --json --download ./hero.mp4
test -s ./hero.mp4

시도할 때마다 새 출력 파일 이름을 사용하세요. JSON 결과는 outputs에 원격 URL을, saved에 다운로드된 파일을 알려줍니다. 생성이 완료되었다고 해서 로컬 다운로드까지 성공했다는 뜻은 아닙니다.

비용 관리

실행하기 전에 의도한 입력으로 두 단계의 견적을 모두 확인하세요.

wavespeed price bytedance/seedream-v5.0-pro \
  -i aspect_ratio="16:9" -i resolution="2k" -i output_format=png --json

wavespeed price bytedance/seedance-2.5/image-to-video \
  -i image=@./hero.png -i resolution=720p -i duration=5 -i output_format=mp4 \
  --upload --json

wavespeed balance

많은 모델이 입력값을 기준으로 요금을 청구합니다. 예를 들어 오디오 길이나 프레임 수가 그렇습니다. 요금에 반영되는 입력을 빠뜨리고 견적을 내면 실제보다 낮게 나올 수 있습니다. 여기서 --upload를 쓰면 비디오 견적이 로컬 이미지를 확인할 수 있습니다. 업로드 할당량은 사용하지만 생성 작업을 제출하지는 않습니다. 실행 시 실제로 청구되는 금액이 최종 기준입니다.

주의할 점

  • 경로만 쓰면 업로드되지 않습니다. -i image=./photo.jpg는 문자열 그대로 전송됩니다. @./photo.jpg를 사용하세요.
  • 모델 ID를 지어내지 마세요. 먼저 wavespeed models 또는 wavespeed schema <id>로 확인하세요.
  • 실행 시 --json을 사용하세요. 그래야 에이전트가 outputs[0]을 읽을 수 있습니다. 로컬 파일을 사용하기 전에는 saved를 확인하세요.
  • 연결이 끊겼다고 해서 작업이 실패했다는 증거는 아닙니다. 오류에 prediction ID가 포함되어 있다면 wavespeed show <id>로 확인하세요. 그렇지 않다면 같은 유료 작업을 다시 제출하기 전에 wavespeed history를 확인하세요.
  • 프로젝트 기본값과 별칭은 wavespeed.json에 저장됩니다(wavespeed init이 파일을 생성합니다).

관련 링크

자주 묻는 질문

Why is there no OpenCode-specific package?

OpenCode's skill search path includes .claude/skills (project and global), which is exactly where `wavespeed skill install` writes. The same file serves Claude Code, Cursor, Codex, and OpenCode with zero adaptation.

Which models can the agent use?

The full live WaveSpeed catalog — image, video, audio, and 3D. The skill teaches the agent to search it with `wavespeed models`, so newly released models work without a skill update.

Project-level or global install?

Run `wavespeed skill install` inside a project to check the skill into git for your team, or copy the same directory to ~/.claude/skills to have it in every project.

Can I control spend?

Yes — `wavespeed price <model-id> -i key=value` quotes a run before executing it, and `wavespeed balance` shows account credit.

공유