Grok Imagine Image 2.0 API

Text-to-image plus multi-reference editing with up to three source images, selectable quality tiers, and 1K or 2K output resolution.

xAI이미지 생성출시 2026년 8월 7일독점 엔드포인트신규

Grok Imagine Image 2.0 소개

Text-to-image plus multi-reference editing with up to three source images, selectable quality tiers, and 1K or 2K output resolution.

다른 이름 Grok Imagine Image, xAI Grok Imagine Image 2.0

image generationimage editingmulti imagetext rendering

Grok Imagine Image 2.0 사양

모델 ID
grok-imagine-image-2-0
제공자
xAI
카테고리
이미지 생성
출시
2026년 8월 7일
입력
텍스트이미지
출력
이미지
엔드포인트
POST/v1/images/generationsPOST/v1/images/edits
대체 모델 ID
grok-imagine-image-2grok-imagine-image-2.0xai/grok-imagine-image-2-0xai/grok-imagine-image-2xai/grok-imagine-image-2.0

Grok Imagine Image 2.0 API 요금

EmpirioLabs 카탈로그의 실시간 종량제 요금입니다. 사용한 만큼만 결제하며 월 최소 요금이 없습니다.

유형
사양
요금
Low quality, 1K
per image
$0.048
Low quality, 2K
per image
$0.072
Medium quality, 1K
per image
$0.072
Medium quality, 2K
per image
$0.096
Image input
per image
$0.05
전체 가격 페이지에서 비교

Grok Imagine Image 2.0 API 호출 방법

Grok Imagine Image 2.0은(는) POST /v1/images/generations로 실행됩니다. 요청은 즉시 job_id를 반환하며, 작업이 완료될 때까지 GET /v1/jobs/{job_id}을 폴링한 뒤 결과에서 출력 URL을 읽으세요. 또는 "sync": true를 추가해 폴링을 생략할 수 있습니다. 요청이 열린 상태로 완성된 OpenAI 스타일 이미지 응답을 바로 반환하므로 OpenAI SDK가 그대로 동작합니다. EmpirioLabs 대시보드에서 API 키를 발급받으세요.

cURL: 작업 제출
curl https://api.empiriolabs.ai/v1/images/generations \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-image-2-0",
    "prompt": "Describe what you want Grok Imagine Image 2.0 to generate."
  }'
cURL: 결과 폴링
curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY"
Python
import requests

response = requests.post(
    "https://api.empiriolabs.ai/v1/images/generations",
    headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    json={
        "model": "grok-imagine-image-2-0",
        "prompt": "Describe what you want Grok Imagine Image 2.0 to generate.",
    },
)
job = response.json()

# Generation runs as an async job. Poll until it completes.
import time
while True:
    status = requests.get(
        f"https://api.empiriolabs.ai/v1/jobs/{job['job_id']}",
        headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    ).json()
    if status.get("status") in ("completed", "failed"):
        print(status)
        break
    time.sleep(5)
Grok Imagine Image 2.0 API 전체 레퍼런스

Grok Imagine Image 2.0 API 파라미터

EmpirioLabs에서 Grok Imagine Image 2.0 API가 지원하는 요청 파라미터입니다. 필드를 생략하면 기본값이 적용됩니다.

파라미터유형기본값범위 / 값설명
promptstring--Describe the image to create. With source images attached, this becomes the editing instruction. Refer to multiple images as <IMAGE_0>, <IMAGE_1>, and so on. Up to...
imagearray--One to three source images to edit, as URLs, data URIs, or uploaded image objects. Leave empty to generate from the prompt alone.
imagesarray--Plural alias for multiple uploaded image references.
qualityenummediumlow, mediumRendering quality. Low returns in a few seconds and costs less per image. Medium takes longer and resolves finer detail.
resolutionenum1k1k, 2kOutput resolution tier. 2k renders more pixels and costs more per image than 1k.
aspect_ratioenumautoauto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 19.5:9, ...Output aspect ratio. Auto lets the model pick the best fit for the prompt. For an edit, auto follows the first source image.
num_imagesnumber11 ~ 10Number of output images. Each output image is billed separately.
response_formatenumurlurl, b64_jsonReturn signed image URLs by default, or include base64 image data when b64_json is requested.

알아두면 좋은 점

Generates images from a text prompt, or edits up to three source images from a natural-language instruction.

Modes

  • Text-to-image: send a prompt with no image.
  • Image editing: attach one image and describe the change you want.
  • Multi-image editing: attach two or three images to combine subjects, transfer a style, or compose a scene. Refer to them in the prompt as <IMAGE_0>, <IMAGE_1>, and so on.

Example multi-image prompt

Place the product from <IMAGE_0> onto the marble surface in <IMAGE_1>.

Defaults

  • Medium quality at 1K resolution
  • Auto aspect ratio, so the model picks the best fit for the prompt
  • One output image per request

Quality and resolution

Quality selects how much work goes into the render: low returns in a few seconds, medium takes longer and resolves finer detail. Resolution selects the 1K or 2K output tier. The two combine into four price points, so a low 1K image is the cheapest option and a medium 2K image the most detailed.

Controls

Supports prompt, source images (URL or upload), quality, resolution, aspect ratio across fourteen ratios including auto, number of images, and response format.

Limits

  • Up to 3 source images per edit
  • Up to 10 output images per request
  • Prompt up to 8,000 characters

Billing

  • Charged per output image at the selected quality and resolution, plus a per-image fee for each source image you attach. Text-to-image has no source-image fee.
  • A request that fails validation or is rejected before any image is produced is not billed.
  • An image that is produced but then blocked by content policy is still billed. This follows xAI usage policy, which charges for the generation even when the output is blocked by the content safety check. Keep prompts and source images within the usage policy to avoid this.

Content safety

Generated images pass an automated content-safety check. An image flagged as explicit is not returned. Because the image is generated before the check runs, a flagged generation is still billed.

Grok Imagine Image 2.0 API: 자주 묻는 질문

Grok Imagine Image 2.0 API 비용은 얼마인가요?

EmpirioLabs에서 Grok Imagine Image 2.0은(는) 종량제로 청구됩니다: Low quality, 1K $0.048 per image; Low quality, 2K $0.072 per image; Medium quality, 1K $0.072 per image. 이 페이지의 실시간 요금표는 항상 API 청구 금액과 일치합니다.

Grok Imagine Image 2.0은(는) 어떤 엔드포인트를 사용하나요?

Grok Imagine Image 2.0은(는) api.empiriolabs.aiPOST /v1/images/generations를 통해 제공되며 표준 Bearer 토큰 인증을 사용합니다.

통합하기 전에 브라우저에서 Grok Imagine Image 2.0을(를) 사용해 볼 수 있나요?

네. EmpirioLabs 플레이그라운드에서 API와 동일한 파라미터로 Grok Imagine Image 2.0을(를) 브라우저에서 실행하므로 코드를 작성하기 전에 프롬프트를 테스트할 수 있습니다.

Grok Imagine Image 2.0 API 키는 어떻게 발급받나요?

EmpirioLabs 계정을 만든 다음 대시보드의 API Keys에서 키를 생성하세요. 요금은 종량제 크레딧이라 실행한 요청에 대해서만 결제합니다.

더 나은 엔드포인트를 사용할 준비가 되셨나요?

저희 가격을 확인하시거나 저희 스택에 자체 모델을 배포하고 싶으시면 연락해 주세요.