지시 이행력과 프롬프트 준수도가 향상된 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-1.5",
"input": {
"prompt": "make a scene in chelsea, london in the 1970s, photorealistic, everything in focus, with tons of people, and a bus with an advertisement for \"ImageGen 1.5 on Replicate\"",
"quality": "high",
"aspect_ratio": "1:1"
}
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
prompt | string | Yes | - | 원하는 이미지에 대한 텍스트 설명 |
openai_api_key | string | No | - | OpenAI API 키 (선택 사항 - 미입력 시 프록시 사용) |
aspect_ratio | string | No | 1:1 | 생성 이미지의 종횡비 1:13:22:3 |
input_fidelity | string | No | low | 입력 이미지의 스타일과 얼굴 특징을 얼마나 정밀하게 유지할지 설정 lowhigh |
input_images | array | No | - | 편집 또는 합성을 위한 입력 이미지 목록 |
number_of_images | integer | No | 1 | 생성할 이미지 수. 정확한 이미지당 과금을 위해 이 게이트웨이에서는 1로 제한됨 |
quality | string | No | auto | 생성 이미지의 품질. 크레딧 등급(low/medium/high/auto)을 결정함 lowmediumhighauto |
background | string | No | auto | 배경을 투명, 불투명, 또는 자동 선택 중에서 설정 autotransparentopaque |
output_compression | integer | No | 90 | 압축 수준 (0-100%) |
output_format | string | No | webp | 출력 이미지 형식 pngjpegwebp |
moderation | string | No | auto | 콘텐츠 검열 수준 autolow |
user_id | string | No | - | 최종 사용자를 식별하는 선택적 고유 ID. OpenAI가 남용 여부를 모니터링하고 탐지하는 데 도움이 됩니다. |
이 모델의 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-1.5" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:input_images=@your_file.png"공개 접근 가능한 URL을 직접 전달합니다. Storage API로 업로드한 파일의 file_url도 사용 가능합니다.
{
"model": "openai/gpt-image-1.5",
"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로도 제공 |
high 품질의 정교한 사실적 장면
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-1.5",
"input": {
"prompt": "make a scene in chelsea, london in the 1970s, photorealistic, everything in focus, with tons of people, and a bus with an advertisement for \"ImageGen 1.5 on Replicate\"",
"quality": "high",
"aspect_ratio": "1:1"
}
}'low 품질 등급을 활용한 빠르고 저렴한 반복 실험
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-1.5",
"input": {
"prompt": "a minimalist logo concept for a coffee brand, flat design",
"quality": "low"
}
}'