Authorization: Bearer ********************
{
"messages": [
{
"role": "user",
"content": "生成一幅清明上河图"
}
],
"model": "gpt-4o-image-async",
"temperature": 0.7
}
curl --location --request POST 'https://asyncdata.net/tran/https://api.tu-zi.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{
"role": "user",
"content": "生成一幅清明上河图"
}
],
"model": "gpt-4o-image-async",
"temperature": 0.7
}'
preview_url
在浏览器中查看格式化结果source_url
获取原始 JSON 数据id
通过其他 API 接口查询任务状态{
"id": "bb72fb2b-451c-4267-bb72-c5f01ed68971",
"source_url": "https://asyncdata.net/source/bb72fb2b-451c-4267-bb72-c5f01ed68971",
"preview_url": "https://asyncdata.net/web/bb72fb2b-451c-4267-bb72-c5f01ed68971"
}