GPT
GPT 图像

phatchau036/gpt-image-2

Model ID: phatchau036/gpt-image-2
模型系列
GPT
上下文
尚未更新
每次请求
0.021 ¥
调用次数
5.7K
成功
91.6%
Tokens
151.09M
在线率 44.44%
24小时前现在
7天前现在

价格表

每次请求
0.021 ¥
价格变更历史

曾经适用的价格级别。标记为当前的价格为现在生效的价格。

以前 自 29/07/2026 - 09:18:59
每次请求0.0129 ¥
以前 自 31/07/2026 - 10:32:37
每次请求0.0227 ¥
当前 自 03/09/2026 - 19:48:35
每次请求0.021 ¥
支持的Endpoint
https://api.xah.io/v1/images/generations
方法 POST · application/json
身份验证 Bearer token(API key)
API类型 图像

技术说明

This model supports image generation

分享

curl 'https://api.xah.io/v1/images/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "phatchau036/gpt-image-2",
    "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": "phatchau036/gpt-image-2",
    "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": "phatchau036/gpt-image-2",
    "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": "phatchau036/gpt-image-2",
    "prompt": "A serene mountain landscape at sunrise",
    "n": 1,
    "size": "1024x1024"
}
快速试用

该模型不支持文本聊天,因此无法在此快速试用。

评价与评论
5.0 / 1 条评价
正在加载评价...
联系支持
我们随时为您提供帮助