Pin the tested model ID.
Record the context and output limits with the date of your acceptance test. An alias is not a guarantee.
Long-context work breaks when the provider boundary is unclear. AIWave keeps the client familiar and makes the route, token classes, cache state and charge basis readable.
Context size is only one constraint. The request must also survive the route, the cache prefix, the output limit, and the account ledger.
READ THE FAILURE BEFORE YOU SCALERecord the context and output limits with the date of your acceptance test. An alias is not a guarantee.
Cache hit and miss fields explain why two similar requests can have different cost and first-token behavior.
Trim, retry, back off or switch the model only when the application has a rule for that state.
Reference rates for the two long-context routes are checked 2026-08-27. Use the worksheet below for a first estimate, then reconcile the result against the request ledger.
OFFICIAL DEEPSEEK REFERENCE · 2026-08-27| Route | Input / 1M | Cache hit / 1M | Output / 1M |
|---|---|---|---|
| deepseek-v4-flash | $0.638 | $0.0202884 | $1.914 |
| deepseek-v4-pro | $1.914 | $0.0637362 | $5.742 |
Static v1 worksheet. Fill in your own workload values; this page does not submit or store them.
Worksheet formula: input tokens × input rate + cache-hit tokens × cache-hit rate + output tokens × output rate, multiplied by requests. Confirm the selected model, group and live rate before funding.
Set the base URL, preserve the OpenAI request shape, then add a workload-specific overflow and 429 policy.
MIGRATION ROUTEimport os
from openai import OpenAI
client = OpenAI(
base_url="https://aiwave.live/v1",
api_key=os.environ["AIWAVE_API_KEY"],
)
response = client.chat.completions.create(
model="deepseek-v4-pro",
messages=[{"role": "user", "content": "Summarize the repository context."}],
max_tokens=2048,
)
print(response.usage)AIWave is the route around the workload, not a commitment to one model family.