DeepInfra raises $107M Series B to scale the inference cloud — read the announcement

Compare Llama2 vs OpenAI models for FREE.
Published on 2023.09.28 by Nikola Borisov
Compare Llama2 vs OpenAI models for FREE.

At DeepInfra we host the best open source LLM models. We are always working hard to make our APIs simple and easy to use.

Today we are excited to announce a very easy way to quickly try our models like Llama2 70b and Mistral 7b and compare them to OpenAI's models. You only need to change the API endpoint URL and the model name to quickly see if these models are a good fit for your application.

Here is a quick example of how to use the OpenAI Python client with our models:

import openai

# Point OpenAI client to our endpoint
openai.api_base = "https://api.deepinfra.com/v1/openai"
# Just leave the API key empty. You don't need it to try our models. 
openai.api_key = ""

# Your chosen model here
MODEL_DI = "meta-llama/Llama-2-70b-chat-hf"
chat_completion = openai.ChatCompletion.create(
    model="meta-llama/Llama-2-70b-chat-hf",
    messages=[{"role": "user", "content": "Hello world"}],
    stream=True,
)

# print the chat completion
for event in chat_completion:
    print(event.choices)
copy

Rate limits on no API key

To make it as simple as possible you don't even have to create an account with DeepInfra to try our models. Just pass empty string as api_key and you are good to go. We rate limit the unauthenticated requests by IP address.

Pricing and Production ready

When you are ready to use our models in production, you can create an account at DeepInfra and get an API key. We offer the best pricing for the llama 2 70b model at just $1 per 1M tokens. If you need any help, just reach out to us on our Discord server.

Related articles
Best Kimi K3 SaaS Tools & API PlatformsBest Kimi K3 SaaS Tools & API Platforms<p>Kimi K3, with its 2.8 trillion parameters and 1M-token context window, represents a significant leap in large language model capabilities. However, deploying, accessing, and managing a model of this scale presents real infrastructure challenges. From optimizing inference latency and managing GPU compute costs to handling multimodal vision capabilities, selecting the right deployment platform is critical [&hellip;]</p>
Open vs Closed Source AI Models: Intelligence, Price & Speed ComparedOpen vs Closed Source AI Models: Intelligence, Price & Speed Compared<p>The LLM landscape in 2026 looks nothing like it did two years ago. Back then the assumption was simple: if you wanted the best model, you paid OpenAI or Anthropic, and that was that. Open source models were a respectable second tier, good for experimentation, fine-tuning, and budget workloads, but not quite there for serious [&hellip;]</p>
GLM-5.3-Flash API Providers: Speed & CostGLM-5.3-Flash API Providers: Speed & Cost<p>API Review Summary Metric Value Intelligence (Artificial Analysis Intelligence Index) 42 — well above the open-weight median (18) Speed 55.9 output tokens/sec — slower than the median (85.7 t/s) Latency (TTFT) 3.14s — higher than the median (2.05s) Cost (Z.ai first-party API) $0.15 / 1M input, $0.50 / 1M output; cache discount ~83% Cost efficiency [&hellip;]</p>