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
- Create the provider or self-hosted model account in the TrueFoundry dashboard.
- Add the video model to the account.
- Make sure the caller has permission to use the provider account and model.
- Replace
{GATEWAY_BASE_URL}andyour-truefoundry-api-keyin 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 amodel field in the JSON body.
Submit a video-generation request
The request body uses the native Vertex AI or Gemini shape:Vertex AI
Gemini
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 inx-tfy-model-name when the follow-up URL does not identify the model.
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 inx-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.Poll and retrieve video content
Use the native ComfyUI paths and include the same model header:/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-nameto resolve the registered model.