名称 | 描述 |
---|---|
error_code | 错误码 |
error_msg | 错误描述信息,帮助理解和解决发生的错误 |
{
"error_code": 110,
"error_msg": "Access token invalid or no longer valid"
}
curl --location --request POST 'https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/text2image/sd_xl?access_token =' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt\t": "string",
"negative_prompt\t": "string",
"size\t": "string",
"n\t": 0,
"steps\t": 0,
"sampler_index\t": "string",
"user_id\t": "string"
}'
{
"id": "string",
"object": "string",
"created": 0,
"data": [
{
"object": "string",
"b64_image": "string",
"index": 0
}
],
"usage": {
"prompt_tokens": 0,
"total_tokens": 0
}
}