AI 服务/图像生成
异步生成图像
POST
异步生成图像
授权
AiToEarn Open Platform API Key。
请求体
application/json
图片描述提示
Required string length:
1 - 4000生成图片数量
必填范围:
1 <= x <= 10返回格式
可用选项:
url, b64_json Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://aitoearn.cn/api/ai/image/generate/async \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"prompt": "<string>",
"model": "<string>"
}
'{
"code": 0,
"message": "请求成功",
"data": {
"logId": "string",
"status": "generating"
}
}AiToEarn Open Platform API Key。
图片描述提示
1 - 4000生成图片数量
1 <= x <= 10返回格式
url, b64_json curl --request POST \
--url https://aitoearn.cn/api/ai/image/generate/async \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"prompt": "<string>",
"model": "<string>"
}
'{
"code": 0,
"message": "请求成功",
"data": {
"logId": "string",
"status": "generating"
}
}