Runbase

Command Palette

Search for a command to run...

OpenAI

GPT Image 2.5

ID:openai/gpt-image-2.5

OpenAI의 GPT Image 2.5 이미지 생성 API — Flare와 Sunburst 두 버전, 4K 출력, 13가지 화면비, 참조 이미지 편집 지원.

GPT Image 2.5ChatGPT Images 2.5OpenAI이미지 편집인페인팅

개요

OpenAI의 GPT Image 2.5 이미지 생성 API — Flare와 Sunburst 두 버전, 4K 출력, 13가지 화면비, 참조 이미지 편집 지원.

인증

모든 API 요청은 Authorization 헤더에 Bearer 방식으로 유효한 API 키를 전달해야 합니다.

빠른 시작

인증 정보

RUNBASE_API_KEY 환경 변수를 설정하세요.

Shell
export RUNBASE_API_KEY=your-api-key

실행 생성

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-image-2.5",
    "input": {
      "prompt": "A cinematic product photo of a ceramic lamp"
    }
  }'

실행

실행은 비동기로 처리됩니다. 요청을 제출한 후 결과를 폴링하세요.

실행 생성

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-image-2.5",
    "input": { "prompt": "A cinematic product photo of a ceramic lamp" }
  }'

실행 상태 조회

Shell
curl -s https://runbase.net/api/v1/runs/RUN_ID \
  -H "Authorization: Bearer $RUNBASE_API_KEY"

결과 조회

status가 "succeeded"가 될 때까지 상태 엔드포인트를 폴링한 후 응답에서 output.urls를 읽으세요.

입력 스키마

매개변수유형필수설명
promptstring필수Prompt최대 20000자
variantstring선택Version옵션: flaresunburst기본값: flare
aspect_ratiostring선택Aspect ratio옵션: auto1:13:22:316:99:164:33:421:927:1616:279:88:9기본값: auto
resolutionstring선택Resolution옵션: 1K2K4K기본값: 1K
image_urlsstring[]선택Reference images최대 16장의 이미지

출력 스키마

필드유형설명
urlsstring[]생성된 출력 URL

오류

API는 표준 HTTP 상태 코드를 사용하여 성공 또는 실패를 나타냅니다.

상태 코드설명
400Invalid request - missing or malformed parameters
401Authentication failed - missing or invalid API key
402Insufficient credits
403Forbidden - IP not allowed, account banned, or API key credit limit exceeded
404Run not found
429Rate limit exceeded
500Internal server error