> ## Documentation Index
> Fetch the complete documentation index at: https://veniceai-feat-models-redesign.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Grok Imagine API

> Grok Imagine API on Venice: image generation and image editing up to 2K, from $0.03 per image. Private, with zero data retention.

export const HubMount = ({view, children, ...props}) => {
  const [hub, setHub] = useState(null);
  const [failed, setFailed] = useState(false);
  useEffect(() => {
    let alive = true;
    const w = window;
    if (!w.__veniceModelHub) {
      const urls = w.location.hostname === 'localhost' ? ['http://localhost:3333/data/model-hub.bundle.json', '/data/model-hub.bundle.json'] : ['/data/model-hub.bundle.json'];
      const load = i => fetch(urls[i], {
        cache: 'no-cache'
      }).then(res => {
        if (!res.ok) throw new Error(`bundle ${res.status}`);
        return res.json();
      }).catch(err => i + 1 < urls.length ? load(i + 1) : Promise.reject(err));
      const Frag = <></>.type;
      const h = (type, props, ...kids) => {
        const T = type;
        const {key, ...rest} = props || ({});
        if (!kids.length) return <T key={key} {...rest} />;
        if (kids.length === 1) return <T key={key} {...rest}>{kids[0]}</T>;
        return <T key={key} {...rest}>{kids.map((kid, i) => <Frag key={i}>{kid}</Frag>)}</T>;
      };
      w.__veniceModelHub = load(0).then(bundle => new Function(`return (${bundle.code})`)()({
        h,
        Fragment: Frag,
        useState,
        useEffect,
        useRef,
        useMemo,
        useCallback
      }));
    }
    w.__veniceModelHub.then(instance => {
      if (alive) setHub(instance);
    }).catch(() => {
      w.__veniceModelHub = null;
      if (alive) setFailed(true);
    });
    return () => {
      alive = false;
    };
  }, []);
  const View = hub ? hub[view] : null;
  if (View) return <View {...props}>{children}</View>;
  if (failed) {
    return <div className="vx-mount is-failed">
        <p className="vx-mount-note">The interactive model catalog could not load. The full data is below.</p>
        {children}
      </div>;
  }
  return <div className="vx-mount" aria-busy="true">
      <div className="vx-mount-skeleton" aria-hidden="true"><span /><span /><span /></div>
      <div className="vx-mount-source">{children}</div>
    </div>;
};

<HubMount view="ModelPage" data={{"family":{"slug":"grok-imagine-image","name":"Grok Imagine","modality":"image","task":"image-generation","provider":"xai","primary":"grok-imagine-image","variants":["grok-imagine-image","grok-imagine-edit"],"created":1769644800,"updated":1775692800,"privacy":["private"]},"models":[{"id":"grok-imagine-image","name":"Grok Imagine","type":"image","modality":"image","task":"image-generation","variant":"generate","provider":"xai","created":1775692800,"privacy":"private","image":{"resolutions":["1K","2K"],"defaultResolution":"1K","aspectRatios":["1:1","16:9","9:16","3:4","3:2","2:3"],"defaultAspectRatio":"1:1","promptLimit":7500,"steps":{"default":20,"max":50}},"pricing":{"perImage":0.03,"defaultResolution":"1K","byResolution":{"1K":0.03,"2K":0.04},"upscale":{"2x":0.02,"4x":0.08}},"headline":{"value":0.03,"unit":"per image","basis":"1K"},"endpoints":[{"id":"image-generate","method":"POST","path":"/image/generate","name":"Generate image","status":"stable","recommended":true},{"id":"images-generations","method":"POST","path":"/images/generations","name":"OpenAI-compatible images","status":"stable"}],"media":[{"prompt":"text","type":"image","url":"https://venice.ai/samples/grok-imagine-image/text.webp","title":"In-image text","caption":"A retro travel poster with the bold headline \"VENICE\" in large condensed serif type, sunset color palette, clean layout","page":"https://venice.ai/models/grok-imagine-image"},{"prompt":"photoreal","type":"image","url":"https://venice.ai/samples/grok-imagine-image/photoreal.webp","title":"Photorealism","caption":"Photorealistic close-up portrait of a weathered fisherman at golden hour, 85mm lens, shallow depth of field, natural skin texture","page":"https://venice.ai/models/grok-imagine-image"},{"prompt":"composition","type":"image","url":"https://venice.ai/samples/grok-imagine-image/composition.webp","title":"Instruction-following","caption":"A small red cube balanced on top of a large glossy blue sphere, with a green cone to the right, plain light-grey studio background","page":"https://venice.ai/models/grok-imagine-image"},{"prompt":"style","type":"image","url":"https://venice.ai/samples/grok-imagine-image/style.webp","title":"Illustration style","caption":"Cozy watercolor illustration of a hillside village in autumn, warm tones, soft paper texture","page":"https://venice.ai/models/grok-imagine-image"}],"family":"grok-imagine-image"},{"id":"grok-imagine-edit","name":"Grok Imagine","type":"inpaint","modality":"image","task":"image-edit","variant":"edit","provider":"xai","created":1769644800,"privacy":"private","image":{"resolutions":["1K","2K"],"defaultResolution":"1K","aspectRatios":["auto","1:1","16:9","9:16","3:4","3:2","2:3"],"promptLimit":7500,"combineImages":true},"pricing":{"perImage":0.03,"defaultResolution":"1K","byResolution":{"1K":0.03,"2K":0.04},"edit":0.03,"extraInputImage":0.0023},"headline":{"value":0.03,"unit":"per edit","basis":"1K"},"endpoints":[{"id":"image-edit","method":"POST","path":"/image/edit","name":"Edit image","status":"stable","recommended":true}],"family":"grok-imagine-image"}],"related":{"similar":[{"slug":"flux-2-pro","name":"Flux 2 Pro","provider":"bfl","modality":"image","privacy":["anonymized"],"created":1764086377,"headline":{"value":0.03,"unit":"per image","basis":"flat"},"variants":1},{"slug":"wan-2-7-image","name":"Wan 2.7","provider":"alibaba","modality":"image","privacy":["anonymized"],"created":1775001600,"headline":{"value":0.0375,"unit":"per image","basis":"flat"},"variants":1},{"slug":"krea-v2-medium","name":"Krea v2 Medium","provider":"krea","modality":"image","privacy":["anonymized"],"created":1779408000,"headline":{"value":0.04,"unit":"per image","basis":"flat"},"variants":1},{"slug":"krea-2-turbo","name":"Krea 2 Turbo","provider":"krea","modality":"image","privacy":["private"],"created":1782777600,"headline":{"value":0.04,"unit":"per image","basis":"1K"},"variants":1}],"versions":[{"slug":"grok-imagine-2-0","name":"Grok Imagine 2.0","provider":"xai","modality":"image","privacy":["private"],"created":1786406400,"headline":{"value":0.07,"unit":"per image","basis":"1K"},"variants":2}]},"providers":{"xai":{"slug":"xai","name":"xAI","logo":"/images/icons/models/grok.svg"},"bfl":{"slug":"bfl","name":"Black Forest Labs","logo":"/images/icons/models/BlackForestLabs.svg"},"alibaba":{"slug":"alibaba","name":"Alibaba Qwen","logo":"/images/icons/models/qwen.svg"},"krea":{"slug":"krea","name":"Krea","logo":"/images/icons/models/krea.svg"}},"faq":[{"q":"How much does the Grok Imagine API cost?","a":"$0.03 at 1K and $0.04 at 2K per image. Editing costs $0.03 per edit. Prices are in USD and can be paid in DIEM at parity."},{"q":"What is the Grok Imagine model ID?","a":"Use `grok-imagine-image` as the `model` parameter. Other variants: `grok-imagine-edit` (Edit)."},{"q":"Is the Grok Imagine API private?","a":"Grok Imagine is private: requests run on infrastructure Venice controls with zero data retention, and prompts and outputs are never stored or used for training."},{"q":"What resolutions does Grok Imagine support?","a":"Resolutions: 1K, 2K. Aspect ratios: 1:1, 16:9, 9:16, 3:4, 3:2, 2:3. Prompts up to 7,500 characters."},{"q":"Which endpoint does the Grok Imagine API use?","a":"Call `POST /image/generate`. `/images/generations` is also supported."}]}} />

<div className="vx-static">
  <Accordion title="Plain-text specification">
    # Grok Imagine API

    Grok Imagine is an image generation and image editing model by xAI, available on the Venice API as `grok-imagine-image`. It runs privately, with zero data retention.

    ## Grok Imagine API pricing

    | Model ID | Variant | Privacy | Price |
    | - | - | - | - |
    | `grok-imagine-image` | Generate | Private | \$0.03 per image |
    | `grok-imagine-edit` | Edit | Private | \$0.03 per edit |

    ## Grok Imagine specifications

    | Spec | Value |
    | - | - |
    | Provider | xAI |
    | Released | Apr 9, 2026 |
    | Privacy | Private |
    | Resolutions | 1K, 2K |
    | Aspect ratios | 1:1, 16:9, 9:16, 3:4, 3:2, 2:3 |
    | Prompt limit | 7,500 characters |

    ## How to use the Grok Imagine API

    Send requests to `POST https://api.venice.ai/api/v1/image/generate` with `"model": "grok-imagine-image"` and your API key.

    ```bash theme={null}
    curl https://api.venice.ai/api/v1/image/generate \
      -H "Authorization: Bearer $VENICE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "grok-imagine-image",
        "prompt": "A retro travel poster with the bold headline \"VENICE\" in large condensed serif type, sunset color palette",
        "resolution": "1K",
        "aspect_ratio": "1:1"
      }'
    ```

    ## Grok Imagine API FAQ

    ### How much does the Grok Imagine API cost?

    $0.03 at 1K and $0.04 at 2K per image. Editing costs \$0.03 per edit. Prices are in USD and can be paid in DIEM at parity.

    ### What is the Grok Imagine model ID?

    Use `grok-imagine-image` as the `model` parameter. Other variants: `grok-imagine-edit` (Edit).

    ### Is the Grok Imagine API private?

    Grok Imagine is private: requests run on infrastructure Venice controls with zero data retention, and prompts and outputs are never stored or used for training.

    ### What resolutions does Grok Imagine support?

    Resolutions: 1K, 2K. Aspect ratios: 1:1, 16:9, 9:16, 3:4, 3:2, 2:3. Prompts up to 7,500 characters.

    ### Which endpoint does the Grok Imagine API use?

    Call `POST /image/generate`. `/images/generations` is also supported.

    ## Related models

    * [Grok Imagine 2.0 API](/models/grok-imagine-2-0): \$0.07 per image
    * [Flux 2 Pro API](/models/flux-2-pro): \$0.03 per image
    * [Wan 2.7 API](/models/wan-2-7-image): \$0.04 per image
    * [Krea v2 Medium API](/models/krea-v2-medium): \$0.04 per image
    * [Krea 2 Turbo API](/models/krea-2-turbo): \$0.04 per image
  </Accordion>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.