图片变体
curl --request POST \
--url https://alltoken.aatest.online/v1/images/variations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>"
}
'import requests
url = "https://alltoken.aatest.online/v1/images/variations"
payload = { "model": "<string>" }
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>'})
};
fetch('https://alltoken.aatest.online/v1/images/variations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{}
]
}接口示例
图片变体
图片变体接口。
POST
/
v1
/
images
/
variations
图片变体
curl --request POST \
--url https://alltoken.aatest.online/v1/images/variations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>"
}
'import requests
url = "https://alltoken.aatest.online/v1/images/variations"
payload = { "model": "<string>" }
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>'})
};
fetch('https://alltoken.aatest.online/v1/images/variations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{}
]
}⌘I