이미지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