Use all models inside of Chat, Assistants, Agents or via the API.
Pricing applies only to our API product. Chat and Assistants, when purchased including AI models, have no usage-based cost component. Langdock charges 15% on top of the model provider's price. Model prices origin from the model providers in USD. All prices excl. VAT.
Model | API pricing Input tokens | API pricing Output tokens | Region |
---|---|---|---|
OpenAI | |||
GPT-4 Turbo | 10.99€ / 1M tokens | 32.97€ / 1M tokens | |
GPT-4o | 5.50€ / 1M tokens | 10.99€ / 1M tokens | |
GPT-4o mini | 0.16€ / 1M tokens | 0.66€ / 1M tokens | |
o1-preview | 18.13€ / 1M tokens | 72.53€ / 1M tokens | |
o1-mini | 3.63€ / 1M tokens | 14.51€ / 1M tokens | |
Anthropic | |||
Claude 3.5 Sonnet | 3.30€ / 1M tokens | 16.49€ / 1M tokens | |
Claude 3 Haiku | 0.27€ / 1M tokens | 1.37€ / 1M tokens | |
Claude 3 Opus | 16.49€ / 1M tokens | 82.43€ / 1M tokens | |
Gemini 1.5 Pro | 8.24€ / 1M tokens | 23.08€ / 1M tokens | |
Gemini 1.5 Flash | 0.16€ / 1M tokens | 0.66€ / 1M tokens | |
Meta | |||
Llama 3.1 70B | 2.95€ / 1M tokens | 3.89€ / 1M tokens | |
Llama 3.1 8B | 0.33€ / 1M tokens | 0.67€ / 1M tokens | |
Mistral | |||
Mistral Large 2 | 3.30€ / 1M tokens | 9.89€ / 1M tokens | |
Mistral Nemo | 0.38€ / 1M tokens | 0.38€ / 1M tokens |
Pricing applies only to our API product. Chat and Assistants, when purchased including AI models, have no usage-based cost component. Langdock charges 15% on top of the model provider's price. Model prices origin from the model providers in USD. All prices excl. VAT.
Advanced language models process text using tokens, which are common sequences of characters in text. These models learn the statistical relationships between tokens to predict the next one in a sequence.
Tokenization is crucial for how these models interpret and generate text. It breaks down input text into smaller units (tokens) that the model can process.
The tokenization process can vary between different models. Newer models may use different tokenizers than older ones, potentially producing different tokens for the same input text. This can affect how the model processes text and impact token counts.
Understanding tokenization is helpful when working with these models, especially when considering input length limitations or optimizing text processing efficiency.
Tokens
Characters
Note: This is a simplified tokenization method and may not accurately represent the exact token count used by language models. For precise tokenization, consider using model-specific tokenizers.
For typical English text, one token often equals about 4 characters or ¾ of a word. As a rough estimate, 100 tokens ≈ 75 words.
For precise tokenization, developers can use programming libraries. In Python, the tiktoken package is available for tokenizing text. For JavaScript, the community-supported @dbdq/tiktoken package works with many advanced language models. These tools are valuable for accurate token counting and text processing tasks.