تصویرOpenAIنیا

GPT Image 2

OpenAI کا تازہ ترین تصویر کی نسل کاری ماڈل

model: "gpt-image-2"

API دستاویزاتایجنٹس کے لیے دستاویزات

موڈز

ایک ماڈل ID، نیچے دیے گئے تمام موڈز۔ آپ جو فیلڈز بھیجتے ہیں وہ موڈ کا انتخاب کرتے ہیں، اور قیمت موڈ پر عمل کرتی ہے۔

موڈاس کے ذریعے منتخبعام قیمت
متن سے تصویرprompt
نمونہ درخواست
{
  "model": "gpt-image-2",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.041
تصویر میں ترمیمimage_url
نمونہ درخواست
{
  "model": "gpt-image-2",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.197

ان پٹ

ضروری

Prompt

اختیاری

Image Size

اختیاری
1

Number of Images

اختیاری

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.

اختیاری

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

اعلیٰ اختیارات (2)

بنیادی کنٹرولز سے آگے فراہم کننے والی ترتیبات۔ ماڈل کی ڈیفالٹ ترتیبات استعمال کرنے کے لیے انہیں خالی چھوڑیں۔

اختیاری
-

Compression level of the output file.

اختیاری

File format of the result.

نتیجہ

GPT Image 2نمونہ آؤٹ پٹ

اس ماڈل سے اصل نتیجہ۔ اسے چلائیں اپنا نتیجہ یہاں دیکھنے کے لیے۔

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