Grok Imagine Image

Generate or edit images from text prompts with aspect-ratio and output-format controls.

by xAIReady to run$0.0280 per image · $2.80 per 100 images

Example

You ask your agent

“Make a square image of a cobalt reusable water bottle on a pale stone plinth, with soft studio lighting.”

You get

Result
JPEG image file
What your agent sends and gets back (JSON)

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

Request

{
  "tool_id": "xai.grok-imagine-image",
  "input": {
    "prompt": "a cobalt reusable water bottle on a pale stone plinth, soft editorial studio lighting, crisp product photography",
    "num_images": 1,
    "resolution": "1k",
    "aspect_ratio": "1:1"
  }
}

Response

{
  "note": "images returned as artifacts",
  "images": [
    {
      "content_type": "image/jpeg"
    }
  ]
}

Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use Grok Imagine Image (tool ID: xai.grok-imagine-image). Ask me for the details you need, then show me the result.

Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.

No agent yet? Create your account on the web and connect one from your dashboard later.

Other tools for this job

Compare all 4 →

Questions

Is Grok Imagine Image by xAI free?

Scrollport has no free tier: it costs $0.0280 per image ($2.80 per 100 images), paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

Do I need an API key from xAI?

No. Your agent runs it through your Scrollport connection (MCP, the Scrollport CLI or the HTTP API), and Scrollport handles access to xAI, so you don't sign up with xAI or manage an API key.

Details

About this tool

Create images from a prompt with fal's current Grok Imagine Image endpoint. Aspect ratio, resolution and image count are explicit; Scrollport fixes asynchronous JPEG output and stores every result as a private artifact.

All inputs and outputs

Input

aspect_ratiostring · optional

Width-to-height ratio of the generated media.

enum: 2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:2

num_imagesinteger · optional

minimum: 1 · maximum: 4

promptstring · required

Instruction describing the requested generated output.

minLength: 1 · maxLength: 4096

resolutionstring · optional

Output resolution of the generated media.

enum: 1k, 2k

Output

imagesarray

Images returned for the request.

notestring

Note about how the result was produced or limited.

Errors and limits
  • invalid_input: num_images must be 1–4 and resolution must be 1k or 2kexample: {"prompt":"a cobalt reusable water bottle on a pale stone plinth, soft editorial studio lighting, crisp product photography","num_images":1,"aspect_ratio":"1:1","resolution":"1k"}