其他
其他 图像

adminsgehdt/FLUX-2-max

Model ID: adminsgehdt/FLUX-2-max
系列
其他
上下文
未填写
每次请求最低收费
0.275 人民币
请求数
206
成功率
99.5%
Tokens
718.2K
可用率
24 小时前现在
7 天前现在

定价

每次请求
0.275 人民币
每次请求最低收费
0.275 人民币
支持的 Endpoint
https://api.xah.io/v1/images/generations
方法 POST · application/json
认证 Bearer token (API key)
API 类型 图像

分享

curl 'https://api.xah.io/v1/images/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "adminsgehdt/FLUX-2-max",
    "prompt": "A serene mountain landscape at sunrise",
    "n": 1,
    "size": "1024x1024"
}'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v1/images/generations', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "model": "adminsgehdt/FLUX-2-max",
    "prompt": "A serene mountain landscape at sunrise",
    "n": 1,
    "size": "1024x1024"
})
});
const data = await res.json();
console.log(data);
import requests

url = 'https://api.xah.io/v1/images/generations'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
}
payload = {
    "model": "adminsgehdt/FLUX-2-max",
    "prompt": "A serene mountain landscape at sunrise",
    "n": 1,
    "size": "1024x1024"
}

res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
    "model": "adminsgehdt/FLUX-2-max",
    "prompt": "A serene mountain landscape at sunrise",
    "n": 1,
    "size": "1024x1024"
}
评分与评论
0.0 / 0 条评价
正在加载评价...
联系支持
我们随时为您提供帮助