Model API'si

Wan VACE 14B

Wan VACE 14B, kaynak videonun kadrajını isteğe bağlı bir tarifle yeniden düzenler.

Model kimliği

Her istekte bunu kullan
wan-vace-14b/reframe

Çalıştır

Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-vace-14b/reframe",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light",
    "video_url": "https://example.com/input.mp4"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "wan-vace-14b/reframe", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light","video_url":"https://example.com/input.mp4"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Girdi

wan-vace-14b/reframe girdi alanları
AlanTürAçıklama
promptstring
The text prompt to guide video generation. Optional for reframing.
negative_promptstring
Negative prompt for video generation.

Varsayılan: letterboxing, borders, black bars, bright colors, overexposed, static, blurred details, subtitles, style, artwork, painting, picture, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still picture, cluttered background, three legs, many people in the background, walking backwards

match_input_num_framesboolean
If true, the number of frames in the generated video will match the number of frames in the input video. If false, the number of frames will be determined by the num_frames parameter.

Varsayılan: false

num_framesinteger
Number of frames to generate. Must be between 81 to 241 (inclusive).

Varsayılan: 81

match_input_frames_per_secondboolean
If true, the frames per second of the generated video will match the input video. If false, the frames per second will be determined by the frames_per_second parameter.

Varsayılan: false

frames_per_secondinteger
Frames per second of the generated video. Must be between 5 to 30. Ignored if match_input_frames_per_second is true.

Varsayılan: 16

seedinteger
Random seed for reproducibility. If None, a random seed is chosen.
resolutionstring (enum)
Resolution of the generated video.

Varsayılan: 480p

Seçenekler: 480p, 580p, 720p

aspect_ratiostring (enum)
Aspect ratio of the generated video.

Varsayılan: auto

Seçenekler: auto, 16:9, 1:1, 9:16

num_inference_stepsinteger
Number of inference steps for sampling. Higher values give better quality but take longer.

Varsayılan: 30

guidance_scalenumber
Guidance scale for classifier-free guidance. Higher values encourage the model to generate images closely related to the text prompt.

Varsayılan: 5

samplerstring (enum)
Sampler to use for video generation.

Varsayılan: unipc

Seçenekler: unipc, dpm++, euler

shiftnumber
Shift parameter for video generation.

Varsayılan: 5

video_urlzorunlustring (URL)
URL to the source video file. This video will be used as a reference for the reframe task.
first_frame_urlstring (image URL)
URL to the first frame of the video. If provided, the model will use this frame as a reference.
last_frame_urlstring (image URL)
URL to the last frame of the video. If provided, the model will use this frame as a reference.
enable_prompt_expansionboolean
Whether to enable prompt expansion.

Varsayılan: false

accelerationstring (enum)
Acceleration to use for inference. Options are 'none' or 'regular'. Accelerated inference will very slightly affect output, but will be significantly faster.

Varsayılan: regular

Seçenekler: none, low, regular

video_qualitystring (enum)
The quality of the generated video.

Varsayılan: high

Seçenekler: low, medium, high, maximum

video_write_modestring (enum)
The write mode of the generated video.

Varsayılan: balanced

Seçenekler: fast, balanced, small

num_interpolated_framesinteger
Number of frames to interpolate between the original frames. A value of 0 means no interpolation.

Varsayılan: 0

temporal_downsample_factorinteger
Temporal downsample factor for the video. This is an integer value that determines how many frames to skip in the video. A value of 0 means no downsampling. For each downsample factor, one upsample factor will automatically be applied.

Varsayılan: 0

enable_auto_downsampleboolean
If true, the model will automatically temporally downsample the video to an appropriate frame length for the model, then will interpolate it back to the original frame length.

Varsayılan: false

auto_downsample_min_fpsnumber
The minimum frames per second to downsample the video to. This is used to help determine the auto downsample factor to try and find the lowest detail-preserving downsample factor. The default value is appropriate for most videos, if you are using a video with very fast motion, you may need to increase this value. If your video has a very low amount of motion, you could decrease this value to allow for higher downsampling and thus longer sequences.

Varsayılan: 15

interpolator_modelstring (enum)
The model to use for frame interpolation. Options are 'rife' or 'film'.

Varsayılan: film

Seçenekler: rife, film

sync_modeboolean
If `True`, the media will be returned as a data URI and the output data won't be available in the request history.

Varsayılan: false

transparency_modestring (enum)
The transparency mode to apply to the first and last frames. This controls how the transparent areas of the first and last frames are filled.

Varsayılan: content_aware

Seçenekler: content_aware, white, black

return_frames_zipboolean
If true, also return a ZIP file containing all generated frames.

Varsayılan: false

zoom_factornumber
Zoom factor for the video. When this value is greater than 0, the video will be zoomed in by this factor (in relation to the canvas size,) cutting off the edges of the video. A value of 0 means no zoom.

Varsayılan: 0

trim_bordersboolean
Whether to trim borders from the video.

Varsayılan: true

Çıktı

Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.

İş yanıtından bir bölüm
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Fiyatlandırma

  • saniye başına$0,1268/ saniye

Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?