Product Description Generation
Introduction
Use Cases
Sample
Input
Output
Quick Start
1. Sample Request
/*The domain url of the API.
*for api purchased on global site. set api_domain to "https://api.aidc-ai.com"
*for api purchased on chinese site. set api_domain to "https://cn-api.aidc-ai.com"*/
IopClient client = new IopClientImpl("domain url", "your key", "your secret");
IopRequest request = new IopRequest();
request.setApiName("/ai/text/smb/product/description");
// If the formal quota is not purchased, please add a trial mark; otherwise, a "NoResource" error code will be received.
// request.addHeaderParameter("x-iop-trial","true");
request.addHeaderParameter("x-iop-trial","true");
JSONObject jsonObject = new JSONObject();
jsonObject.put("title", "不锈钢橱柜脚可调节家具沙发脚支撑腿床脚茶几支撑脚桌脚电视柜脚");
jsonObject.put("pcate_leaf_name", "紧固件");
String[] properties = {"材质不锈钢", "规格C款不锈钢可调脚(拉丝)", "规格C款不锈钢可调脚(白色)", "规格C款不锈钢可调脚(黑色)", "规格不锈钢可调脚(拉丝)", "规格不锈钢可调脚(白色)","规格不锈钢可调脚(黑色)", "规格全钢脚", "规格重型B款可调脚(拉丝)", "规格重型B款可调脚(白色)", "规格重型B款可调脚(黑色)", "货号AL-527800489897","计量单位个", "适用范围家具家装", "风格现代简约"};
jsonObject.put("properties", properties);
jsonObject.put("targetLanguage", "ko");
request.addApiParameter("paramJson", jsonObject.toString());
IopResponse response = client.execute(request);
System.out.println(response.getBody());
Thread.sleep(10);2. Sample Response
Supported Languages List
Language name
Language code
Last updated