Skip to content

Mistral AI: Mistral Embed

CompareUse this model

@mistral/mistral-embed

Mistral Embed answers on your Everstack gateway, with the routing, limits and traces every model gets.

Modalities
TextText
In / out price
$0.10 / -per 1M
Context
8K
Released
Dec 11, 2023

Providers

Mistral AI is the provider that serves this model. You call it through your gateway, on your Mistral AI key.

ProviderInput /MOutput /MCache read /MContextMax outputThroughput tok/sFirst token sUptime
Mistral AIThis page$0.10--8K3.1K---

Throughput, time to first token and uptime are measured on Everstack Cloud over the last 30 days, for this model on each provider. A dash means there is not enough public activity for that pair yet.

Pricing

What Mistral AI charges for a million tokens. Your provider bills you for it; Everstack records the cost against each call.

Input
$0.10/M tokens
Output
-/M tokens

Performance

How fast the model has answered on Everstack Cloud: how many tokens a second it writes, and how long before the first one.

Loading usage

Uptime

The share of requests to this model that succeeded, a day at a time.

Loading usage

Activity

Tokens through this model on Everstack Cloud each day: what was sent, what the model reasoned with, and what it wrote.

Loading usage

API

One client and one key for every model. To move to another model, change the name.

main.py
import os
from everstack import Everstack

client = Everstack(
    base_url=os.environ["EVERSTACK_BASE_URL"],
    api_key=os.environ["EVERSTACK_API_KEY"],
)

response = client.embeddings.create(
    model="@mistral/mistral-embed",
    input="The quick brown fox",
)

print(len(response.data[0].embedding))

Explore

More from Mistral AI

Set up Mistral Embed

Your key, the request and the settings for @mistral/mistral-embed.

  1. Get your API key

    Create a key in the Everstack console, then set it and your gateway's address as environment variables.

    Get an API key
    Terminal
    export EVERSTACK_BASE_URL="https://<your-instance>.<your-region>.everstack.ai"
    export EVERSTACK_API_KEY="<your-everstack-api-key>"
  2. Connect Mistral AI

    Mistral Embed is served by Mistral AI, on your own Mistral AI account. Add its credential once in the console, under Providers; Mistral AI then bills you directly. The catalog names it MISTRAL_API_KEY.

  3. Embed your first text

    Use @mistral/mistral-embed as the model, with an Everstack SDK or with the OpenAI SDK you already have, pointed at your gateway. It reads up to 8K tokens and writes up to 3.1K.

    main.py
    import os
    from everstack import Everstack
    
    client = Everstack(
        base_url=os.environ["EVERSTACK_BASE_URL"],
        api_key=os.environ["EVERSTACK_API_KEY"],
    )
    
    response = client.embeddings.create(
        model="@mistral/mistral-embed",
        input="The quick brown fox",
    )
    
    print(len(response.data[0].embedding))

What Mistral Embed accepts

max_output_tokens
Max output tokens1 to 3,072

Endpoint

One vector for each input, in the OpenAI embeddings format.

POST
$EVERSTACK_BASE_URL/v1/embeddings
Authorization
Bearer $EVERSTACK_API_KEY
Content-Type
application/json
Model
@mistral/mistral-embed

Put Everstack in front of your next request

Run it yourself in a few minutes, or start on Everstack Cloud with your own provider keys.

Star on GitHubOpen source under Apache 2.0. A star helps others find it.