Skip to main content
API Reference: POST /videos-proxy/{providerAccountName}/{nativePath}

Provider capabilities

The table below summarizes gateway support for video generation by provider.
Legend:
  • Supported by provider and TrueFoundry
  • Provided by provider, but not supported by TrueFoundry
  • Provider does not support this feature

Supported providers

The Video Generation API is a provider-native blind proxy. The AI Gateway forwards the request path and body to the provider without translating the request to an OpenAI /videos schema. Gateway endpoint: {GATEWAY_BASE_URL}/videos-proxy/{providerAccountName}/...

Before you start

  1. Create the provider or self-hosted model account in the TrueFoundry dashboard.
  2. Add the video model to the account.
  3. Make sure the caller has permission to use the provider account and model.
  4. Replace {GATEWAY_BASE_URL} and your-truefoundry-api-key in the examples.
The gateway forwards the provider’s native request and response format. It does not convert requests to the OpenAI video API format.

Google Vertex AI and Google Gemini

For POST submissions, use the provider’s official native video-generation URL after the gateway provider-account path. The model ID is part of that URL, not a model field in the JSON body.

Submit a video-generation request

The request body uses the native Vertex AI or Gemini shape:
Vertex AI
Gemini
The provider returns its native long-running operation response. Use the operation path from that response for subsequent polling requests.

Poll or download the result

For a follow-up request, use the exact native method, path, and body required by the provider. Include the full TrueFoundry model name in x-tfy-model-name when the follow-up URL does not identify the model.
Use the native path and method required by the provider for polling or retrieving video content. The gateway returns the provider response without transforming it.

Self-hosted ComfyUI

Register the self-hosted model with ComfyUI as its model server type and provide the ComfyUI server URL. ComfyUI requests require the full TrueFoundry model name in x-tfy-model-name because native ComfyUI paths such as /prompt, /history/{prompt_id}, and /view do not contain a model ID.

Submit a ComfyUI workflow

Send the exact request body expected by your ComfyUI server. The gateway does not build, validate, or rewrite the workflow graph.
The request body and response are passed through in their native ComfyUI format. ComfyUI requests are not cost-tracked or budgeted by the AI Gateway.

Poll and retrieve video content

Use the native ComfyUI paths and include the same model header:
When the ComfyUI history response identifies an output file, request it through the native /view path:

Request and response handling

  • The gateway preserves the provider-native URL suffix, request body, status code, and response body.
  • Video responses are returned as streams; the gateway does not parse or buffer large video payloads.
  • Vertex AI and Gemini POST submissions use the model ID in the native URL.
  • Vertex AI, Gemini, and ComfyUI polling or content-download requests use x-tfy-model-name to resolve the registered model.