RedPill
qwen logo

Qwen2.5 7B Instruct

GPU TEE
Chat
qwen/qwen-2.5-7b-instruct
Created Oct 3, 2025|33K context|$0.04/M input tokens|$0.10/M output tokens
Intel TDXNVIDIA CC

Qwen2.5 7B is the latest series of Qwen large language models. Qwen2.5 brings the following improvements upon Qwen2:

  • Significantly more knowledge and has greatly improved capabilities in coding and mathematics, thanks to our specialized expert models in these domains.

  • Significant improvements in instruction following, generating long texts (over 8K tokens), understanding structured data (e.g, tables), and generating structured outputs especially JSON. More resilient to the diversity of system prompts, enhancing role-play implementation and condition-setting for chatbots.

  • Long-context Support up to 128K tokens and can generate up to 8K tokens.

  • Multilingual support for over 29 languages, including Chinese, English, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.

Usage of this model is subject to Tongyi Qianwen LICENSE AGREEMENT.

Providers for Qwen2.5 7B Instruct

RedPill routes requests across these providers with automatic fallbacks to maximize uptime. Pricing is unified — you pay the same price no matter which provider serves your request.

Total Context
33K
Input
$0.04/M
Output
$0.10/M
ProviderTTFTThroughputUptime
phala logophala

API

RedPill provides a unified completion API to all models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.

fetch("https://api.redpill.ai/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR-REDPILL-API-KEY>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "model": "qwen/qwen-2.5-7b-instruct",
    "messages": [
      {
        "role": "user",
        "content": "What is the meaning of life?"
      }
    ]
  })
})
Verify Evidence

Confidential GPU-TEE responses carry two proof layers you can check yourself: a nonce-bound attestation report for the gateway, and a signed receipt that binds your request and response to an attested upstream session.

# 1. Attest the gateway (nonce-bound, proves which TEE workload serves you)
NONCE="$(openssl rand -hex 16)"
curl -s "https://api.redpill.ai/v1/aci/attestation?nonce=$NONCE" \
  -H "Authorization: Bearer $REDPILL_API_KEY" -o report.json

# 2. Call the model and capture the x-receipt-id response header
curl -s "https://api.redpill.ai/v1/chat/completions" -D headers.txt \
  -H "Authorization: Bearer $REDPILL_API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"qwen/qwen-2.5-7b-instruct","messages":[{"role":"user","content":"Hello"}]}' -o response.json
RECEIPT_ID="$(grep -i ^x-receipt-id headers.txt | tr -d '\r' | awk '{print $2}')"

# 3. Fetch the signed receipt, then follow it to the attested session
curl -s "https://api.redpill.ai/v1/aci/receipts/$RECEIPT_ID" \
  -H "Authorization: Bearer $REDPILL_API_KEY" -o receipt.json
SESSION_ID="$(jq -r '.event_log[]|select(.type=="upstream.verified").session_id' receipt.json)"
curl -s "https://api.redpill.ai/v1/aci/sessions/$SESSION_ID" \
  -H "Authorization: Bearer $REDPILL_API_KEY"
Full verification walkthrough →
RedPill

The confidential AI cloud: verifiable inference with attestation reports, signed receipts, audit sessions, and E2EE paths.