강력한 지시 이해력, 선명한 텍스트 렌더링, 정밀한 편집을 갖춘 OpenAI의 최첨단 이미지 생성/편집 모델입니다. 품질 기반 가격으로 비용-품질 트레이드오프를 선택할 수 있습니다.
콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요
이 모델의 사용법을 Claude, ChatGPT 등에 복사
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "openai/gpt-image-2",
"input": {
"prompt": "A photorealistic close-up portrait of an elderly Japanese ceramicist with deep wrinkles and a warm smile, carefully inspecting a freshly glazed tea bowl in his rustic sun-drenched workshop.",
"aspect_ratio": "3:2",
"quality": "high",
"output_format": "webp"
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | Yes | - | 생성할 이미지에 대한 텍스트 설명 |
input_images | array | No | - | 편집/합성용 입력 이미지 URL 배열 |
aspect_ratio | string | No | 1:1 | 출력 비율 1:13:22:3 |
quality | string | No | auto | 품질 단계 — 단계가 높을수록 더 선명하지만 느리고 비쌉니다 lowmediumhighauto |
background | string | No | auto | 배경 모드 (투명 배경은 미지원) autoopaque |
output_format | string | No | webp | 출력 이미지 포맷 webppngjpeg |
output_compression | integer | No | 90 | webp/jpeg 출력 압축 수준 (0-100) |
moderation | string | No | auto | 콘텐츠 모더레이션 수준 autolow |
number_of_images | integer | No | 1 | 1로 제한 — 배치는 여러 번 호출하세요 |
이 모델의 input_images 파라미터에 파일을 전달하는 방법은 3가지입니다.
POST /v1/predictions/upload에 파일을 직접 첨부합니다. 별도 업로드 과정이 필요 없습니다.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=openai/gpt-image-2" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:input_images=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "openai/gpt-image-2",
"input": {
"prompt": "your prompt here",
"input_images": ["https://example.com/image.jpg"]
}
}POST /v1/predictions 요청 시 사용되는 공통 파라미터입니다.
| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
model | string | Yes | - | 모델 식별자 |
input | object | Yes | - | 위 테이블의 모델별 파라미터를 포함하는 객체 |
output_folder | string | No | - | 결과물 저장 폴더 경로 (최대 256자, '..' 사용 불가) |
webhook_url | string | No | - | 완료 시 호출할 Webhook URL |
is_public | boolean | No | false | true 시 결과물을 영구 공개 URL로도 제공 |
풍부한 디테일을 갖춘 고품질 인물 사진 생성
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "openai/gpt-image-2",
"input": {
"prompt": "A photorealistic close-up portrait of an elderly Japanese ceramicist with deep wrinkles and a warm smile, carefully inspecting a freshly glazed tea bowl in his rustic sun-drenched workshop.",
"aspect_ratio": "3:2",
"quality": "high",
"output_format": "webp"
}
}'