Pular para o conteúdo principal
Model logo

API do Grok Imagine 2.0 Image

  • Texto para imagem
  • Imagem para imagem

Grok Imagine 2.0 Image faz parte da família de modelos Grok ImagineVer todos os modelos Grok Imagine

Toque para enviarPNG, JPG, WEBP, GIF · Máx. 100 MB
Saída

Seu image gerado aparecerá aqui

What is Grok Imagine 2.0 Image?

Grok Imagine 2.0 Image is the quality-focused image model in the Grok Imagine family. Use xai/grok-imagine-2.0-image for final-quality text-to-image generation and reference-guided edits. Omit image_urls for a fresh generation, or pass 1 to 5 reference images to edit, composite, or restyle them while remaining on the same 2.0 model.

The former enable_pro input is no longer supported. Speed and quality now have separate model IDs: xai/grok-imagine-image for speed and xai/grok-imagine-2.0-image for quality.

Grok Imagine 2.0 Image key features

Quality selected by model ID

Choose xai/grok-imagine-2.0-image directly. There is no Pro toggle and no hidden model switch in the request.

Text-to-image and reference editing

Generate from text alone or add 1 to 5 images for editing. References change the workflow, not the selected model.

Five production-ready aspect ratios

Generate at 1:1, 2:3, 3:2, 9:16, or 16:9 for product, social, portrait, and widescreen layouts.

Prompt enhancement when needed

Use upsample_prompt to expand a short creative brief, or leave it disabled for direct prompt control.

What Grok Imagine 2.0 Image is best for

  • Final campaign assets

    Use the 2.0 quality model after composition and messaging have been approved.

  • Reference-guided product work

    Combine up to 5 references while keeping the request on the quality model.

  • Portraits and hero imagery

    Choose 2:3, 3:2, or 16:9 for polished assets where visual fidelity matters more than iteration speed.

  • Two-stage workflows

    Draft with xai/grok-imagine-image, then move the winning prompt and references to this model for the quality pass.

API example

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "xai/grok-imagine-2.0-image",
    "input": {
      "prompt": "A cinematic product portrait with detailed studio lighting",
      "aspect_ratio": "2:3"
    }
  }'

Successful submission returns a task_id. Poll GET /v1/tasks/<task_id> or provide a callback_url to receive the completed image.

Perguntas frequentes

Perguntas frequentes sobre Grok Imagine 2.0 Image

Grok Imagine 2.0 Image is xAI's quality-focused image model for text-to-image generation and reference-guided editing.

Select xai/grok-imagine-2.0-image. The old enable_pro input has been removed, so quality is selected by model ID instead of a boolean parameter.

No. Passing 1 to 5 image_urls activates edit mode on Grok Imagine 2.0 Image; it never switches to another model.

Five. 1:1, 2:3, 3:2, 9:16, and 16:9.

Set upsample_prompt to true to let the API expand a short brief before generation. Leave it off when the prompt should be followed verbatim.

Guias e comparações do Grok Imagine 2.0 Image

Confira preços, limites e resultados testados antes de usar este modelo.