> ## 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.

# Gemini 3.1 Pro Preview API

> Gemini 3.1 Pro Preview API on Venice: 1M context, $2.50 input and $15.00 output per 1M tokens. Anonymized access without your identity.

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":"gemini-3-1-pro-preview","name":"Gemini 3.1 Pro Preview","modality":"text","task":"chat","provider":"google","description":"Gemini 3.1 Pro is the latest evolution of Google flagship frontier model with 1M context, advancing high-precision multimodal reasoning across text, image, and code.","primary":"gemini-3-1-pro-preview","variants":["gemini-3-1-pro-preview"],"created":1771459200,"updated":1771459200,"privacy":["anonymized"]},"models":[{"id":"gemini-3-1-pro-preview","name":"Gemini 3.1 Pro Preview","type":"text","modality":"text","task":"chat","variant":"standard","provider":"google","created":1771459200,"description":"Gemini 3.1 Pro is the latest evolution of Google flagship frontier model with 1M context, advancing high-precision multimodal reasoning across text, image, and code.","source":"https://deepmind.google/models/gemini/pro/","privacy":"anonymized","text":{"context":1000000,"maxOutput":32768,"reasoning":{"supported":true,"effort":["low","medium","high"],"defaultEffort":"low"},"caps":{"tools":true,"structured":true,"vision":true,"maxImages":20,"videoInput":true,"audioInput":true,"webSearch":true}},"pricing":{"input":2.5,"output":15,"cacheRead":0.5,"cacheWrite":0.5,"blended":5.625,"extended":{"threshold":200000,"input":5,"output":22.5,"cacheRead":0.5,"cacheWrite":0.5}},"headline":{"value":5.625,"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":"gemini-3-1-pro-preview"}],"related":{"similar":[{"slug":"gpt-4o","name":"GPT-4o","provider":"openai","modality":"text","privacy":["anonymized"],"created":1772236800,"headline":{"value":5.46875,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"gpt-5-3-codex","name":"GPT-5.3 Codex","provider":"openai","modality":"text","privacy":["anonymized"],"created":1771891200,"headline":{"value":6.0175,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"gpt-5-2","name":"GPT-5.2","provider":"openai","modality":"text","privacy":["anonymized"],"created":1765584000,"headline":{"value":6.0175,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"gpt-5-6-terra","name":"GPT-5.6 Terra","provider":"openai","modality":"text","privacy":["anonymized"],"created":1783555200,"headline":{"value":5.625,"unit":"per 1M tokens","basis":"blended"},"variants":1}],"versions":[]},"providers":{"google":{"slug":"google","name":"Google","logo":"/images/icons/models/google.svg"},"openai":{"slug":"openai","name":"OpenAI","logo":"/images/icons/models/openai.svg"}},"faq":[{"q":"How much does the Gemini 3.1 Pro Preview API cost?","a":"$2.50 per 1M input tokens and $15.00 per 1M output tokens, with cached input at $0.50 per 1M. Prices are in USD and can be paid in DIEM at parity."},{"q":"What is the Gemini 3.1 Pro Preview model ID?","a":"Use `gemini-3-1-pro-preview` as the `model` parameter."},{"q":"Is the Gemini 3.1 Pro Preview API private?","a":"Gemini 3.1 Pro Preview is anonymized: Venice forwards requests to the provider without your identity, but the provider may retain prompt data, so use a private model for sensitive work."},{"q":"What is the context window of Gemini 3.1 Pro Preview?","a":"1M tokens of context, with up to 32K output tokens per response."},{"q":"What does Gemini 3.1 Pro Preview support?","a":"Gemini 3.1 Pro Preview 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 low)."},{"q":"Which endpoint does the Gemini 3.1 Pro Preview API use?","a":"Call `POST /chat/completions`. `/responses` (Alpha) is also supported."}]}} />

<div className="vx-static">
  <Accordion title="Plain-text specification">
    # Gemini 3.1 Pro Preview API

    Gemini 3.1 Pro Preview is a large language model by Google, available on the Venice API as `gemini-3-1-pro-preview`. Requests are anonymized, so the provider never sees your identity.

    Gemini 3.1 Pro is the latest evolution of Google flagship frontier model with 1M context, advancing high-precision multimodal reasoning across text, image, and code.

    ## Gemini 3.1 Pro Preview API pricing

    | Model ID | Variant | Privacy | Price |
    | - | - | - | - |
    | `gemini-3-1-pro-preview` | Standard | Anonymized | $2.50 input / $15.00 output per 1M tokens |

    ## Gemini 3.1 Pro Preview specifications

    | Spec | Value |
    | - | - |
    | Provider | Google |
    | Released | Feb 19, 2026 |
    | Privacy | Anonymized |
    | Context window | 1M tokens |
    | Max output | 32K tokens |
    | Reasoning effort | low, medium, high |

    ## How to use the Gemini 3.1 Pro Preview API

    Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "gemini-3-1-pro-preview"` 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": "gemini-3-1-pro-preview",
        "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
        "reasoning_effort": "low"
      }'
    ```

    ## Gemini 3.1 Pro Preview API FAQ

    ### How much does the Gemini 3.1 Pro Preview API cost?

    $2.50 per 1M input tokens and $15.00 per 1M output tokens, with cached input at \$0.50 per 1M. Prices are in USD and can be paid in DIEM at parity.

    ### What is the Gemini 3.1 Pro Preview model ID?

    Use `gemini-3-1-pro-preview` as the `model` parameter.

    ### Is the Gemini 3.1 Pro Preview API private?

    Gemini 3.1 Pro Preview is anonymized: Venice forwards requests to the provider without your identity, but the provider may retain prompt data, so use a private model for sensitive work.

    ### What is the context window of Gemini 3.1 Pro Preview?

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

    ### What does Gemini 3.1 Pro Preview support?

    Gemini 3.1 Pro Preview 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 low).

    ### Which endpoint does the Gemini 3.1 Pro Preview API use?

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

    ## Related models

    * [GPT-4o API](/models/gpt-4o): $3.13 input / $12.50 output per 1M tokens
    * [GPT-5.3 Codex API](/models/gpt-5-3-codex): $2.19 input / $17.50 output per 1M tokens
    * [GPT-5.2 API](/models/gpt-5-2): $2.19 input / $17.50 output per 1M tokens
    * [GPT-5.6 Terra API](/models/gpt-5-6-terra): $2.50 input / $15.00 output per 1M tokens
  </Accordion>
</div>


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