Grok Imagine Image 2.0

Генерация изображений
grok-imagine-image-2.0
отxAIСоздана 7 авг. 2026 г.
Генерация изображений

Grok Imagine Image 2.0 is xAI’s image generation and editing model. It creates images from text and transforms reference images with improved instruction following, typography and visual consistency. The Kie integration exposes separate generation and editing routes; editing can use multiple reference images and supports common aspect ratios.

Пример кода

Пример использования модели через API на Python или cURL. Замените значения-заполнители своим API-ключом и ID модели.

Базовый пример запроса. Проверьте разрешения API-ключа. Подробнее см. документацию.
curl https://api.makura.ai/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{
  "model": "grok-imagine-image-2.0",
  "prompt": "Небольшая обсерватория под северным сиянием",
  "n": 1,
  "size": "1024x1024"
}'