Mistral family documentation

Mistral API: Mistral Large 4 key, pricing & code

Call the Mistral API on AngelAPI to integrate Mistral Large 4 with a massive 1M context window and 256K max output over standard OpenAI-compatible HTTP calls. Paid from a single prepaid RM1.12+ pack, Mistral Large 4 maintains 100% 24-hour uptime in our gateway check alongside low cached coding multipliers.

Mistral API key

Instead of juggling separate Mistral billing consoles alongside coding models from DeepSeek or GLM, issue one Mistral API key on AngelAPI:

  1. Register your AngelAPI account and pick any prepaid token tier on Pricing (starting at RM1.12 for 10M tokens via DuitNow QR / FPX or USD crypto).
  2. Reveal your API key inside Account and drop it straight into your OpenAI client, OpenCode config, or server environment as ANGELAPI_KEY.

Mistral API pricing

Translating mistral-large-4 multipliers against the uniform RM0.112 per million pack rate gives exact cost predictability: input runs roughly RM0.143/1M, output RM0.428/1M, and repeated coding cache loops drop to approximately RM0.0636/1M:

Model IDStatusContext / Max outInput mult (MYR / 1M)Output mult (MYR / 1M)Est. coding (MYR / 1M)
mistral-large-4online1M / 256K×1.2752 (RM0.143)×3.8256 (RM0.428)×0.568 (RM0.0636)
PackPrepaid tokensMYR priceRate per 1M units
10M10MRM1.12RM0.112
50M50MRM5.59RM0.112
100M100MRM11.18RM0.112
200M200MRM22.35RM0.112
300M300MRM33.53RM0.112
500M500MRM55.88RM0.112
1B1BRM111.77RM0.112

Is the Mistral API free?

On AngelAPI, Mistral inference is strictly prepaid per token rather than part of an always-free quota. Zero models carry promotional free_until expiry banners today, and Telegram welcome token gifts are paused. Only discovery metadata routes (GET /v1/models and MCP list_media_models) execute without drawing balance. Testing with a RM1.12 starter pack gives 10M base units—enough for millions of cached coding tokens on mistral-large-4.

Mistral API URL / base URL and models list

Route standard Chat Completions traffic to https://api.angelapi.cc/v1/chat/completions using model ID mistral-large-4 (1M context window / 256K output cap). Because the gateway exposes standard OpenAI JSON envelopes, streaming (stream: true), JSON instructions, and multi-turn conversation arrays work out of the box across Python, TypeScript, and curl.

Mistral API status

Live monitoring shows mistral-large-4 online at 100% 24-hour stability. Confirm live latency anytime on Status before large long-context extractions, or review alternatives across our full models directory.

Long-context extraction, coding loops & cost comparison

With 1M context and 256K maximum output capacity, mistral-large-4 handles full codebases, legal PDFs, and multilingual European/Asian customer tickets without chunking complex cross-references. On coding tasks in tools like OpenCode or Cline, cached prompt repetition cuts effective rate from ×1.2752 fresh input down to roughly ×0.568 est. coding (~RM0.0636/1M)—comparable to mid-tier coding models while keeping structured JSON schema adherence tight. Always enforce explicit max_tokens caps and use SSE streaming (stream: true) in interactive UIs so users see immediate progressive tokens, and inspect exact pack usage anytime inside Account.

Code examples: curl, Python, and Node.js

Drop the examples below straight into backend workers to invoke mistral-large-4:

curl
curl https://api.angelapi.cc/v1/chat/completions \
  -H "Authorization: Bearer $ANGELAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral-large-4",
    "messages": [{"role": "user", "content": "Extract key JSON configuration fields and suggest safe validation defaults."}]
  }'
Python (OpenAI SDK)
from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.angelapi.cc/v1",
    api_key=os.environ["ANGELAPI_KEY"],
)

response = client.chat.completions.create(
    model="mistral-large-4",
    messages=[{"role": "user", "content": "Extract key JSON configuration fields and suggest safe validation defaults."}],
)
print(response.choices[0].message.content)
Node.js (fetch)
const res = await fetch("https://api.angelapi.cc/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.ANGELAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "mistral-large-4",
    messages: [{ role: "user", content: "Extract key JSON configuration fields and suggest safe validation defaults." }],
  }),
})
const data = await res.json()
console.log(data.choices[0].message.content)

Worked MYR budget example & OpenCode CLI integration

To see exact spending on mistral-large-4 (×1.2752 in / ×3.8256 out / ×0.568 est. coding), suppose an engineering team runs 400,000 fresh prompt tokens, 600,000 cached repository context tokens, and 80,000 generated output tokens during a pull-request triage session. Multiplying each bucket cleanly—400K × 1.2752 (510K units) + 600K × 0.568 (341K units) + 80K × 3.8256 (306K units)—totals roughly 1.16M prepaid units, or around RM0.13 total at the flat RM0.112 per million rate. You can wire mistral-large-4 inside OpenCode CLI, Cline, or Roo Code alongside DeepSeek V4.1 Flash and GLM 5.4 so engineers swap models with one slash command depending on language nuances or structured JSON tasks, while every request reports transparently inside Account Usage. Keeping explicit system schema boundaries, streaming UI tokens progressively, and bookmarking Status ensures reliable production latency without unplanned token spikes across multi-turn backend pipelines or local development sprints.

Related model APIs and developer guides

Frequently asked questions

Which Mistral model is available on AngelAPI right now?

AngelAPI serves mistral-large-4 online with a 1M context window and 256K max output tokens.

How much does Mistral Large 4 cost per million tokens?

At RM0.112 per 1M prepaid units, mistral-large-4 bills ×1.2752 input (~RM0.143/1M), ×3.8256 output, and ×0.568 estimated coding cache rate.

Does Mistral on AngelAPI accept OpenAI SDKs?

Yes. Configure OpenAI base_url to https://api.angelapi.cc/v1 with Bearer auth—zero Mistral-specific SDK rewrites required.

Is AngelAPI an official Mistral AI partner?

No. AngelAPI is an independent third-party gateway routing prepaid packs across listed model families.