[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Grok Imagine Image Quality Text to Image](https://spiral.ai/integrations/opencode/grok-imagine-image-quality-text-to-image)

# How to Use Grok Imagine Image Quality Text to Image in opencode

Use Grok Imagine Image Quality Text to Image for product scenes, illustrations, and posters described in words. Unlike Grok Imagine Image Quality Edit, it creates the starting picture without a reference image.

|  |  |
| --- | --- |
| Model | Grok Imagine Image Quality Text to Image |
| Available through | fal |
| Category | Image |
| Price | $0.065 per run at the default inputs. `resolution`: 1k (default) $0.065, 2k $0.091. $0.065 per unit of `num_images`. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Grok Imagine Image Quality Text to Image in opencode

- Read the homepage copy and color tokens in this project. Use Grok Imagine Image Quality Text to Image to create a 2K landscape illustration of a bicycle repair bench, with tools arranged around one wheel and open space on the left for the page headline.
- Read the game's art direction document. Use Grok Imagine Image Quality Text to Image to make a square 1K pixel-art concept of a nighttime corner store, viewed from the sidewalk, with warm light through the windows.
- Read the blog post about backups. Use Grok Imagine Image Quality Text to Image to create a 16:9 pencil illustration of one notebook sheltered beneath a large umbrella, with clear outlines and a plain background. Generate at 2K.
- Generate a product photo with Grok Imagine Image Quality Text to Image: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.
- Make four logo concepts for a coffee brand called "Northline" with Grok Imagine Image Quality Text to Image.

## How to set up Grok Imagine Image Quality Text to Image in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Grok Imagine Image Quality Text to Image**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "xai/grok-imagine-image/quality/text-to-image",
    "input": {
      "prompt": "Abstract human silhouette, golden particles ready to burst outward representing joy, data visualization style, emotional expression through particles, artistic…"
    }
  }'
```

Then paste one of the prompts above: opencode finds Grok Imagine Image Quality Text to Image on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Grok Imagine Image Quality Text to Image tools and prices

- [Grok Imagine Image Quality · Text to Image](https://spiral.ai/tools/fal/xai/grok-imagine-image/quality/text-to-image) (fal): $0.065 per run at the default inputs. `resolution`: 1k (default) $0.065, 2k $0.091. Per unit of `num_images`: 1k (default) $0.065, 2k $0.091.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| num_images | 1 to 4 | 1 | Number of images to generate. |
| aspect_ratio | 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 | 1:1 | Aspect ratio of the generated image. |
| resolution | 1k, 2k | 1k | Resolution of the generated image. `1k` for standard resolution, `2k` for high resolution. |
| output_format | jpeg, png, webp | jpeg | The format of the generated image. |

## What can you do with Grok Imagine Image Quality Text to Image in opencode?

Create visual assets for a project while the coding agent handles layout and implementation. Grok Imagine Image Quality can supply photographic or illustrated artwork for a page, game, or prototype.

### Product scene concepts

Explore a ceramic mug on a breakfast table, a perfume bottle by a window, or another product scene. Describe a new concept in words or edit an existing product image.

### Campaign illustrations

Develop an illustrated campaign image with a specified medium, palette, and focal subject. Create the initial artwork or restyle an existing composition.

### Poster concepts

Draft event posters with a short headline and a clear visual hierarchy. Start with a written brief or revise supplied artwork, then proofread the lettering.

### Game art direction

Explore a location or character in pixel art, pencil, or painted styles. Generate a concept from a description or transform an existing concept image.

### Editorial imagery

Create a visual metaphor for an article or newsletter. Specify one main subject and the desired photographic or illustrated treatment, or adapt an existing image.

### Packaging mockups

Explore label placement, material appearance, and short packaging text. Generate a package concept or revise a supplied mockup before a designer prepares the final artwork.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Grok Imagine Image Quality Text to Image in other agents

- [Amp](https://spiral.ai/integrations/amp/grok-imagine-image-quality-text-to-image)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/grok-imagine-image-quality-text-to-image)
- [Claude](https://spiral.ai/integrations/claude-desktop/grok-imagine-image-quality-text-to-image)
- [Claude Code](https://spiral.ai/integrations/claude-code/grok-imagine-image-quality-text-to-image)
- [Cline](https://spiral.ai/integrations/cline/grok-imagine-image-quality-text-to-image)
- [Codex](https://spiral.ai/integrations/codex/grok-imagine-image-quality-text-to-image)
- [Cursor](https://spiral.ai/integrations/cursor/grok-imagine-image-quality-text-to-image)
- [Devin](https://spiral.ai/integrations/devin/grok-imagine-image-quality-text-to-image)
- [dots](https://spiral.ai/integrations/dots/grok-imagine-image-quality-text-to-image)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/grok-imagine-image-quality-text-to-image)
- [Gemini](https://spiral.ai/integrations/gemini/grok-imagine-image-quality-text-to-image)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/grok-imagine-image-quality-text-to-image)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/grok-imagine-image-quality-text-to-image)
- [goose](https://spiral.ai/integrations/goose/grok-imagine-image-quality-text-to-image)
- [Grok](https://spiral.ai/integrations/grok/grok-imagine-image-quality-text-to-image)
- [Grok Build](https://spiral.ai/integrations/grok-build/grok-imagine-image-quality-text-to-image)
- [Hermes](https://spiral.ai/integrations/hermes/grok-imagine-image-quality-text-to-image)
- [Instinct](https://spiral.ai/integrations/instinct/grok-imagine-image-quality-text-to-image)
- [Manus](https://spiral.ai/integrations/manus/grok-imagine-image-quality-text-to-image)
- [Muse](https://spiral.ai/integrations/muse/grok-imagine-image-quality-text-to-image)
- [Muse Code](https://spiral.ai/integrations/muse-code/grok-imagine-image-quality-text-to-image)
- [n8n](https://spiral.ai/integrations/n8n/grok-imagine-image-quality-text-to-image)
- [Notion](https://spiral.ai/integrations/notion/grok-imagine-image-quality-text-to-image)
- [OpenClaw](https://spiral.ai/integrations/openclaw/grok-imagine-image-quality-text-to-image)
- [Perplexity](https://spiral.ai/integrations/perplexity/grok-imagine-image-quality-text-to-image)
- [Raycast](https://spiral.ai/integrations/raycast/grok-imagine-image-quality-text-to-image)
- [VS Code](https://spiral.ai/integrations/vscode/grok-imagine-image-quality-text-to-image)
- [Windsurf](https://spiral.ai/integrations/windsurf/grok-imagine-image-quality-text-to-image)
- [Zapier](https://spiral.ai/integrations/zapier/grok-imagine-image-quality-text-to-image)

## More opencode guides

- [Grok Imagine Image Quality Edit](https://spiral.ai/integrations/opencode/grok-imagine-image-quality-edit)
- [Hair Change](https://spiral.ai/integrations/opencode/hair-change)
- [Grok Imagine Image Edit](https://spiral.ai/integrations/opencode/grok-imagine-image-edit)
- [Headshot Generator](https://spiral.ai/integrations/opencode/headshot-generator)
- [Grok Imagine Image 2.0 Text to Image](https://spiral.ai/integrations/opencode/grok-imagine-image-2-0-text-to-image)
- [Hi3D Image to Relief](https://spiral.ai/integrations/opencode/hi3d-image-to-relief)

## Questions about Grok Imagine Image Quality Text to Image in opencode

**Can opencode use Grok Imagine Image Quality Text to Image?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Grok Imagine Image Quality Text to Image like any built-in tool.

**How much does Grok Imagine Image Quality Text to Image cost in opencode?**

$0.065 per run at the default inputs. `resolution`: 1k (default) $0.065, 2k $0.091. $0.065 per unit of `num_images`. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a fal account to use Grok Imagine Image Quality Text to Image in opencode?**

No. Spiral runs Grok Imagine Image Quality Text to Image on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Grok Imagine Image Quality Text to Image in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Grok Imagine Image Quality Text to Image runs?**

Grok Imagine Image Quality Text to Image runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What is Grok Imagine Image Quality good at?**

Product imagery, realistic scenes, and illustrated concepts are useful starting points. It also supports lettering inside pictures, which makes posters and packaging concepts worth trying.

**Can Grok Imagine Image Quality make illustrations instead of photographs?**

Yes. Supported styles include anime, oil paintings, pencil sketches, 3D renders, and game art; name the desired medium in your prompt.

**What resolution should I choose?**

Use 1K for composition drafts and 2K when reviewing smaller visual details. Both are documented output resolutions.

**Can Grok Imagine Image Quality render text in different languages?**

Text rendering across languages is supported. Supply the exact wording you want and check every rendered word before using the image.

**How should I check whether a result is usable?**

Compare it with the original brief: check the subject, object count, materials, and composition. Repeat that check after revisions instead of judging only the latest change.

