adminsgehdt/qwen-image-max
ระดับราคาที่เคยใช้ แถวที่ระบุ "ปัจจุบัน" คือราคาจริง
https://api.xah.io/v1/images/edits
curl 'https://api.xah.io/v1/images/edits' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-F 'model=adminsgehdt/qwen-image-max' \
-F 'prompt=Make the reference image brighter' \
-F 'image=@./reference-1024.png'
// Node.js 18+ / Browser
const form = new FormData();
form.append('model', 'adminsgehdt/qwen-image-max');
form.append('prompt', 'Make the reference image brighter');
form.append('image', file); // File/Blob from ./reference-1024.png
const res = await fetch('https://api.xah.io/v1/images/edits', {
method: 'POST',
headers: { 'Authorization': 'Bearer YOUR_API_KEY' },
body: form
});
console.log(await res.json());
import requests
url = 'https://api.xah.io/v1/images/edits'
headers = {'Authorization': 'Bearer YOUR_API_KEY'}
data = {
"model": "adminsgehdt/qwen-image-max",
"prompt": "Make the reference image brighter"
}
with open('./reference-1024.png', 'rb') as media:
files = {'image': media}
res = requests.post(url, headers=headers, data=data, files=files, timeout=180)
print(res.status_code, res.json())
{
"model": "adminsgehdt/qwen-image-max",
"prompt": "Make the reference image brighter",
"_file_field": "image",
"_file_path": "./reference-1024.png"
}
โมเดลนี้ไม่รองรับแชทข้อความ จึงไม่สามารถลองใช้งานที่นี่ได้