EN ▾
Get your key

Mistral LLM API: How to Choose a Hosted Text LLM API

When people compare a mistral llm api with other hosted options, they usually weigh the same handful of things: context size, price, compatibility, content rules, limits and payment. Below are the criteria, a short test script to measure the rest yourself, and an honest note on where our API fits and where it does not.

Last updated

Balance scale weighing documents against coins beside small servers, picturing a choice of hosted LLM API
  • Decide on seven criteria: context, price, compatibility, content rules, limits, data handling and payment.

  • Measure latency and quality on your own prompts, since published numbers rarely match your workload.

  • Ours is a single open-weight model, text only, with a 100,000-token window at $0.15 / $0.50 per 1M tokens.

  • It is not Mistral's own API and does not cover images, embeddings or fine-tuning.

Summary

01

Start from the workload

Write down four facts before you look at any provider: how long your prompts are, how many requests you send per day, how long answers run, and what content your users produce. A support bot with short prompts and a long-document analysis tool need different things, and a story app for adults has different content needs from both.

With those four numbers you can price any option in minutes and rule out the ones that cannot handle your content or your context length.

Seven criteria and how our API answers

This table lists what to ask any hosted LLM API, with the answer for ours. It reports only what we can state as fact.

CriterionWhat to checkOur API
ContextMaximum prompt plus answer100,000 tokens, prompt and completion combined
PriceInput and output rates per 1M tokens, minimums, expiry$0.15 input and $0.50 output per 1M; prepaid from $20; credit never expires
CompatibilityWorks with OpenAI SDKs and toolsYes: chat completions, responses and models endpoints, streaming, tool calling, JSON mode
Content rulesWhat gets refusedTuned to answer without content refusals for lawful adult use; no sexual content involving minors, ever
LimitsConcurrency and requests per minuteFull key: 8 concurrent, 300 per minute. Trial key: 2 and 60
DataWhether prompts train modelsPrompts are not used for training
PaymentMethods and billing modelPrepaid, crypto only (USDT on TRC20, USDC on Base), no subscription

For another provider, fill the same table from their documentation and compare row by row. Do not rely on a single column; a low price with a short window or frequent refusals may cost more in practice.

Where this API fits

The service fits projects that want a single capable open-weight model behind an OpenAI-style interface, without a subscription. Typical examples are fiction and roleplay tools for adults, companion apps, writing assistants, document summarizers that need a long window, and internal tools that call tool functions.

Existing OpenAI-style code moves over by changing the base URL, key and model name. The model ID is uncensored, and requests go to https://api.mistralllmapi.com/v1. Tool calling follows the familiar tools and tool_choice fields, and JSON mode uses response_format with json_object.

JSON mode is useful for extraction and classification jobs, because the reply is valid JSON you can parse directly:

curl https://api.mistralllmapi.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "response_format": {"type": "json_object"},
    "messages": [{"role": "user", "content": "Return JSON with keys city and country for: Lisbon."}]
  }'

Where it does not fit

Pick something else if you need any of the following:

  • A specific named vendor model. This is one open-weight model from an independent provider, not the official API of Mistral, Meta, Qwen, DeepSeek, OpenAI or anyone else, and not a router across them.
  • Image, audio or video generation, embeddings or fine-tuning. None of these are offered.
  • Payment by anything other than crypto.
  • A vendor contract with its own support terms and guarantees.

Saying this up front saves you a test cycle. If the list does not touch your project, the rest is a matter of measuring.

Measure latency and quality yourself

We publish no latency figures here, because the right number is the one you measure with your prompts, from your servers. This script records time to first token and total time over a small prompt set, plus token usage. Run it against each provider you are comparing, changing only the base URL, key and model.

import time
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mistralllmapi.com/v1",
    api_key="YOUR_API_KEY",
)

prompts = [
    "Summarize the causes of the French Revolution in 120 words.",
    "Write a short scene where two rivals meet at a train station.",
    "Explain what a hash map is to a new programmer.",
]

for p in prompts:
    start = time.perf_counter()
    first = None
    text = []
    stream = client.chat.completions.create(
        model="uncensored",
        messages=[{"role": "user", "content": p}],
        stream=True,
    )
    for chunk in stream:
        if chunk.choices and chunk.choices[0].delta.content:
            if first is None:
                first = time.perf_counter() - start
            text.append(chunk.choices[0].delta.content)
        if getattr(chunk, "usage", None):
            print("usage:", chunk.usage)
    total = time.perf_counter() - start
    print(f"first token {first:.2f}s, total {total:.2f}s, {len(''.join(text))} chars")

Use 20 to 50 prompts that mirror real traffic, including long inputs and your worst cases. Save the outputs side by side and read them. Quality on your task is the criterion that no spec sheet can settle.

Price it with real numbers

Cost is straightforward to compute: input tokens × $0.15 ÷ 1,000,000 plus output tokens × $0.50 ÷ 1,000,000. A request with 3,000 tokens in and 500 out costs $0.00045 + $0.00025 = $0.0007. At 1,000 such requests a day, that is $0.70 a day.

A request that fills the 100,000-token window with input costs $0.015. Do the same arithmetic for each provider using their current rates; we do not quote other vendors' prices here. The pricing page has our rates and top-up bonuses: +5% from $50, +10% from $100, +15% from $200.

Selection mistakes to avoid

  • Comparing only the headline price. Input and output are priced separately, and your mix decides the bill. Compute cost for your own token profile.
  • Testing with toy prompts. A cheerful one-line question tells you little. Use your real, messy inputs, including long ones.
  • Ignoring refusal behavior until launch. If your users write fiction or roleplay, test those prompts first, because filtering is the failure that surprises people most.
  • Forgetting limits. A concurrency cap of 8 is plenty for a small app and tight for a large one. Do the math on peak traffic.
  • Skipping the exit plan. OpenAI-style compatibility makes switching away cheap. Keep your base URL, key and model name in configuration so a change is a deploy, not a rewrite.

A migration plan and a trial

  1. Create a key and claim the trial credit.
  2. Point a copy of your app at https://api.mistralllmapi.com/v1 through environment variables.
  3. Replay 50 recorded prompts and save the outputs.
  4. Compare quality, token usage and any refusals against your current setup.
  5. If the results hold up, send a small share of live traffic to the new endpoint and watch errors and cost.

The lowest-risk step is the trial. After signing up on the API key page, claim $0.50 with one click. It needs no card and lasts 7 days, which covers hundreds of test requests. Run the script above, compare the results with your current provider, and read the docs for parameters. If you hit trouble on the way, our list of common Mistral API mistakes and fixes covers the usual causes.

02

FAQ

Is this the official Mistral LLM API?

No. It is an independent hosted API running one open-weight model. It is not run by Mistral or any other model vendor.

Is it compatible with OpenAI SDKs?

Yes. Change the base URL to https://api.mistralllmapi.com/v1, use your key, and set the model to uncensored.

What is the context window?

100,000 tokens, counting the prompt and the completion together.

What does it cost?

$0.15 per 1M input tokens and $0.50 per 1M output tokens, paid from prepaid credit with no subscription.

Does it support images or embeddings?

No. It is text only: no image, audio or video generation, no embeddings and no fine-tuning.

Get your API key

Sign up, copy the key, update your base URL. That is all.

Start with free credit

Email and password. Key displayed instantly.