Meta: Llama 3.1 8B Instruct
Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors. This 8B instruct-tuned version is fast and efficient. It has demonstrated strong performance compared to...
This model is available through the OpenSIAI OpenAI-compatible API for chat completions and compatible application workflows.
Why It Looks Great
- text->text architecture for Text to Text workloads
- 131072 context window for long prompts, document analysis, and multi-turn workflows
- Function calling and tool-use support for agentic application workflows
- Structured output support for JSON responses and schema-constrained generation
Key Features
- Context Window: 131072 tokens
- Max Input: 114688 tokens
- Max Output: 16384 tokens
- Vision: Not listed
- Function Calling: Supported
- Structured Outputs: Supported
- Image Generation: Not listed
- Audio Input: Not listed
- Supported Parameters: frequency_penalty, logit_bias, logprobs, max_tokens, min_p, presence_penalty, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p
Specifications
| Specification | Value |
|---|---|
| Provider | meta |
| Model Type | Chat Completions model |
| Architecture | text->text |
| Context Window | 131072 tokens |
| Max Input | 114688 tokens |
| Max Output | 16384 tokens |
| Input | Text |
| Output | Text |
| Vision | Not listed |
| Function Calling | Supported |
| Structured Outputs | Supported |
| Release Date | July 23, 2024 |
How to Use
- Write your prompt - describe the task, provide context, and specify the desired output format.
- Submit - the model processes your request and returns the response.
API Integration
Base URL: https://llm.opensi.com.ai/v1 API Endpoint: chat/completions Model ID: meta-llama/llama-3.1-8b-instruct
API Usage
Python SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://llm.opensi.com.ai/v1"
)
response = client.chat.completions.create(
model="meta-llama/llama-3.1-8b-instruct",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)cURL
curl https://llm.opensi.com.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "meta-llama/llama-3.1-8b-instruct",
"messages": [{"role": "user", "content": "Hello!"}]
}'Notes
- Model: meta-llama/llama-3.1-8b-instruct
- Provider: meta