Class DefaultApi
java.lang.Object
cloud.liblibai.openapi.client.api.DefaultApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComfyStatus(ComfyStatusRequest comfyStatusRequest) 查询 comfy 生图结果 根据生图任务uuid查询生图任务的状态和结果okhttp3.CallgetComfyStatusAsync(ComfyStatusRequest comfyStatusRequest, ApiCallback<ComfyStatusResponse> _callback) 查询 comfy 生图结果 (asynchronously) 根据生图任务uuid查询生图任务的状态和结果okhttp3.CallgetComfyStatusCall(ComfyStatusRequest comfyStatusRequest, ApiCallback _callback) Build call for getComfyStatusgetComfyStatusWithHttpInfo(ComfyStatusRequest comfyStatusRequest) 查询 comfy 生图结果 根据生图任务uuid查询生图任务的状态和结果intgetModelVersion(GetModelVersionRequest getModelVersionRequest) 查询模型版本参数 查询指定的模型版本参数。目前Lib已开放全站的可商用模型供API使用,您可以在Lib站内检索可商用的Checkpoint和LoRA模型。 选择喜欢的模型版本,从浏览器网址中复制versionUuid,粘贴到文生图或图生图的参数模板中使用。 若您忘记了在生图参数中应用的模型是哪一款,您可以调用本接口进行查询。okhttp3.CallgetModelVersionAsync(GetModelVersionRequest getModelVersionRequest, ApiCallback<VersionResponse> _callback) 查询模型版本参数 (asynchronously) 查询指定的模型版本参数。目前Lib已开放全站的可商用模型供API使用,您可以在Lib站内检索可商用的Checkpoint和LoRA模型。 选择喜欢的模型版本,从浏览器网址中复制versionUuid,粘贴到文生图或图生图的参数模板中使用。 若您忘记了在生图参数中应用的模型是哪一款,您可以调用本接口进行查询。okhttp3.CallgetModelVersionCall(GetModelVersionRequest getModelVersionRequest, ApiCallback _callback) Build call for getModelVersiongetModelVersionWithHttpInfo(GetModelVersionRequest getModelVersionRequest) 查询模型版本参数 查询指定的模型版本参数。目前Lib已开放全站的可商用模型供API使用,您可以在Lib站内检索可商用的Checkpoint和LoRA模型。 选择喜欢的模型版本,从浏览器网址中复制versionUuid,粘贴到文生图或图生图的参数模板中使用。 若您忘记了在生图参数中应用的模型是哪一款,您可以调用本接口进行查询。getStatus(StatusRequest statusRequest) 查询生图任务状态 根据生图任务uuid查询生图任务的状态和相关信息okhttp3.CallgetStatusAsync(StatusRequest statusRequest, ApiCallback<StatusResponse> _callback) 查询生图任务状态 (asynchronously) 根据生图任务uuid查询生图任务的状态和相关信息okhttp3.CallgetStatusCall(StatusRequest statusRequest, ApiCallback _callback) Build call for getStatusgetStatusWithHttpInfo(StatusRequest statusRequest) 查询生图任务状态 根据生图任务uuid查询生图任务的状态和相关信息voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) submitComfyTask(ComfyRequest comfyRequest) 提交 ComfyUI 工作流生图任务 提交 ComfyUI 工作流生图任务。目前Lib已开放全站的可商用、可在线运行工作流供API使用,您可以在Lib站内工作流合集检索。 在工作流的详情页会出现【本工作流已提供API服务】,且可查看API相关参数。(详情页未出现API参数的工作流,暂不支持API调用)okhttp3.CallsubmitComfyTaskAsync(ComfyRequest comfyRequest, ApiCallback<SubmitComfyResponse> _callback) 提交 ComfyUI 工作流生图任务 (asynchronously) 提交 ComfyUI 工作流生图任务。目前Lib已开放全站的可商用、可在线运行工作流供API使用,您可以在Lib站内工作流合集检索。 在工作流的详情页会出现【本工作流已提供API服务】,且可查看API相关参数。(详情页未出现API参数的工作流,暂不支持API调用)okhttp3.CallsubmitComfyTaskCall(ComfyRequest comfyRequest, ApiCallback _callback) Build call for submitComfyTasksubmitComfyTaskWithHttpInfo(ComfyRequest comfyRequest) 提交 ComfyUI 工作流生图任务 提交 ComfyUI 工作流生图任务。目前Lib已开放全站的可商用、可在线运行工作流供API使用,您可以在Lib站内工作流合集检索。 在工作流的详情页会出现【本工作流已提供API服务】,且可查看API相关参数。(详情页未出现API参数的工作流,暂不支持API调用)submitImageToImage(ImageToImageRequest imageToImageRequest) 提交图生图任务 提交图生图任务,生成图片okhttp3.CallsubmitImageToImageAsync(ImageToImageRequest imageToImageRequest, ApiCallback<SubmitResponse> _callback) 提交图生图任务 (asynchronously) 提交图生图任务,生成图片okhttp3.CallsubmitImageToImageCall(ImageToImageRequest imageToImageRequest, ApiCallback _callback) Build call for submitImageToImagesubmitImageToImageWithHttpInfo(ImageToImageRequest imageToImageRequest) 提交图生图任务 提交图生图任务,生成图片submitTextToImage(TextToImageRequest textToImageRequest) 提交文生图任务 提交文生图任务,生成图片okhttp3.CallsubmitTextToImageAsync(TextToImageRequest textToImageRequest, ApiCallback<SubmitResponse> _callback) 提交文生图任务 (asynchronously) 提交文生图任务,生成图片okhttp3.CallsubmitTextToImageCall(TextToImageRequest textToImageRequest, ApiCallback _callback) Build call for submitTextToImagesubmitTextToImageUltra(TextToImageUltraRequest textToImageUltraRequest) 星流Star-3 Alpha图生图 根据提供的文本提示词和参数生成图片okhttp3.CallsubmitTextToImageUltraAsync(TextToImageUltraRequest textToImageUltraRequest, ApiCallback<SubmitResponse> _callback) 星流Star-3 Alpha图生图 (asynchronously) 根据提供的文本提示词和参数生成图片okhttp3.CallsubmitTextToImageUltraCall(TextToImageUltraRequest textToImageUltraRequest, ApiCallback _callback) Build call for submitTextToImageUltrasubmitTextToImageUltraWithHttpInfo(TextToImageUltraRequest textToImageUltraRequest) 星流Star-3 Alpha图生图 根据提供的文本提示词和参数生成图片submitTextToImageWithHttpInfo(TextToImageRequest textToImageRequest) 提交文生图任务 提交文生图任务,生成图片
-
Constructor Details
-
DefaultApi
public DefaultApi() -
DefaultApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
getComfyStatusCall
public okhttp3.Call getComfyStatusCall(ComfyStatusRequest comfyStatusRequest, ApiCallback _callback) throws ApiException Build call for getComfyStatus- Parameters:
comfyStatusRequest- 查询请求参数 (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getComfyStatus
public ComfyStatusResponse getComfyStatus(ComfyStatusRequest comfyStatusRequest) throws ApiException 查询 comfy 生图结果 根据生图任务uuid查询生图任务的状态和结果- Parameters:
comfyStatusRequest- 查询请求参数 (optional)- Returns:
- ComfyStatusResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getComfyStatusWithHttpInfo
public ApiResponse<ComfyStatusResponse> getComfyStatusWithHttpInfo(ComfyStatusRequest comfyStatusRequest) throws ApiException 查询 comfy 生图结果 根据生图任务uuid查询生图任务的状态和结果- Parameters:
comfyStatusRequest- 查询请求参数 (optional)- Returns:
- ApiResponse<ComfyStatusResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getComfyStatusAsync
public okhttp3.Call getComfyStatusAsync(ComfyStatusRequest comfyStatusRequest, ApiCallback<ComfyStatusResponse> _callback) throws ApiException 查询 comfy 生图结果 (asynchronously) 根据生图任务uuid查询生图任务的状态和结果- Parameters:
comfyStatusRequest- 查询请求参数 (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getModelVersionCall
public okhttp3.Call getModelVersionCall(GetModelVersionRequest getModelVersionRequest, ApiCallback _callback) throws ApiException Build call for getModelVersion- Parameters:
getModelVersionRequest- 查询请求参数 (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getModelVersion
public VersionResponse getModelVersion(GetModelVersionRequest getModelVersionRequest) throws ApiException 查询模型版本参数 查询指定的模型版本参数。目前Lib已开放全站的可商用模型供API使用,您可以在Lib站内检索可商用的Checkpoint和LoRA模型。 选择喜欢的模型版本,从浏览器网址中复制versionUuid,粘贴到文生图或图生图的参数模板中使用。 若您忘记了在生图参数中应用的模型是哪一款,您可以调用本接口进行查询。- Parameters:
getModelVersionRequest- 查询请求参数 (optional)- Returns:
- VersionResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getModelVersionWithHttpInfo
public ApiResponse<VersionResponse> getModelVersionWithHttpInfo(GetModelVersionRequest getModelVersionRequest) throws ApiException 查询模型版本参数 查询指定的模型版本参数。目前Lib已开放全站的可商用模型供API使用,您可以在Lib站内检索可商用的Checkpoint和LoRA模型。 选择喜欢的模型版本,从浏览器网址中复制versionUuid,粘贴到文生图或图生图的参数模板中使用。 若您忘记了在生图参数中应用的模型是哪一款,您可以调用本接口进行查询。- Parameters:
getModelVersionRequest- 查询请求参数 (optional)- Returns:
- ApiResponse<VersionResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getModelVersionAsync
public okhttp3.Call getModelVersionAsync(GetModelVersionRequest getModelVersionRequest, ApiCallback<VersionResponse> _callback) throws ApiException 查询模型版本参数 (asynchronously) 查询指定的模型版本参数。目前Lib已开放全站的可商用模型供API使用,您可以在Lib站内检索可商用的Checkpoint和LoRA模型。 选择喜欢的模型版本,从浏览器网址中复制versionUuid,粘贴到文生图或图生图的参数模板中使用。 若您忘记了在生图参数中应用的模型是哪一款,您可以调用本接口进行查询。- Parameters:
getModelVersionRequest- 查询请求参数 (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getStatusCall
public okhttp3.Call getStatusCall(StatusRequest statusRequest, ApiCallback _callback) throws ApiException Build call for getStatus- Parameters:
statusRequest- 查询请求参数 (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getStatus
查询生图任务状态 根据生图任务uuid查询生图任务的状态和相关信息- Parameters:
statusRequest- 查询请求参数 (optional)- Returns:
- StatusResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getStatusWithHttpInfo
public ApiResponse<StatusResponse> getStatusWithHttpInfo(StatusRequest statusRequest) throws ApiException 查询生图任务状态 根据生图任务uuid查询生图任务的状态和相关信息- Parameters:
statusRequest- 查询请求参数 (optional)- Returns:
- ApiResponse<StatusResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getStatusAsync
public okhttp3.Call getStatusAsync(StatusRequest statusRequest, ApiCallback<StatusResponse> _callback) throws ApiException 查询生图任务状态 (asynchronously) 根据生图任务uuid查询生图任务的状态和相关信息- Parameters:
statusRequest- 查询请求参数 (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
submitComfyTaskCall
public okhttp3.Call submitComfyTaskCall(ComfyRequest comfyRequest, ApiCallback _callback) throws ApiException Build call for submitComfyTask- Parameters:
comfyRequest- ComfyUI 工作流生图任务请求参数 (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
submitComfyTask
提交 ComfyUI 工作流生图任务 提交 ComfyUI 工作流生图任务。目前Lib已开放全站的可商用、可在线运行工作流供API使用,您可以在Lib站内工作流合集检索。 在工作流的详情页会出现【本工作流已提供API服务】,且可查看API相关参数。(详情页未出现API参数的工作流,暂不支持API调用)- Parameters:
comfyRequest- ComfyUI 工作流生图任务请求参数 (optional)- Returns:
- SubmitComfyResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
submitComfyTaskWithHttpInfo
public ApiResponse<SubmitComfyResponse> submitComfyTaskWithHttpInfo(ComfyRequest comfyRequest) throws ApiException 提交 ComfyUI 工作流生图任务 提交 ComfyUI 工作流生图任务。目前Lib已开放全站的可商用、可在线运行工作流供API使用,您可以在Lib站内工作流合集检索。 在工作流的详情页会出现【本工作流已提供API服务】,且可查看API相关参数。(详情页未出现API参数的工作流,暂不支持API调用)- Parameters:
comfyRequest- ComfyUI 工作流生图任务请求参数 (optional)- Returns:
- ApiResponse<SubmitComfyResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
submitComfyTaskAsync
public okhttp3.Call submitComfyTaskAsync(ComfyRequest comfyRequest, ApiCallback<SubmitComfyResponse> _callback) throws ApiException 提交 ComfyUI 工作流生图任务 (asynchronously) 提交 ComfyUI 工作流生图任务。目前Lib已开放全站的可商用、可在线运行工作流供API使用,您可以在Lib站内工作流合集检索。 在工作流的详情页会出现【本工作流已提供API服务】,且可查看API相关参数。(详情页未出现API参数的工作流,暂不支持API调用)- Parameters:
comfyRequest- ComfyUI 工作流生图任务请求参数 (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
submitImageToImageCall
public okhttp3.Call submitImageToImageCall(ImageToImageRequest imageToImageRequest, ApiCallback _callback) throws ApiException Build call for submitImageToImage- Parameters:
imageToImageRequest- 图生图任务请求参数 (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
submitImageToImage
public SubmitResponse submitImageToImage(ImageToImageRequest imageToImageRequest) throws ApiException 提交图生图任务 提交图生图任务,生成图片- Parameters:
imageToImageRequest- 图生图任务请求参数 (optional)- Returns:
- SubmitResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
submitImageToImageWithHttpInfo
public ApiResponse<SubmitResponse> submitImageToImageWithHttpInfo(ImageToImageRequest imageToImageRequest) throws ApiException 提交图生图任务 提交图生图任务,生成图片- Parameters:
imageToImageRequest- 图生图任务请求参数 (optional)- Returns:
- ApiResponse<SubmitResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
submitImageToImageAsync
public okhttp3.Call submitImageToImageAsync(ImageToImageRequest imageToImageRequest, ApiCallback<SubmitResponse> _callback) throws ApiException 提交图生图任务 (asynchronously) 提交图生图任务,生成图片- Parameters:
imageToImageRequest- 图生图任务请求参数 (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
submitTextToImageCall
public okhttp3.Call submitTextToImageCall(TextToImageRequest textToImageRequest, ApiCallback _callback) throws ApiException Build call for submitTextToImage- Parameters:
textToImageRequest- 文生图任务请求参数 (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
submitTextToImage
提交文生图任务 提交文生图任务,生成图片- Parameters:
textToImageRequest- 文生图任务请求参数 (optional)- Returns:
- SubmitResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
submitTextToImageWithHttpInfo
public ApiResponse<SubmitResponse> submitTextToImageWithHttpInfo(TextToImageRequest textToImageRequest) throws ApiException 提交文生图任务 提交文生图任务,生成图片- Parameters:
textToImageRequest- 文生图任务请求参数 (optional)- Returns:
- ApiResponse<SubmitResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
submitTextToImageAsync
public okhttp3.Call submitTextToImageAsync(TextToImageRequest textToImageRequest, ApiCallback<SubmitResponse> _callback) throws ApiException 提交文生图任务 (asynchronously) 提交文生图任务,生成图片- Parameters:
textToImageRequest- 文生图任务请求参数 (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
submitTextToImageUltraCall
public okhttp3.Call submitTextToImageUltraCall(TextToImageUltraRequest textToImageUltraRequest, ApiCallback _callback) throws ApiException Build call for submitTextToImageUltra- Parameters:
textToImageUltraRequest- 生图请求参数 (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
submitTextToImageUltra
public SubmitResponse submitTextToImageUltra(TextToImageUltraRequest textToImageUltraRequest) throws ApiException 星流Star-3 Alpha图生图 根据提供的文本提示词和参数生成图片- Parameters:
textToImageUltraRequest- 生图请求参数 (optional)- Returns:
- SubmitResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
submitTextToImageUltraWithHttpInfo
public ApiResponse<SubmitResponse> submitTextToImageUltraWithHttpInfo(TextToImageUltraRequest textToImageUltraRequest) throws ApiException 星流Star-3 Alpha图生图 根据提供的文本提示词和参数生成图片- Parameters:
textToImageUltraRequest- 生图请求参数 (optional)- Returns:
- ApiResponse<SubmitResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
submitTextToImageUltraAsync
public okhttp3.Call submitTextToImageUltraAsync(TextToImageUltraRequest textToImageUltraRequest, ApiCallback<SubmitResponse> _callback) throws ApiException 星流Star-3 Alpha图生图 (asynchronously) 根据提供的文本提示词和参数生成图片- Parameters:
textToImageUltraRequest- 生图请求参数 (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-