GörüntüOpenAIYeni

GPT Image 2

OpenAI'nin en son resim oluşturma modeli

model: "gpt-image-2"

API belgeleriAracılar için belgeler

Modlar

Bir model kimliği, aşağıdaki tüm modlar. Gönderdiğiniz alanlar modu seçer ve fiyat modu takip eder.

ModŞu şekilde seçilirTipik fiyat
Metinden görüntüyeprompt
Örnek istek
{
  "model": "gpt-image-2",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.041
Görüntü düzenlemeimage_url
Örnek istek
{
  "model": "gpt-image-2",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.197

Giriş

Gerekli

Prompt

İsteğe bağlı

Image Size

İsteğe bağlı
1

Number of Images

İsteğe bağlı

Source image to edit or vary (https URL, or an upload URL from POST /v1/uploads). Leave it out to generate from the prompt alone.

İsteğe bağlı

More source images (https URLs), for edits that combine several images. image_url, if sent, is the first.

Gelişmiş seçenekler (2)

Ana kontrollerin ötesindeki sağlayıcı ayarları. Modelin varsayılan ayarlarını kullanmak için boş bırakın.

İsteğe bağlı
-

Compression level of the output file.

İsteğe bağlı

File format of the result.

Sonuç

GPT Image 2Örnek çıktı

Bu modelden gerçek bir sonuç. Çalıştırarak kendi sonucunuzu burada görebilirsiniz.

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-2",
  "input": {
    "prompt": "Extreme macro of fresh wasabi being hand-grated on a sharkskin oroshigane, pale green paste accumulating in delicate curls at the leading edge, raking cool north-light revealing every cellulose fiber and fine moisture bead on the rhizome surface, square abstract food and craft composition, muted jade and pale ivory palette, fine grated mist suspended above the grater teeth, entirely unpeopled, precise botanical clarity"
  }
}'
GPT Image 2 1GPT Image 2 2GPT Image 2 3GPT Image 2 4GPT Image 2 5GPT Image 2 6