GPT
GPT Obraz
Model ID: mainnewnol/gpt-image-2
Rodzina
GPT
Kontekst
Nie określono
Za request
0.0521 zł
Liczba użyć
28
Sukces
53.6%
Tokeny
33.9K
Uptime
24 godz. temuTeraz
7 dni temuTeraz
Observed token response speed
Up to 500 recent requests with a measured response time
500 recent requests
Observed output speed— tok/s
Response time P50— ms
Response time P95— ms
Samples—
Not enough data
Up to 500 recent requests with a measured response time
Response similarity to the reference model
The percentage reflects similarity between tested responses and reference data; it does not determine whether a model is genuine or fake.
No reference data yetNot enough data
Direct comparisonsNo direct comparisons yet
Check with my API key

Cennik

Za request
0.0521 zł
Historia cen

Poziomy cen stosowane wcześniej. Wiersz oznaczony jako „bieżący” to cena obowiązująca.

Wcześniejsze Od 21/08/2026 - 13:01:45
Za request0.0869 zł Minimalna opłata / request0.0869 zł
Bieżąca Od 21/08/2026 - 14:03:12
Za request0.0521 zł Minimalna opłata / request0.0521 zł
Obsługiwane endpointy
https://api.xah.io/v1/images/generations
Metoda POST · application/json
Autoryzacja Bearer token (klucz API)
Rodzaje API Obraz

Udostępnij

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

Wypróbuj

Wyślij prompt za pomocą swojego klucza API — zużywa realne środki, wynik jest streamowany natychmiast.

Oceny i komentarze
★ 0.0 / 0 ocen
Ładowanie ocen...
Skontaktuj się z pomocą
Zawsze jesteśmy gotowi, aby Ci pomóc