Llama 4 Scout 17B-16E Instruct on DeepInfra

Llama 4 · AI at Meta

ServerlessOpen Weights

Last refreshed 2026-07-09. Next refresh: weekly.

Why use Llama 4 Scout 17B-16E Instruct on DeepInfra?

DeepInfra offers Llama 4 Scout 17B-16E Instruct with pay-as-you-go pricing at $0.08/1M input tokens. DeepInfra is a cloud inference platform offering cost-effective access to open-source AI models.

Compare Llama 4 Scout 17B-16E Instruct across 12 providers to find the best fit for your use case
Input / 1M
$0.080
Output / 1M
$0.30
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export DEEPINFRA_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.environ["DEEPINFRA_API_KEY"],
Model ID
meta-llama/Llama-4-Scout-17B-16E-Instruct

Request example

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["DEEPINFRA_API_KEY"],
    base_url="https://api.deepinfra.com/v1/openai"
)
response = client.chat.completions.create(
    model="meta-llama/Llama-4-Scout-17B-16E-Instruct",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use provider model ID "meta-llama/Llama-4-Scout-17B-16E-Instruct", not the LLMReference slug "llama-4-scout-17b-16e-instruct".
  • DeepInfra uses "organization/model-name" format, e.g. "meta-llama/Meta-Llama-3-8B-Instruct" or "mistralai/Mistral-7B-Instruct-v0.3". See the DeepInfra model catalog for exact IDs.
  • The examples expect DEEPINFRA_API_KEY; rename it only if your application config maps the new variable.

Compare Llama 4 Scout 17B-16E Instruct Across Providers

ProviderInput (per 1M)Output (per 1M)
Cloudflare Workers AI$0.27$0.85
OpenRouter$0.08$0.30
Together AI——
Fireworks AI——
DeepInfra$0.08$0.30
View all 12 providers →

Pricing

TypePrice (per 1M)
Input tokens$0.08
Output tokens$0.30

Capabilities

VisionMultimodalStructured Outputs

About Llama 4 Scout 17B-16E Instruct

Meta's Llama 4 Scout is a 17-billion parameter mixture-of-experts model with 16 expert routing. Optimized for efficient inference on edge and cloud environments with strong multi-turn conversation capabilities. Available on Cloudflare Workers AI.

Get Started