# OpenAPI\Client\AiApi | Method | HTTP request | Description | | ------------- | ------------- | ------------- | | [**chat()**](AiApi.md#chat) | **POST** /v1/ai/chat | 元梦ai-对话 | | [**extractContent()**](AiApi.md#extractContent) | **POST** /v1/ai/extractContent | 元梦ai-提取上传文件的内容 | | [**speakers()**](AiApi.md#speakers) | **POST** /v1/ai/speakers | 元梦ai-获取发音人列表 | | [**tokenCount()**](AiApi.md#tokenCount) | **POST** /v1/ai/tokenCount | 元梦ai-token统计 | | [**voiceClone()**](AiApi.md#voiceClone) | **POST** /v1/ai/voiceClone | 元梦ai-语音克隆 | ## `chat()` ```php chat($chat_param): \OpenAPI\Client\Model\ResponseOpenAPIChatResult ``` 元梦ai-对话 元梦ai对话 ### 示例 ```php chat($chat_param); print_r($result); } catch (Exception $e) { echo 'Exception when calling AiApi->chat: ', $e->getMessage(), PHP_EOL; } ``` ### 参数 | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **chat_param** | [**\OpenAPI\Client\Model\ChatParam**](../Model/ChatParam.md)| | [optional] | ### 返回类型 [**\OpenAPI\Client\Model\ResponseOpenAPIChatResult**](../Model/ResponseOpenAPIChatResult.md) ### HTTP请求头 - **Content-Type**: `application/json` - **Accept**: `*/*` [[回到顶部]](#) [[返回API列表]](../../README.md#api端点文档) [[返回模型列表]](../../README.md#模型文档) [[返回README]](../../README.md) ## `extractContent()` ```php extractContent($file, $param): \OpenAPI\Client\Model\ResponseOpenAPIExtractContentResult ``` 元梦ai-提取上传文件的内容 提取上传文件的内容 ### 示例 ```php extractContent($file, $param); print_r($result); } catch (Exception $e) { echo 'Exception when calling AiApi->extractContent: ', $e->getMessage(), PHP_EOL; } ``` ### 参数 | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **file** | **\SplFileObject****\SplFileObject**| | [optional] | | **param** | [**\OpenAPI\Client\Model\ExtraContentParam**](../Model/ExtraContentParam.md)| | [optional] | ### 返回类型 [**\OpenAPI\Client\Model\ResponseOpenAPIExtractContentResult**](../Model/ResponseOpenAPIExtractContentResult.md) ### HTTP请求头 - **Content-Type**: `multipart/form-data` - **Accept**: `*/*` [[回到顶部]](#) [[返回API列表]](../../README.md#api端点文档) [[返回模型列表]](../../README.md#模型文档) [[返回README]](../../README.md) ## `speakers()` ```php speakers(): \OpenAPI\Client\Model\ResponseOpenAPISpeakerListResult ``` 元梦ai-获取发音人列表 获取发音人列表 ### 示例 ```php speakers(); print_r($result); } catch (Exception $e) { echo 'Exception when calling AiApi->speakers: ', $e->getMessage(), PHP_EOL; } ``` ### 参数 该端点不需要任何参数. ### 返回类型 [**\OpenAPI\Client\Model\ResponseOpenAPISpeakerListResult**](../Model/ResponseOpenAPISpeakerListResult.md) ### HTTP请求头 - **Content-Type**: Not defined - **Accept**: `*/*` [[回到顶部]](#) [[返回API列表]](../../README.md#api端点文档) [[返回模型列表]](../../README.md#模型文档) [[返回README]](../../README.md) ## `tokenCount()` ```php tokenCount($token_count_param): \OpenAPI\Client\Model\ResponseOpenAPITokensCountResult ``` 元梦ai-token统计 元梦ai,token统计 ### 示例 ```php tokenCount($token_count_param); print_r($result); } catch (Exception $e) { echo 'Exception when calling AiApi->tokenCount: ', $e->getMessage(), PHP_EOL; } ``` ### 参数 | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **token_count_param** | [**\OpenAPI\Client\Model\TokenCountParam**](../Model/TokenCountParam.md)| | [optional] | ### 返回类型 [**\OpenAPI\Client\Model\ResponseOpenAPITokensCountResult**](../Model/ResponseOpenAPITokensCountResult.md) ### HTTP请求头 - **Content-Type**: `application/json` - **Accept**: `*/*` [[回到顶部]](#) [[返回API列表]](../../README.md#api端点文档) [[返回模型列表]](../../README.md#模型文档) [[返回README]](../../README.md) ## `voiceClone()` ```php voiceClone($voice_clone_param): \OpenAPI\Client\Model\ResponseOpenAPIVoiceCloneResult ``` 元梦ai-语音克隆 语音克隆 ### 示例 ```php voiceClone($voice_clone_param); print_r($result); } catch (Exception $e) { echo 'Exception when calling AiApi->voiceClone: ', $e->getMessage(), PHP_EOL; } ``` ### 参数 | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **voice_clone_param** | [**\OpenAPI\Client\Model\VoiceCloneParam**](../Model/VoiceCloneParam.md)| | [optional] | ### 返回类型 [**\OpenAPI\Client\Model\ResponseOpenAPIVoiceCloneResult**](../Model/ResponseOpenAPIVoiceCloneResult.md) ### HTTP请求头 - **Content-Type**: `application/json` - **Accept**: `*/*` [[回到顶部]](#) [[返回API列表]](../../README.md#api端点文档) [[返回模型列表]](../../README.md#模型文档) [[返回README]](../../README.md)