Grok Imagine (Kie.ai) icon

Grok Imagine (Kie.ai)

Generate images and videos using Grok Imagine via Kie.ai API

Upscale

AI-generated

Summary

Upscale a previously generated Grok Imagine image by specifying its task ID, optionally waiting for completion and receiving results via webhook callback.

Inputs

  • Task ID (to upscale) (required) — Task ID of a previous Grok Imagine generation to upscale
  • Reply URL — Webhook URL to call when the task completes
  • Reply Ref — Custom reference string passed back in the webhook callback
  • Wait for Completion — Whether to wait for the task to complete (polling every 3 seconds with a 5-minute timeout)

Output shape

a single JSON object with the task creation response or, if waiting for completion, the final task result including the upscaled image URL(s).

If 'Wait for Completion' is enabled, the operation polls the task status until success or failure or timeout; otherwise, it returns immediately after task creation. Results include parsed nested JSON in the response data for easy access in workflows.

Examples

Example 1: Upscale a Grok Imagine image task and wait for completion

Set 'Task ID (to upscale)' to the source image generation task ID, enable 'Wait for Completion', optionally provide a 'Reply URL' and 'Reply Ref' for webhook callbacks.

Links

Discussion