MainAI Coder
Professional IT service work and reverse engineering across binary, protocol and source.
Access: Approved KYC and an active Enterprise contract. Both models are gated. Start the KYC check.
- Context
- 1M
- Max output
- 393k
- Input / 1M
- €0.60 · DKK 4.48
- Cached input / 1M
- €0.12 · DKK 0.90
- Output / 1M
- €1.80 · DKK 13.43
- Cache write / 1M
- €0.00 · DKK 0.00
- p50 TTFT
- 184 ms
Rates are charged in EUR. DKK is a fixed 7.46 reference.
About this model
MainAI Coder is built for the work between “it is broken” and “it is fixed”: decompilation walkthroughs, protocol and file-format recovery, binary diffing, root-cause analysis, migration plans and handover-ready service notes. A 1M-token context holds a whole tree, capture or disassembly alongside the ticket, while the long output budget produces the patch, report and runbook in one pass.
Benchmark profile
Same base. Different post-training. Relative bars, not leaderboard decimals.
Capabilities
- Tool use
- Structured output
- 1M context
- Reverse engineering
- Service handover
OpenAI SDK example
TypeScriptimport OpenAI from "openai";
const mainai = new OpenAI({
baseURL: "https://cloud.mainai.dk/v1",
apiKey: process.env.MAINAI_API_KEY,
});
const response = await mainai.chat.completions.create({
model: "mainai-coder",
messages: [{ role: "user", content: "Map this capture's protocol, decode the fields and write the service handover." }],
stream: true,
stream_options: { include_usage: true },
});Any OpenAI-compatible client works. Override the base URL and send a MainAI key. Full reference in the documentation.
Limits
- Context window
- 1,000,000 tokens
- Maximum output
- 393,216 tokens
- Cached input price
- €0.12 / DKK 0.90 / 1M
- Cache write price
- €0.00 / DKK 0.00 / 1M
- Default request cap
- 600 rpm · 400k tpm per key
- Streaming idle timeout
- 300 seconds
- Data region
- sk1 (Skanderborg, Denmark)
- Prompt retention
- None by default
Higher limits are available per key under the Enterprise contract.
Build against it
A key unlocks after email verification, KYC approval and staff recording the contract.