API リファレンス
マルチモーダル入力ファイルをアップロード
POST
/v1/video-inputsmultipart の file パートを 1 つだけ受け付けます。MP4(最大 512 MiB)、WAV/MP3(最大 15 MiB、30 秒)、PDF(最大 100 MiB)に対応し、現在のファイル容量制限が適用されます。生成やモデル利用料金の課金を開始せず、file_id を返します。
認証と権限
現在の GloopAPI キーを使用します。利用可能なモデル、機能、権限は、そのカタログとエンドポイントのドキュメントによって異なります。
Authorization: Bearer $GLOOP_API_KEY認証スキーム: BearerAuth
リクエスト
リクエストヘッダー
Idempotency-Keystring必須- 最小長さ
1- 最大長さ
128- パターン
"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
リクエストボディ · multipart/form-data
- タイプ
- object
- 必須フィールド 説明
file- 追加のプロパティ
- false
リクエスト本文が必要です
filestring必須ファイルパートは 1 つのみ。追加のフォーム項目は受け付けません。
- 形式
"binary"
応答とエラー
HTTP 200
ファイルのアップロードが完了しました
application/json
- タイプ
- object
- 必須フィールド 説明
file_idstatuscontent_typesize_bytes- 追加のプロパティ
- false
file_idstring必須statusstring必須- 列挙型
["ready"]
content_typestring必須- 列挙型
["video/mp4","audio/wav","audio/mpeg","application/pdf"]
size_bytesinteger必須- 最小値
1- 最大値
536870912
HTTP 400
リクエストフィールドまたはパラメータが無効です。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 401
キーが見つからないか、無効であるか、期限切れであるか、取り消されています。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 403
IP、アカウント、モデル、またはツールの権限が不十分です。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 404
オブジェクト/機能が利用できないか、機能スイッチが無効になっています。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 409
べき等/見積もりの競合、オブジェクトの準備ができていないか、まだ参照されています。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 429
リクエスト/キューのレート制限。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 500
内部認証またはデータ ストレージのエラー。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション
HTTP 503
サービス、価格設定、またはストレージが利用できません。
application/json
- タイプ
- object
- 必須フィールド 説明
error
errorobject必須error 子フィールド (4)
codestringオプションmessagestringオプションtypestringオプションrequest_idstringオプション