参数
prompt必填类型
text
取值
text description
默认值
required
价格
—
Seedance 2.0 Face — 暂时不可用。
seedance-2.0-face:whiteSeedance 2.0 Face — 暂时不可用。
生成是异步的:先创建任务,然后轮询状态直至完成。
在 Bearer 请求头中传递密钥。API 会返回 jobId 用于轮询状态。
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"seedance-2.0-face:white","prompt":"a beautiful landscape","opts":{"duration":"5","resolution":"480P"}}'const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "seedance-2.0-face:white",
"prompt": "a beautiful landscape",
"opts": {
"duration": "5",
"resolution": "480P"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);通过 GetVibe API 向 Seedance 2.0 Face 发起请求的参数。
prompt必填image_urlvideo_urldurationresolutionimage_file_idimage_base64video_file_idvideo_base64| 参数 | 类型 | 取值 | 默认值 | 价格 |
|---|---|---|---|---|
prompt必填 | text | text description | required | — |
image_url | URL | Public image URL | — | — |
video_url | URL | Public video URL | — | — |
duration | option selection | 5 (default) | 5 | Included in the base price |
resolution | option selection | 480P (default) · 720P · 1080P | 480P | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
video_file_id | text | Alternative to video_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
video_base64 | text | Alternative to video_url: the file inline, as base64 or a data: URI | — | Included in the base price |
请求:POST https://getvibeapi.com/api/media/generate。价格以 USD 计。
Seedance 2.0 Face 的价格待确认:供应商尚未发布该契约的初步确认价格。价格确认后即可生成。
Seedance 2.0 Face 的机器可读契约包含请求 schema、操作、限制、轮询和响应示例。
# Seedance 2.0 Face
公开模型:seedance-2.0-face:white
创建任务: POST /api/media/generate
检查状态: GET /api/media/jobs/{jobId}
## 输入参数
- `prompt` (text): text description; 默认: required
- `image_url` (URL): Public image URL; 默认: —
- `video_url` (URL): Public video URL; 默认: —
- `duration` (option selection): 5 (default); 默认: 5
- `resolution` (option selection): 480P (default) · 720P · 1080P; 默认: 480P
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); 默认: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; 默认: —
- `video_file_id` (text): Alternative to video_url: the id of your own file from POST /v1/files (file-pv-…); 默认: —
- `video_base64` (text): Alternative to video_url: the file inline, as base64 or a data: URI; 默认: —
## 公开变体
- `seedance-2.0-face:white`: 默认Seedance 2.0 Face 的价格:按需。价格按当前汇率动态计算。
是的,API 完全兼容 OpenAI。只需将 base_url 改为 https://getvibeapi.com/v1 并设置密钥——其余代码不变。