ImejOpenAIBaharu

GPT Image 2

Model penjana imej terbaru OpenAI

model: "gpt-image-2"

Mod

Satu ID model, setiap mod di bawah. Medan yang anda hantar memilih mod, dan harga mengikuti mod.

ModDipilih olehHarga biasa
Teks ke imejprompt
Contoh permintaan
{
  "model": "gpt-image-2",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.041
Edit imejimage_url
Contoh permintaan
{
  "model": "gpt-image-2",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.197

Input

Diperlukan

Prompt

Pilihan

Image Size

Pilihan
1

Number of Images

Pilihan

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.

Pilihan

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

Pilihan lanjutan (2)

Tetapan penyedia di luar kawalan utama. Biarkan kosong untuk menggunakan nilai lalai model.

Pilihan
-

Compression level of the output file.

Pilihan

File format of the result.

Hasil

GPT Image 2Contoh output

Hasil sebenar daripada model ini. Jalankannya untuk melihat hasil anda di sini.

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