aspect_ratiostring · optionalWidth-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
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
“Make a square image of a cobalt reusable water bottle on a pale stone plinth, with soft studio lighting.”
Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.
{
"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"
}
}{
"note": "images returned as artifacts",
"images": [
{
"content_type": "image/jpeg"
}
]
}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.
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.
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.
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.
aspect_ratiostring · optionalWidth-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 · optionalminimum: 1 · maximum: 4
promptstring · requiredInstruction describing the requested generated output.
minLength: 1 · maxLength: 4096
resolutionstring · optionalOutput resolution of the generated media.
enum: 1k, 2k
imagesarrayImages returned for the request.
notestringNote about how the result was produced or limited.
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"}