ছবিOpenAIনতুন

GPT Image 2

OpenAI এর সর্বশেষ ইমেজ প্রজন্ম মডেল

model: "gpt-image-2"

API ডকুমেন্টেশনএজেন্টদের জন্য ডকুমেন্টেশন

মোড

একটি মডেল আইডি, নিচের প্রতিটি মোড। আপনি যে ক্ষেত্রগুলি পাঠান তা মোড নির্বাচন করে এবং মূল্য মোড অনুসরণ করে।

মোডনির্বাচিত দ্বারাসাধারণ মূল্য
লেখা থেকে চিত্র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