deepseek logo

DeepSeek: DeepSeek V4 Flash 0731

Chat
deepseek/deepseek-v4-flash-0731
Created Aug 4, 2026|1M context|$0.20/M input tokens|$0.40/M output tokens|$0.07/M cache read
TEE

DeepSeek V4 Flash 0731 is a sparse mixture-of-experts model from DeepSeek, with 13B active parameters out of 284B total. This re-post-trained revision is suited for coding, reasoning, and agent workflows.

Providers for DeepSeek: DeepSeek V4 Flash 0731

RedPill routes this private model across verified providers with automatic fallbacks. Pricing is unified, so you pay the same price no matter which provider serves your request, while live metrics show first-token latency, speed, and uptime.

Total Context
1M
Input
$0.20/M
Output
$0.40/M
Cache Read
$0.07/M
ProviderFirst TokenSpeedUptime
phala logophala
CheckingCheckingChecking

Gateway API

RedPill provides a unified private completion API to all models and providers that you can call directly, or through the OpenAI SDK. Verification can be added without changing your model call pattern.

const response = await fetch("https://api.redpill.ai/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.REDPILL_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "model": "deepseek/deepseek-v4-flash-0731",
    "messages": [
      {
        "role": "user",
        "content": "What is the meaning of life?"
      }
    ],
    "provider": { "aci_verified": true }
  })
});

console.log("receipt", response.headers.get("x-receipt-id"));
console.log(await response.json());
Verify Privacy Evidence

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. Verify the gateway (nonce-bound, proves which protected workload serves you)
NONCE="$(openssl rand -hex 16)"
curl -s "https://api.redpill.ai/v1/attestation/report?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":"deepseek/deepseek-v4-flash-0731","messages":[{"role":"user","content":"Hello"}],"provider":{"aci_verified":true}}' -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

End-to-end encrypted AI through one gateway: private models, verified providers, unified pricing, live performance, and evidence your team can check.