Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ curl -L http://localhost:8000/v1/videos/<video_id>/content \
| `size` | 支持 `720x1280`, `1280x720`, `1024x1024`, `1024x1792`, `1792x1024` |
| `resolution_name` | `480p` 或 `720p` |
| `preset` | `fun`, `normal`, `spicy`, `custom` |
| `input_reference[]` | 可选图生视频参考图,multipart 文件字段;最多使用前 5 张 |
| `input_reference[]` | 可选图生视频参考图,multipart 文件字段;最多使用前 7 张 |
| `video_id` | `POST /v1/videos` 返回的视频任务 ID,用于查询任务或下载成片 |

<br>
Expand Down
2 changes: 1 addition & 1 deletion app/products/openai/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ async def videos_create(
if input_reference:
references_payload = [
{"image_url": await _upload_to_data_uri(f, param="input_reference")}
for f in input_reference[:5]
for f in input_reference[:7]
]

result = await create_video(
Expand Down
2 changes: 1 addition & 1 deletion app/products/openai/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ def _extract_video_prompt_and_reference(

input_references: list[dict[str, Any]] | None = None
if reference_urls:
input_references = [{"image_url": url} for url in reference_urls[:5]]
input_references = [{"image_url": url} for url in reference_urls[:7]]
return prompt, input_references


Expand Down
2 changes: 1 addition & 1 deletion docs/README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ curl -L http://localhost:8000/v1/videos/<video_id>/content \
| `size` | Supports `720x1280`, `1280x720`, `1024x1024`, `1024x1792`, `1792x1024` |
| `resolution_name` | `480p` or `720p` |
| `preset` | `fun`, `normal`, `spicy`, `custom` |
| `input_reference[]` | Optional image-to-video reference multipart file field; at most the first 5 images are used |
| `input_reference[]` | Optional image-to-video reference multipart file field; at most the first 7 images are used |
| `video_id` | Video job ID returned by `POST /v1/videos`; used to retrieve the job or download the final video |

<br>
Expand Down
Loading