API reference

Upload a multimodal input file

POST/v1/video-inputs

Accepts one multipart file part only. Supports MP4 (up to 512 MiB), WAV/MP3 (up to 15 MiB and 30 seconds), and PDF (up to 100 MiB), subject to current file quotas. Returns file_id without starting generation or charging model usage.

Authentication and permissions

Use your current GloopAPI key. Available models, capabilities and permissions depend on its catalog and the endpoint documentation.

Authorization: Bearer $GLOOP_API_KEY

Authentication schemes: BearerAuth

Request

Request headers

  • Idempotency-KeystringRequired
    Minimum length
    1
    Maximum length
    128
    Pattern
    "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"

Request body · multipart/form-data

Type
object
Required fields
file
Additional properties
false

Request body required

  • filestringRequired

    The only file part; extra form fields are not accepted.

    Format
    "binary"

Responses and errors

HTTP 200

File uploaded successfully

application/json

Type
object
Required fields
file_idstatuscontent_typesize_bytes
Additional properties
false
  • file_idstringRequired
  • statusstringRequired
    Enum
    ["ready"]
  • content_typestringRequired
    Enum
    ["video/mp4","audio/wav","audio/mpeg","application/pdf"]
  • size_bytesintegerRequired
    Minimum
    1
    Maximum
    536870912

HTTP 400

Invalid request fields or parameters.

application/json

Type
object
Required fields
error

HTTP 401

The key is missing, invalid, expired, or revoked.

application/json

Type
object
Required fields
error

HTTP 403

Insufficient IP, account, model, or tool permissions.

application/json

Type
object
Required fields
error

HTTP 404

Object/capability unavailable, or feature switch disabled.

application/json

Type
object
Required fields
error

HTTP 409

Idempotency/quote conflict, object not ready, or still referenced.

application/json

Type
object
Required fields
error

HTTP 429

Request/queue rate limit.

application/json

Type
object
Required fields
error

HTTP 500

Internal authentication or data storage failure.

application/json

Type
object
Required fields
error

HTTP 503

Service, pricing, or storage unavailable.

application/json

Type
object
Required fields
error