GPT
GPT Image

danielnguyenkarate/gpt-image-2

Model ID: danielnguyenkarate/gpt-image-2
Family
GPT
Context
Not specified
Per request
0.0383 $
Requests
250
Success
88.4%
Tokens
166.7K
Uptime
24h agoNow
7 days agoNow

Pricing

Per request
0.0383 $
Price history

Price levels previously applied. The row tagged "current" is the live price.

Current Since 14/08/2026 - 20:40:19
Per request0.0383 $
Supported endpoints
https://api.xah.io/v1/images/generations
Method POST · application/json
Auth Bearer token (API key)
Rate limit 120 req/min
API kinds Image

Share

curl 'https://api.xah.io/v1/images/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "danielnguyenkarate/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": "danielnguyenkarate/gpt-image-2",
    "prompt": "A serene mountain landscape at sunrise",
    "n": 1,
    "size": "1024x1024"
})
});
const data = await res.json();
console.log(data);
import json, requests

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

res = requests.post(url, headers=headers, json=payload, stream=True, timeout=120)
print(res.status_code, res.json())
{
    "model": "danielnguyenkarate/gpt-image-2",
    "prompt": "A serene mountain landscape at sunrise",
    "n": 1,
    "size": "1024x1024"
}

Try it

Send a prompt with your API key — uses real credits, streams back instantly.

Reviews & comments
★ 0.0 / 0 reviews
Loading reviews...
Contact Support
We are always ready to help you