Llama 4 Scout 17B 16E Instruct

Models

Model details

Model
@cf/meta/llama-4-scout-17b-16e-instruct
Provider
cloudflare-workers-ai
API
openai-completions
Base URL
https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1
Input
text, image
Reasoning
No
Context window
131,000
Max tokens
16,384
Show configuration
{
  "providers": {
    "cloudflare-workers-ai": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "@cf/meta/llama-4-scout-17b-16e-instruct",
          "name": "Llama 4 Scout 17B 16E Instruct",
          "reasoning": false,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 131000,
          "maxTokens": 16384,
          "cost": {
            "input": 0.27,
            "output": 0.85,
            "cacheRead": 0,
            "cacheWrite": 0
          },
          "compat": {
            "supportsStore": false,
            "supportsDeveloperRole": false,
            "supportsStrictMode": true,
            "supportsLongCacheRetention": false,
            "sendSessionAffinityHeaders": true
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1"
    }
  }
}

Pricing

USD per million tokens. A tier is selected from the total input tokens in each request and applies to that entire request.

Pricing rates for Llama 4 Scout 17B 16E Instruct
Request inputInputOutputCache readCache write
All requests$0.27$0.85$0$0

Session cost calculator

Estimate the requests made during an agent session. A user turn can make several model calls while using tools, so costs are calculated per model request.

Session shape
Rounded median shapes from recent Pi agent sessions.
Warm-request cache reuse
Effective token reuse combines partial hits and occasional complete misses.
Estimated session$0.00
Uncached input
—
Cache reads
—
Uncached prefixes
—
Cache writes
—
Output
—
Without caching
—

The first request starts cold unless marked otherwise. Output is billed separately from context growth because reasoning tokens are not always retained. This remains a directional estimate: providers differ in eligibility, rounding, and retention.

Compatibility flags

Effective values after applying Pi's API defaults and model overrides.

Effective compatibility flags for Llama 4 Scout 17B 16E Instruct
FeatureValue
supportsStoreNo
supportsDeveloperRoleNo
supportsReasoningEffortYes
supportsUsageInStreamingYes
maxTokensFieldmax_completion_tokens
requiresToolResultNameNo
requiresAssistantAfterToolResultNo
requiresThinkingAsTextNo
requiresReasoningContentOnAssistantMessagesNo
thinkingFormatopenai
openRouterRoutingEmpty
vercelGatewayRoutingEmpty
chatTemplateKwargsEmpty
zaiToolStreamNo
supportsStrictModeYes
cacheControlFormatNone
sendSessionAffinityHeadersYes
supportsLongCacheRetentionNo