Add text-video-agent Rust SDK and update OpenAPI documentation
This commit is contained in:
102
cargos/text-video-agent-rust-sdk/docs/Class302aiVeoApi.md
Normal file
102
cargos/text-video-agent-rust-sdk/docs/Class302aiVeoApi.md
Normal file
@@ -0,0 +1,102 @@
|
||||
# \Class302aiVeoApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**get_task_status_api302_veo_video_task_task_id_get**](Class302aiVeoApi.md#get_task_status_api302_veo_video_task_task_id_get) | **GET** /api/302/veo/video/task/{task_id} | 异步: 获取任务执行状态
|
||||
[**submit_iv_submit_api302_veo_video_async_submit_post**](Class302aiVeoApi.md#submit_iv_submit_api302_veo_video_async_submit_post) | **POST** /api/302/veo/video/async/submit | 异步:text-->video or text + img --> video
|
||||
[**sync_img2video_api302_veo_video_sync_generate_video_post**](Class302aiVeoApi.md#sync_img2video_api302_veo_video_sync_generate_video_post) | **POST** /api/302/veo/video/sync/generate/video | 同步: 生成视频【文本+图片 OR 文生成视频】
|
||||
|
||||
|
||||
|
||||
## get_task_status_api302_veo_video_task_task_id_get
|
||||
|
||||
> serde_json::Value get_task_status_api302_veo_video_task_task_id_get(task_id, img_mode)
|
||||
异步: 获取任务执行状态
|
||||
|
||||
Args: task_id: 任务id img_mode: True:图文到视频 False 文生视频 Returns:
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**task_id** | **String** | | [required] |
|
||||
**img_mode** | Option<**bool**> | | |[default to false]
|
||||
|
||||
### Return type
|
||||
|
||||
[**serde_json::Value**](serde_json::Value.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## submit_iv_submit_api302_veo_video_async_submit_post
|
||||
|
||||
> serde_json::Value submit_iv_submit_api302_veo_video_async_submit_post(prompt, img_file)
|
||||
异步:text-->video or text + img --> video
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**prompt** | **String** | 生成视频的提示词 | [required] |
|
||||
**img_file** | Option<**std::path::PathBuf**> | | |
|
||||
|
||||
### Return type
|
||||
|
||||
[**serde_json::Value**](serde_json::Value.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## sync_img2video_api302_veo_video_sync_generate_video_post
|
||||
|
||||
> serde_json::Value sync_img2video_api302_veo_video_sync_generate_video_post(prompt, img_file, max_wait_time, interval)
|
||||
同步: 生成视频【文本+图片 OR 文生成视频】
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**prompt** | **String** | 生成视频的提示词 | [required] |
|
||||
**img_file** | Option<**std::path::PathBuf**> | | |
|
||||
**max_wait_time** | Option<**i32**> | 最大等待时间,单位秒 | |[default to 500]
|
||||
**interval** | Option<**i32**> | 轮询间隔,单位秒 | |[default to 5]
|
||||
|
||||
### Return type
|
||||
|
||||
[**serde_json::Value**](serde_json::Value.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: multipart/form-data
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
Reference in New Issue
Block a user