モデルを一覧表示
利用可能なすべてのモデルを、ID、クレジットコスト、およびパラメータスキーマで列挙します。
GET/api/v1/models
利用可能なすべてのモデルを、コンポジットID、基本クレジットコスト、およびパラメータスキーマで返します。 IDにはフォームがあります <scene>:<model>そして、あなたが通るものは model世代を作るとき。
プレミアムモデルは常に一覧表示されますが、フラグが付けられています available: false アカウントに有効なサブスクリプションがない限り。 各エントリ params 配列は、以下のキーで受け入れられた鍵を記述します input オブジェクト — 型、必須、列挙型、および数値バインド。
一部のオプションはサブスクリプション制であり、通常はより高い解像度と高品質なレベルです。各エントリーはパラムに登場し、 oneOf 携帯 premium そして available 同じ方法。 パラムが警告を発した premium: true サブスクリプションなしでのみ、デフォルトで残される。 default パラメータを省略したリクエストは、どのようなものになりますか アカウントで — サブスクリプションなしでは、プレミアムオプションのデフォルトがデフォルトで最初に使用できるオプションになります。
画像、動画、音声のパラメーターも搭載されています media制限を持つオブジェクト: kindリストを取るかどうか(multiple)またはスタート/エンドフレーム()frames) maxItems, maxFileSize(バイト)、 accept(MIMEタイプ)およびビデオ/オーディオ用 minDuration/ maxDuration/ maxTotalDuration(秒);いくつかの画像入力が追加されます minWidth/ minHeight(px) および minAspectRatio/ maxAspectRatio(幅 ÷ 高さ)— 外側の画像は拒否される invalid_request何事も請求される前に。 それらの値は、URLからのURLである必要があります POST /api/v1/uploads.
動画ファイルごとに、media で指定された幅、高さ、縦横比、フレームあたりの画素数(minPixels / maxPixels、幅 × 高さ)を確認します。上下限の値は許容範囲に含まれます。
Frame inputs also expose media.frameMode: start-only, end-only, both-required, start-required, end-required, or either. The mode controls allowed slots and combinations; required controls whether the whole input may be omitted. Both slots share the same media limits. A frame descriptor’s key can be a parameter name or a mapping such as "startFrame": "image", "endFrame": "last_frame". The mapping describes one group with shared constraints; submit its two URLs under input.image and input.last_frame. See frame input formats.
モデルが公開できる modelVariant: group, value, groupTitle, groupDescription?, title, hint?, label, default? シーン内のバージョンや入力モードをグループ化する。 各オプションは、独自のモデルID、パラメータ、および請求を保持します。 groupTitleそして groupDescriptionモデルファミリーを記述します。 titleそして hintセレクターフィールドを記述します。 labelオプションの名前を表示し、 default初期選択をマークします。 内蔵UIは、カタログ定義テキストを含むセグメント化されたセレクターを使用します。 選択したモデルIDを送信してください。グループ化メタデータは世代間パラメータではありません。 各モードには独自のエンドポイント固有のパラメータスキーマが一覧されています。内部オプションは統合入力スキーマとして公開されません。
First/last-frame and positioned-keyframe modes share a modelVariant group and have separate model IDs. A keyframes parameter includes an items schema and accepts 1–10 objects shaped as "image_url": "<uploaded URL>", "frame_index": 0. Positions are unique integer frame indices on a 24 fps timeline, from 0 through duration × 24 inclusive. If duration is reduced, update any positions beyond the new end. Every image follows the same upload and ownership rules as other image inputs.
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).