Skip to main content
Core.Today
|
xAI보통울트라

Grok Imagine Image Quality Edit

xAI Grok Imagine Image Quality의 전용 편집 엔드포인트입니다. 디테일을 보존하는 최고 품질 편집 티어입니다.

140 크레딧
이미지당
Grok Imagine 계열 최고 품질 편집
디테일을 보존하는 보정·복원
요청당 최대 10개 편집 변형 생성 (장당 과금)
1k / 2k 해상도 티어 (2k는 요율 상향)

지금 바로 실행해보세요

콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요

로그인 후 사용해보기

AI 어시스턴트에서 사용하기

이 모델의 사용법을 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": "xai/grok-imagine-image-quality/edit",
  "input": {
    "prompt": "Restore this photo and enhance fine detail, keep composition",
    "image": "https://example.com/old-photo.jpg"
  }
}'

파라미터

파라미터타입필수기본값설명
promptstringYes-편집 내용을 설명하는 텍스트 프롬프트입니다.
imagestringYes-편집할 원본 이미지 URL입니다. jpg, jpeg, png를 지원합니다(최대 20MiB).
nintegerNo1생성할 편집 변형 수(1~10). 장당 과금됩니다.
aspect_ratiostringNoauto출력 이미지의 종횡비입니다.
auto1:116:99:164:33:43:22:32:11:219.5:99:19.520:99:20
resolutionstringNo-출력 해상도 티어입니다. 2k는 더 높은 요율로 과금되며, 미지정 시 1k입니다.
1k2k

파일 입력 방법

이 모델의 image 파라미터에 파일을 전달하는 방법은 3가지입니다.

추천

이미지 URL 전달

공개 접근 가능한 URL을 직접 전달합니다. Storage API(POST /v1/files/upload-url)로 업로드하면 파일이 S3로 직접 올라가고(파일당 50MB), 반환된 file_url을 그대로 쓰면 됩니다.

{
  "model": "xai/grok-imagine-image-quality/edit",
  "input": {
    "prompt": "your prompt here",
    "image": "https://example.com/image.jpg"
  }
}

간편 업로드 (Multipart)

POST /v1/predictions/upload에 파일을 직접 첨부합니다. 별도 업로드 과정이 없는 대신, 파일이 API 서버를 거치므로 요청 전체 10MB 제한이 적용됩니다.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=xai/grok-imagine-image-quality/edit" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:image=@your_file.png"
File Upload 문서에서 Presigned URL 방식 등 더 자세한 업로드 방법을 확인하세요.

공통 파라미터

POST /v1/predictions 요청 시 사용되는 공통 파라미터입니다.

파라미터타입필수기본값설명
modelstringYes-모델 식별자
inputobjectYes-위 테이블의 모델별 파라미터를 포함하는 객체
output_folderstringNo-결과물 저장 폴더 경로 (최대 256자, '..' 사용 불가)
webhook_urlstringNo-완료 시 호출할 Webhook URL
is_publicbooleanNofalsetrue 시 결과물을 영구 공개 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": "xai/grok-imagine-image-quality/edit",
  "input": {
    "prompt": "Restore this photo and enhance fine detail, keep composition",
    "image": "https://example.com/old-photo.jpg"
  }
}'

팁 & 모범 사례

1속도·비용보다 편집 품질이 중요할 때 이 티어를 사용하세요
2업스트림이 초당 5요청으로 제한됩니다 - 병렬 호출 대신 n으로 배치 생성하세요
3저비용 반복 탐색은 xai/grok-imagine-image/edit부터 시작하세요

사용 사례

히어로 이미지의 최종 품질 보정
사진 복원과 디테일 강화
하이엔드 제품 이미지 편집