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

# Qwen 2.5 7B API

> Qwen 2.5 7B API on Venice: 32K context, $0.05 input and $0.13 output per 1M tokens. End-to-end encrypted. 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":"qwen-2-5-7b","name":"Qwen 2.5 7B","modality":"text","task":"chat","provider":"alibaba","description":"Qwen 2.5 7B Instruct running in a Trusted Execution Environment (TEE). A compact model with strong coding, math, and multilingual capabilities supporting 29+ languages, with hardware attestation evidence available for independent verification.","primary":"e2ee-qwen-2-5-7b-p","variants":["e2ee-qwen-2-5-7b-p"],"created":1773792000,"updated":1773792000,"privacy":["e2ee"],"openWeights":true},"models":[{"id":"e2ee-qwen-2-5-7b-p","name":"Qwen 2.5 7B","type":"text","modality":"text","task":"chat","variant":"e2ee","provider":"alibaba","created":1773792000,"description":"Qwen 2.5 7B Instruct running in a Trusted Execution Environment (TEE). A compact model with strong coding, math, and multilingual capabilities supporting 29+ languages, with hardware attestation evidence available for independent verification.","source":"https://huggingface.co/Qwen/Qwen2.5-7B-Instruct","privacy":"e2ee","openWeights":true,"text":{"context":32000,"maxOutput":4096,"caps":{"webSearch":true,"e2ee":true,"tee":true}},"pricing":{"input":0.05,"output":0.13,"blended":0.07},"headline":{"value":0.07,"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","note":"E2EE models require /chat/completions with E2EE headers."}],"family":"qwen-2-5-7b"}],"related":{"similar":[{"slug":"mercury-2-5","name":"Mercury 2.5","provider":"inception","modality":"text","privacy":["anonymized"],"created":1788825600,"headline":{"value":0.084375,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"nvidia-nemotron-3-nano-30b","name":"NVIDIA Nemotron 3 Nano 30B","provider":"nvidia","modality":"text","privacy":["private"],"created":1769472000,"headline":{"value":0.13125,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"mistral-small-3-2-24b-instruct","name":"Mistral Small 3.2 24B Instruct","provider":"mistral","modality":"text","privacy":["private"],"created":1768435200,"headline":{"value":0.132813,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"openai-gpt-oss-120b","name":"OpenAI GPT OSS 120B","provider":"openai","modality":"text","privacy":["private","e2ee"],"created":1762387200,"headline":{"value":0.1275,"unit":"per 1M tokens","basis":"blended"},"variants":2}],"versions":[{"slug":"qwen-3-8-27b","name":"Qwen 3.8 27B","provider":"alibaba","modality":"text","privacy":["private","e2ee"],"created":1786924800,"headline":{"value":1.1375,"unit":"per 1M tokens","basis":"blended"},"variants":2},{"slug":"qwen-3-6-27b","name":"Qwen 3.6 27B","provider":"alibaba","modality":"text","privacy":["private"],"created":1776988800,"headline":{"value":1.05625,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"qwen-3-5-9b","name":"Qwen 3.5 9B","provider":"alibaba","modality":"text","privacy":["private"],"created":1772668800,"headline":{"value":0.1125,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"qwen-3-5-397b","name":"Qwen 3.5 397B","provider":"alibaba","modality":"text","privacy":["anonymized"],"created":1771200000,"headline":{"value":1.6875,"unit":"per 1M tokens","basis":"blended"},"variants":1}]},"providers":{"alibaba":{"slug":"alibaba","name":"Alibaba Qwen","logo":"/images/icons/models/qwen.svg"},"inception":{"slug":"inception","name":"Inception","logo":"/images/icons/models/inception.svg"},"nvidia":{"slug":"nvidia","name":"NVIDIA","logo":"/images/icons/models/nvidia.svg"},"mistral":{"slug":"mistral","name":"Mistral AI","logo":"/images/icons/models/mistral.svg"},"openai":{"slug":"openai","name":"OpenAI","logo":"/images/icons/models/openai.svg"}},"faq":[{"q":"How much does the Qwen 2.5 7B API cost?","a":"$0.05 per 1M input tokens and $0.13 per 1M output tokens. Prices are in USD and can be paid in DIEM at parity."},{"q":"What is the Qwen 2.5 7B model ID?","a":"Use `e2ee-qwen-2-5-7b-p` as the `model` parameter."},{"q":"Is the Qwen 2.5 7B API private?","a":"Qwen 2.5 7B is end-to-end encrypted: prompts are encrypted on your device and decrypted only inside an attested hardware enclave, so neither Venice nor the GPU provider can read them."},{"q":"What is the context window of Qwen 2.5 7B?","a":"32K tokens of context, with up to 4K output tokens per response."},{"q":"What does Qwen 2.5 7B support?","a":"Qwen 2.5 7B supports web search."},{"q":"Which endpoint does the Qwen 2.5 7B API use?","a":"Call `POST /chat/completions`."}]}} />

<div className="vx-static">
  <Accordion title="Plain-text specification">
    # Qwen 2.5 7B API

    Qwen 2.5 7B is a large language model by Alibaba Qwen, available on the Venice API as `e2ee-qwen-2-5-7b-p`. It is end-to-end encrypted.

    Qwen 2.5 7B Instruct running in a Trusted Execution Environment (TEE). A compact model with strong coding, math, and multilingual capabilities supporting 29+ languages, with hardware attestation evidence available for independent verification.

    ## Qwen 2.5 7B API pricing

    | Model ID | Variant | Privacy | Price |
    | - | - | - | - |
    | `e2ee-qwen-2-5-7b-p` | E2EE | End-to-end encrypted | $0.05 input / $0.13 output per 1M tokens |

    ## Qwen 2.5 7B specifications

    | Spec | Value |
    | - | - |
    | Provider | Alibaba Qwen |
    | Released | Mar 18, 2026 |
    | Privacy | End-to-end encrypted |
    | Open weights | Yes |
    | Context window | 32K tokens |
    | Max output | 4K tokens |

    ## How to use the Qwen 2.5 7B API

    Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "e2ee-qwen-2-5-7b-p"` 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": "e2ee-qwen-2-5-7b-p",
        "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }]
      }'
    ```

    ## Qwen 2.5 7B API FAQ

    ### How much does the Qwen 2.5 7B API cost?

    $0.05 per 1M input tokens and $0.13 per 1M output tokens. Prices are in USD and can be paid in DIEM at parity.

    ### What is the Qwen 2.5 7B model ID?

    Use `e2ee-qwen-2-5-7b-p` as the `model` parameter.

    ### Is the Qwen 2.5 7B API private?

    Qwen 2.5 7B is end-to-end encrypted: prompts are encrypted on your device and decrypted only inside an attested hardware enclave, so neither Venice nor the GPU provider can read them.

    ### What is the context window of Qwen 2.5 7B?

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

    ### What does Qwen 2.5 7B support?

    Qwen 2.5 7B supports web search.

    ### Which endpoint does the Qwen 2.5 7B API use?

    Call `POST /chat/completions`.

    ## Related models

    * [Qwen 3.8 27B API](/models/qwen-3-8-27b): $0.45 input / $3.20 output per 1M tokens
    * [Qwen 3.6 27B API](/models/qwen-3-6-27b): $0.33 input / $3.25 output per 1M tokens
    * [Qwen 3.5 9B API](/models/qwen-3-5-9b): $0.10 input / $0.15 output per 1M tokens
    * [Qwen 3.5 397B API](/models/qwen-3-5-397b): $0.75 input / $4.50 output per 1M tokens
    * [Mercury 2.5 API](/models/mercury-2-5): $0.05 input / $0.19 output per 1M tokens
    * [NVIDIA Nemotron 3 Nano 30B API](/models/nvidia-nemotron-3-nano-30b): $0.07 input / $0.30 output per 1M tokens
    * [Mistral Small 3.2 24B Instruct API](/models/mistral-small-3-2-24b-instruct): $0.09 input / $0.25 output per 1M tokens
    * [OpenAI GPT OSS 120B API](/models/openai-gpt-oss-120b): $0.07 input / $0.30 output per 1M tokens
  </Accordion>
</div>


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