GPT
GPT 图像

levuphong2909/gpt-image

Model ID: levuphong2909/gpt-image
系列
GPT
上下文
未填写
每次请求
0.015 人民币
请求数
6
成功率
66.7%
Tokens
642
可用率
24 小时前现在
7 天前现在

定价

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

技术说明

Tạo ảnh

分享

curl 'https://api.xah.io/v1/images/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "cx/gpt-5.4-image",
    "prompt": "Tạo ảnh con chó",
    "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": "cx/gpt-5.4-image",
    "prompt": "Tạo ảnh con chó",
    "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": "cx/gpt-5.4-image",
    "prompt": "Tạo ảnh con chó",
    "size": "1024x1024"
}

res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
    "model": "cx/gpt-5.4-image",
    "prompt": "Tạo ảnh con chó",
    "size": "1024x1024"
}
评分与评论
0.0 / 0 条评价
正在加载评价...
联系支持
我们随时为您提供帮助