> ## 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 4.5 API

> Grok 4.5 API on Venice: 500K context, $2.27 input and $6.80 output per 1M tokens. Private, with zero data retention. Pricing, specs and code examples.

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-4-5","name":"Grok 4.5","modality":"text","task":"chat","provider":"xai","description":"Grok 4.5 is xAI's intelligent coding model for agentic software engineering and workflow tasks, with function calling, structured outputs, and a 500K-token context window.","primary":"grok-4-5","variants":["grok-4-5"],"created":1783382400,"updated":1783382400,"privacy":["private"]},"models":[{"id":"grok-4-5","name":"Grok 4.5","type":"text","modality":"text","task":"chat","variant":"standard","provider":"xai","created":1783382400,"description":"Grok 4.5 is xAI's intelligent coding model for agentic software engineering and workflow tasks, with function calling, structured outputs, and a 500K-token context window.","source":"https://docs.x.ai/developers/models","privacy":"private","text":{"context":500000,"maxOutput":32000,"reasoning":{"supported":true,"effort":["low","medium","high"],"defaultEffort":"high"},"caps":{"tools":true,"structured":true,"vision":true,"maxImages":10,"webSearch":true,"xSearch":true,"code":true}},"pricing":{"input":2.27,"output":6.8,"cacheRead":0.34,"blended":3.4025,"extended":{"threshold":200000,"input":4.53,"output":13.6,"cacheRead":0.68}},"headline":{"value":3.4025,"unit":"per 1M tokens","basis":"blended"},"endpoints":[{"id":"chat","method":"POST","path":"/chat/completions","name":"Chat Completions","status":"stable","recommended":true},{"id":"responses","method":"POST","path":"/responses","name":"Responses","status":"alpha"}],"family":"grok-4-5"}],"related":{"similar":[{"slug":"gemini-3-5-flash","name":"Gemini 3.5 Flash","provider":"google","modality":"text","privacy":["anonymized"],"created":1779408000,"headline":{"value":3.525,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"qwen-3-8-max","name":"Qwen 3.8 Max","provider":"alibaba","modality":"text","privacy":["anonymized"],"created":1784678400,"headline":{"value":3.75,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"qwen-3-8-2-4t","name":"Qwen 3.8 2.4T","provider":"alibaba","modality":"text","privacy":["private"],"created":1786492800,"headline":{"value":3.75,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"qwen-3-7-max","name":"Qwen 3.7 Max","provider":"alibaba","modality":"text","privacy":["anonymized"],"created":1779408000,"headline":{"value":4.0375,"unit":"per 1M tokens","basis":"blended"},"variants":1}],"versions":[{"slug":"grok-4-7","name":"Grok 4.7","provider":"xai","modality":"text","privacy":["private"],"created":1789516800,"headline":{"value":3.4025,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"grok-4-6","name":"Grok 4.6","provider":"xai","modality":"text","privacy":["private"],"created":1786320000,"headline":{"value":3.4025,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"grok-4-3","name":"Grok 4.3","provider":"xai","modality":"text","privacy":["private"],"created":1776470400,"headline":{"value":1.7725,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"grok-4-20","name":"Grok 4.20","provider":"xai","modality":"text","privacy":["private"],"created":1773273600,"headline":{"value":1.7725,"unit":"per 1M tokens","basis":"blended"},"variants":1}]},"providers":{"xai":{"slug":"xai","name":"xAI","logo":"/images/icons/models/grok.svg"},"google":{"slug":"google","name":"Google","logo":"/images/icons/models/google.svg"},"alibaba":{"slug":"alibaba","name":"Alibaba Qwen","logo":"/images/icons/models/qwen.svg"}},"faq":[{"q":"How much does the Grok 4.5 API cost?","a":"$2.27 per 1M input tokens and $6.80 per 1M output tokens, with cached input at $0.34 per 1M. Prices are in USD and can be paid in DIEM at parity."},{"q":"What is the Grok 4.5 model ID?","a":"Use `grok-4-5` as the `model` parameter."},{"q":"Is the Grok 4.5 API private?","a":"Grok 4.5 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 is the context window of Grok 4.5?","a":"500K tokens of context, with up to 32K output tokens per response."},{"q":"What does Grok 4.5 support?","a":"Grok 4.5 supports function calling, structured outputs, reasoning, image input, web search and prompt caching. Reasoning effort is adjustable with `reasoning_effort`: low, medium and high (default high)."},{"q":"Which endpoint does the Grok 4.5 API use?","a":"Call `POST /chat/completions`. `/responses` (Alpha) is also supported."}]}} />

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

    Grok 4.5 is a large language model by xAI, available on the Venice API as `grok-4-5`. It runs privately, with zero data retention.

    Grok 4.5 is xAI's intelligent coding model for agentic software engineering and workflow tasks, with function calling, structured outputs, and a 500K-token context window.

    ## Grok 4.5 API pricing

    | Model ID | Variant | Privacy | Price |
    | - | - | - | - |
    | `grok-4-5` | Standard | Private | $2.27 input / $6.80 output per 1M tokens |

    ## Grok 4.5 specifications

    | Spec | Value |
    | - | - |
    | Provider | xAI |
    | Released | Jul 7, 2026 |
    | Privacy | Private |
    | Context window | 500K tokens |
    | Max output | 32K tokens |
    | Reasoning effort | low, medium, high |

    ## How to use the Grok 4.5 API

    Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "grok-4-5"` and your API key.

    ```bash theme={null}
    curl https://api.venice.ai/api/v1/chat/completions \
      -H "Authorization: Bearer $VENICE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "grok-4-5",
        "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
        "reasoning_effort": "high"
      }'
    ```

    ## Grok 4.5 API FAQ

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

    $2.27 per 1M input tokens and $6.80 per 1M output tokens, with cached input at \$0.34 per 1M. Prices are in USD and can be paid in DIEM at parity.

    ### What is the Grok 4.5 model ID?

    Use `grok-4-5` as the `model` parameter.

    ### Is the Grok 4.5 API private?

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

    ### What is the context window of Grok 4.5?

    500K tokens of context, with up to 32K output tokens per response.

    ### What does Grok 4.5 support?

    Grok 4.5 supports function calling, structured outputs, reasoning, image input, web search and prompt caching. Reasoning effort is adjustable with `reasoning_effort`: low, medium and high (default high).

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

    Call `POST /chat/completions`. `/responses` (Alpha) is also supported.

    ## Related models

    * [Grok 4.7 API](/models/grok-4-7): $2.27 input / $6.80 output per 1M tokens
    * [Grok 4.6 API](/models/grok-4-6): $2.27 input / $6.80 output per 1M tokens
    * [Grok 4.3 API](/models/grok-4-3): $1.42 input / $2.83 output per 1M tokens
    * [Grok 4.20 API](/models/grok-4-20): $1.42 input / $2.83 output per 1M tokens
    * [Gemini 3.5 Flash API](/models/gemini-3-5-flash): $1.55 input / $9.45 output per 1M tokens
    * [Qwen 3.8 Max API](/models/qwen-3-8-max): $2.50 input / $7.50 output per 1M tokens
    * [Qwen 3.8 2.4T API](/models/qwen-3-8-2-4t): $2.50 input / $7.50 output per 1M tokens
    * [Qwen 3.7 Max API](/models/qwen-3-7-max): $2.70 input / $8.05 output per 1M tokens
  </Accordion>
</div>


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