Felo API PlatformFelo API Platform
v0.3.0
OpenAPI 3.1.0

Download a generated media file (anonymous)

服务器:https://openapi.felo.ai
客户端库

Download a generated media file (anonymous)

​

Streams the generated video (or image) file. This endpoint is anonymous: authentication is the HMAC signature in the URL. Always use the full URL returned in the task outputs array; do not construct exp/sig yourself. Supports Range requests for resume. Media is removed or invalidated when the signature or upstream TTL expires.

路径参数
  • file_id
    类型: string 格式: uuid
    必填

    Signed file id from a task output URL.

查询参数
  • exp
    类型: integer 格式: int64
    必填

    Signature expiry (unix seconds), from the output URL.

  • sig
    类型: string
    必填

    HMAC signature, from the output URL.

响应
  • 200
    类型: string 格式: binary

    Media file

  • 400
    类型: object · GenerationError

    Invalid request (e.g. arbitrary ?url= is not allowed)

    OpenAI-compatible error envelope.

    • error
      类型: object
      • message
        类型: string
        必填
      • type
        类型: string 枚举
        必填
        值
        • invalid_request_error
        • server_error
      • code
        类型: string
      • param
        类型: string 可为 null
    application/json
  • 403
    类型: object · GenerationError

    Invalid or expired signature

    OpenAI-compatible error envelope.

    • error
      类型: object
      • message
        类型: string
        必填
      • type
        类型: string 枚举
        必填
        值
        • invalid_request_error
        • server_error
      • code
        类型: string
      • param
        类型: string 可为 null
    application/json
  • 404
    类型: object · GenerationError

    Unknown media file

    OpenAI-compatible error envelope.

    • error
      类型: object
      • message
        类型: string
        必填
      • type
        类型: string 枚举
        必填
        值
        • invalid_request_error
        • server_error
      • code
        类型: string
      • param
        类型: string 可为 null
    application/json
  • 410
    类型: object · GenerationError

    Media has expired or upstream no longer available

    OpenAI-compatible error envelope.

    • error
      类型: object
      • message
        类型: string
        必填
      • type
        类型: string 枚举
        必填
        值
        • invalid_request_error
        • server_error
      • code
        类型: string
      • param
        类型: string 可为 null
    application/json
  • 429
    类型: object · GenerationError

    Rate limited for this file

    OpenAI-compatible error envelope.

    • error
      类型: object
      • message
        类型: string
        必填
      • type
        类型: string 枚举
        必填
        值
        • invalid_request_error
        • server_error
      • code
        类型: string
      • param
        类型: string 可为 null
    application/json
  • 502
    类型: object · GenerationError

    Upstream media fetch failed

    OpenAI-compatible error envelope.

    • error
      类型: object
      • message
        类型: string
        必填
      • type
        类型: string 枚举
        必填
        值
        • invalid_request_error
        • server_error
      • code
        类型: string
      • param
        类型: string 可为 null
    application/json
Request Example for get/api/v1/media/{file_id}
curl 'https://openapi.felo.ai/api/v1/media/123e4567-e89b-12d3-a456-426614174000?exp=1&sig='
@filename
Download a generated media file (anonymous)