목록 모델
사용 가능한 모든 모델을 id, 신용 비용 및 매개 변수 스키마로 열거합니다.
GET/api/v1/models
복합 ID, 기본 신용 비용 및 매개 변수 스키마로 사용 가능한 모든 모델을 반환합니다. id는 형태를 가지고 있습니다. <scene>:<model>그리고 당신이 통과하는 것은 model한 세대를 만들 때
프리미엄 모델은 항상 나열되지만 플래그가 지정됩니다. available: false 계정에 활성 구독이 없는 한. 각 항목 params 배열은 에서 허용되는 키를 설명합니다. input object — type, required, enum values and numeric bounds입니다.
일부 옵션은 구독 전용이며 일반적으로 더 높은 해상도와 품질 계층입니다. 각 항목은 파라미의 oneOf 운반 premium 그리고 available 같은 방식으로. 분류: 파라마 플래그 premium: true 구독 없이 기본값에만 남겨둘 수 있습니다. default is what a request that omits the param gets (구원장을 생략하는 요청이 얻는 것이다) 귀하의 계정에 — 구독이 없으면 기본값이 프리미엄 옵션인 파라마가 사용할 수 있는 첫 번째 옵션으로 기본값입니다.
이미지, 비디오 및 오디오 매개 변수도 운반 media그들의 한계를 가진 object: kind, 그들이 목록을 가져 가는지 여부 (multiple) 또는 시작/끝 프레임(frames), maxItems, maxFileSize(바이트), accept(MIME 유형) 및, 비디오 / 오디오, minDuration/ maxDuration/ maxTotalDuration(초); 일부 이미지 입력 추가 minWidth/ minHeight(px) 및 minAspectRatio/ maxAspectRatio(폭 ÷ 높이) — 외부의 이미지는 거부됩니다. invalid_request어떤 일이도 청구되기 전에. 그들의 가치는 URL이어야합니다. POST /api/v1/uploads.
각 동영상에는 media에 지정된 너비, 높이, 화면 비율 및 프레임당 픽셀 수(minPixels / maxPixels, 너비 × 높이) 제한이 적용됩니다. 최솟값과 최댓값도 허용됩니다.
프레임 입력도 노출 media.frameMode: start-only, end-only, both-required, start-required, end-required, 또는 either. 모드 컨트롤 허용 슬롯 및 조합; required전체 입력이 생략될 수 있는지 여부를 제어합니다. 두 슬롯 모두 동일한 미디어 제한을 공유합니다. 프레임 설명자 key매개 변수 이름 또는 다음과 같은 매핑이 될 수 있습니다. "startFrame": "image", "endFrame": "last_frame". 매핑은 제약 조건이 공유 된 한 그룹을 설명합니다. 아래에 두 개의 URL을 제출하십시오. input.image그리고 input.last_frame. 프레임 입력 형식을 참조하십시오.
Models can expose modelVariant: group, value, groupTitle, groupDescription?, title, hint?, label, default? to group versions or input modes within a scene. Each option keeps its own model ID, parameters, and billing. groupTitle and groupDescription describe the model family, title and hint describe the selector field, label names the option, and default marks the initial choice. The built-in UI uses a segmented selector with catalog-defined text. Submit the chosen model ID; the grouping metadata is not a generation parameter. Each mode lists its own endpoint-specific parameter schema; a family's internal options are not exposed as a combined input schema.
첫 번째/라스트 프레임 및 위치 키 프레임 모드 공유 modelVariant그룹화하고 별도의 모델 ID를 가지고 있습니다. A keyframes매개 변수는 다음을 포함합니다. items스키마와 받아들인 1–10 개체 "image_url": "<uploaded URL>", "frame_index": 0. 위치는 0부터까지 24fps 타임라인의 고유한 정수 프레임 인덱스입니다. duration × 24포괄적. 기간이 줄어들면 새 끝 너머의 위치를 업데이트합니다. 모든 이미지는 다른 이미지 입력과 동일한 업로드 및 소유권 규칙을 따릅니다.
A count parameter that shares a total with a media parameter carries sharedLimit: with, total — e.g. Seedream's max_images with "with": "image_input", "total": 15: reference images plus max_images may not exceed 15.
A duration that has to match the attached media carries matchesMediaLength: with, value — e.g. Seedance 2.5's duration with "with": "reference_video_urls", "value": -1: while reference videos are attached, the output is as long as they are. Leave duration out (or send value); any other value is refused with invalid_request. Credits count the videos' length as both the input and the output seconds.
선택적 쿼리: ?mediaType=image|video|audio
curl "https://vidocraft.com/api/v1/models?mediaType=image" \
-H "Authorization: Bearer sk_test_xxxxxxxx"baseCredits매개 변수 승수 및 할증료 전 청구 기반입니다. minCredits가장 낮은 유효한 윤곽을 위한 추정 합계입니다; 당신의 현재 입력을 위한 따옴표가 아닙니다.
응답 발췌 ( models그리고 params선택한 항목만 표시).
{
"count": 25,
"models": [
{
"id": "text-to-image:c9vuwv34uj9w",
"scene": "text-to-image",
"mediaType": "image",
"model": "c9vuwv34uj9w",
"title": "GPT Image 2.5 Flare",
"modelVariant": {
"group": "c9vuwv34uj9w",
"value": "flare",
"groupTitle": "GPT Image 2.5",
"groupDescription": "GPT Image 2.5 generates and edits images with two modes: Flare for everyday creation and fast iteration, and Sunburst for editing precision and detailed control.",
"title": "Mode",
"hint": "Flare prioritizes speed for everyday image creation and quick iterations. Sunburst focuses on editing precision and detailed control.",
"label": "Flare",
"default": true
},
"premium": false,
"available": true,
"baseCredits": 4,
"minCredits": 4,
"params": [
{
"key": "prompt",
"type": "string",
"required": true,
"premium": false,
"maxLength": 20000
},
{
"key": "resolution",
"type": "string",
"required": false,
"premium": false,
"default": "1K",
"oneOf": [
{
"const": "1K",
"title": "1K",
"available": true
},
{
"const": "2K",
"title": "2K",
"premium": true,
"available": false
},
{
"const": "4K",
"title": "4K",
"premium": true,
"available": false
}
]
}
]
}
]
}sharedLimit.totalFrom공유 합계를 다른 매개 변수와 오프셋으로 제한 할 수 있으며 결코 초과하지 않습니다. total. 예를 들어, "field": "duration", "offset": 1결합된 프레임 수를 제한 min(total, duration + 1).