llama 3.1 8b instruct fp8
unofficialchat
llama 3.1 8b instruct fp8 specifications
| Context window | 32K |
|---|---|
| Max output tokens | 32000 |
| Release date | — |
| Input | Text |
| Output | Text |
llama 3.1 8b instruct fp8 pricing in rubles
You pay for what you use, per token and per unit. The final request cost is returned in the API response.
| Type | Price |
|---|---|
| Input tokens | 19,76 ₽ per 1M tokens |
| Output tokens | 37,31 ₽ per 1M tokens |
Prices are in rubles and may change with exchange rates.
What llama 3.1 8b instruct fp8 can do
- Function calling
- Streaming responses
llama 3.1 8b instruct fp8 API: connection and code examples
The service exposes a single OpenAI-compatible API. Set our base_url and the key from your dashboard.
OpenAI Python SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.neuralbridge.ru/v1",
)
response = client.chat.completions.create(
model="meta-llama/llama-3.1-8b-instruct-fp8-08130",
messages=[{"role": "user", "content": "Привет! Расскажи о себе."}],
)
print(response.choices[0].message.content)Python (requests)
import requests
response = requests.post(
"https://api.neuralbridge.ru/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "meta-llama/llama-3.1-8b-instruct-fp8-08130",
"messages": [{"role": "user", "content": "Привет! Расскажи о себе."}],
},
)
print(response.json()["choices"][0]["message"]["content"])cURL
curl https://api.neuralbridge.ru/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "meta-llama/llama-3.1-8b-instruct-fp8-08130",
"messages": [{"role": "user", "content": "Привет! Расскажи о себе."}]
}'API endpoints
POST /v1/chat/completionsprimary | Chat Completions Çatın əsas son nöqtəsi: mesaj tarixçəsini qəbul edir və modelin cavabını qaytarır. Axın və adi rejimləri dəstəkləyir. |
POST /v1/responses | Responses Vəziyyətlə və strukturlaşdırılmış çıxışla alternativ söhbət formatı. |
POST /v1/messages | Messages Anthropic formatı: Claude üçün yazılmış müştərilər və SDK üçün eyni söhbət. |
POST /v1/converse | Converse Amazon Bedrock Converse formatı — ona uyğun yazılmış müştərilər üçün. |
POST /v1/converse-stream | Converse Stream Bedrock Converse formatının axın variantı. |
POST /v1/generateContent | Məzmun Yarat Google Gemini formatı — onun üçün yazılmış müştərilər və SDK üçün. |
POST /v1/streamGenerateContent | Stream Generate Content Gemini formatının axın variantı. |
Supported request parameters
| Parameter | Default | Allowed values | Description |
|---|---|---|---|
temperature | 1 | — | Cavabın müxtəlifliyinə təsir edir: dəyər nə qədər yüksəkdirsə, çıxış o qədər təsadüfi, aşağıdırsa — o qədər proqnozlaşdırıla biləndir. |
top_p | 1 | — | Ən ehtimalı yüksək tokenlərin pay seçimlərini məhdudlaşdırır: yalnız ehtimallarının cəmi P verən tokenlər nəzərə alınır. |
max_tokens | — | — | Modelin cavabda yarada biləcəyi tokenlərin üst həddi. |
presence_penalty | 0 | — | Tokenin ehtimalını azaldır, əgər o, mətn içində artıq mövcuddursa — model yeni mövzulara daha çox keçməyə meyllidir. |
frequency_penalty | 0 | — | Tokenin ehtimalını, onun artıq nə qədər tez-tez rast gəlinibsa, ona mütənasib azaldır — təkrarlamalara qarşı mübarizə aparır. |
stop | — | — | Məhdudlaşdırıcı sətirlərin siyahısı: model istənilən birini çıxardığı anda nəsil dayandırılır. |
seed | — | — | Təsadüfiliyi sabitləyir: eyni seed və eyni parametrlərlə təkrar sorğu eyni nəticəni verir. |
response_format | — | — | Cavab formatı: adi mətn və ya təyin edilmiş sxemaya uyğun sərt JSON. |
stream | false | — | Cavabı nəsil zamanı axın kimi göndər, sonradan bir blok kimi deyil. |
tools | — | — | — |
tool_choice | — | — | — |