AI Model APIs
AI Model APIsProviders
AI Model APIs

The complete platform for comparing AI models. Find pricing, capabilities, and the perfect model for your use case.

contact@aimodelapis.com

Resources

  • AI Models APIs
  • Providers

About

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 AI Model APIs. All rights reserved.

Back to Models
Deep Infra

Llama 3.1 8B API

Deep Infra
About

Process massive datasets with Llama 3.1 8B, featuring an expansive 131K context window for long-document analysis. This model delivers cost-effective pricing at $0.02/1M input and $0.05/1M output tokens, native tool calling support, open weights architecture. Access Llama 3.1 8B via the Deep Infra API with up to 16K output tokens.

Capabilities

Input Modalities

text

Output Modalities

text
Reasoning
No
Structured Output
No
Tool Use
Yes
WeightsOpen
Temperature
Fixed
Attachment
Not Supported
Limits
Context Window
131K

Tokens

Input Limit
131K

Tokens

Max Output
16K

Tokens

Pricing

Standard (per 1M tokens)

Input
$0.02
Output
$0.05
Frequently Asked Questions

Llama 3.1 8B by Deep Infra costs $0.02 per 1M input tokens and $0.05 per 1M output tokens.

Model Details
ID
meta-llama/Llama-3.1-8B-Instruct
Provider
Deep Infra
Family
llama
Release Date
Jul 23, 2024
Knowledge Cutoff
N/A
API Integration
NPM Package
@ai-sdk/deepinfra
Environment Variables
DEEPINFRA_API_KEY
Documentation