Complex change review
Review invariants, failure paths and test gaps in a proposed refactor.
DeepSeek · OpenAI-compatible API
deepseek/deepseek-v4-pro-0813USD / 1M tokens
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.iteracompute.com/v1",
api_key=os.environ["ITERACOMPUTE_API_KEY"],
)
response = client.chat.completions.create(
model="deepseek/deepseek-v4-pro-0813",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.iteracompute.com/v1",
apiKey: process.env.ITERACOMPUTE_API_KEY,
});
const response = await client.chat.completions.create({
model: "deepseek/deepseek-v4-pro-0813",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);curl https://api.iteracompute.com/v1/chat/completions \
-H "Authorization: Bearer $ITERACOMPUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4-pro-0813",
"messages": [{"role": "user", "content": "Hello!"}]
}'Catalog updated: 2026-10-19.
Text input, streaming and structured outputs; up to 393,216 output tokens.
Review invariants, failure paths and test gaps in a proposed refactor.
Compare distant source sections and require line references for conclusions.
Task suggestions based on catalog features and price, not model quality benchmarks.
Prices in USD per 1M tokens.
Assume 60,000 aggregate input tokens and 5,000 billable output tokens across all calls. No cache hit.
60,000 × $0.79 / 1M + 5,000 × $2.38 / 1M = $0.059300
If usage actually reports 45,000 of those input tokens as cached, replace that portion at the cached-input rate ($0.026/1M): $0.024920. Cached tokens are part of total input, never added on top.
Illustrative calculation using the 2026-10-19 catalog snapshot. Include every agent call and retry, repeated history and billable reasoning output; settle against actual usage and current Console prices.
Uses the 2026-10-19 catalog snapshot, independently of the live prices above. USD per 1M tokens; an estimate, not a bill.
Estimate includes standard text input, cache reads and text output only. Long-context premiums, service tiers, cache writes, image output and tool fees are excluded.
Input includes cached tokens; output includes billable reasoning. Count every API request, including agent steps and retries.
Estimated monthly cost
—USD / monthDeepSeek V4 Pro
Monthly cost = requests × [input × (1 − cached share) × input rate + input × cached share × cache-read rate + output × output rate] / 1,000,000.
Cached tokens are part of total input, never added on top. Use actual cache-read hits from usage; repeating a prompt does not guarantee a hit. Missing rates are unconfirmed, not $0. Separate cache-write, storage and other additional fees are excluded. Settle against actual usage and current Console prices.
| Parameter / protocol field | Usage |
|---|---|
model / messages | Use the exact model ID and chat message list |
tools / tool_calls / tool messages | Use tools to define functions and role=tool to return their results |
stream / stream_options.include_usage | Use SSE streaming with final usage |
max_tokens | Set an output budget within the model and account limits |
Parameters vary by model. Keep model-specific controls separate from shared OpenAI-compatible fields.
https://api.iteracompute.com/v1POST /v1/chat/completionsdeepseek/deepseek-v4-pro-0813Authorization: Bearer ITERACOMPUTE_API_KEYSet base_url to https://api.iteracompute.com/v1 and model to deepseek/deepseek-v4-pro-0813. Authenticate with your IteraCompute API key.
See the pricing section for current input, cached-input and output rates in USD per 1M tokens. Check the refresh time before use.
See the model specifications above for the current context and maximum output. Input and requested maximum output share the context budget.
Create your key, choose a tool and get a non-empty first reply.