Files
bowtiedbluefin-ComfyUI-AI-C…/utils
bowtiedbluefin 88fb7142c4 Fix OpenAI video API to use correct endpoint and multipart/form-data
BREAKING FIX: Corrected to match official OpenAI API documentation
- Changed endpoint to /v1/videos (was incorrectly /v1/videos/generations)
- Changed from JSON POST to multipart/form-data POST (OpenAI requirement)
- Fixed image-to-video parameter: 'image' (was incorrectly 'input_reference')
- Updated API client to use requests 'files' parameter for form fields
- Removed incorrect Content-Type header to allow proper boundary setting

Reference: https://platform.openai.com/docs/api-reference/videos/create
2025-11-08 02:12:21 -05:00
..