ドキュメントVideo Models
Video
GET /unified-video/models
Fetch runtime video model metadata so the frontend can render only supported fields and options.
GET /unified-video/models権限: api.generate
向いている用途
Frontend teams building model pickers, dynamic forms, and local validation.
Load available models
Render field enums
Hide disabled variants
呼び出し例
ts
const models = await fetch("/unified-video/models", {
credentials: "include"
}).then((resp) => resp.json());What this API is for
Use this endpoint before rendering the video form.
It should be the source of truth for available models, selectable enums, defaults, and restrictions.
Parameters
Auth
Use product session or Authorization: Bearer <midsync_api_key>.
Query
No required query parameters.
Response fields
models
Array of available video models.
modelParams
Field definitions, enums, defaults, and model-specific constraints.
pricingHints
Current pricing hints or pricing examples when available.
Frontend notes
- Load this first.
- Render only supported fields for the selected model.
- If a model is disabled, do not show it in customer-facing UI.
すぐに試したいですか?
Settings で general API key を作成してから、ここに戻ってリクエスト例をコピーしてください。