TensaHub › Hugging Face Inference

Dolphin-Mistral-24B-Venice-Edition · Venice

API do modelo dphn/Dolphin-Mistral-24B-Venice-Edition:venice na Hugging Face Inference, $0.2 / $0.9 por milhão de tokens, contexto 128.000 tokens. Exemplos em curl, Python e JavaScript, teste ao vivo.

Testar e avaliar no catálogo

dphn/Dolphin-Mistral-24B-Venice-Edition served by Venice through the Hugging Face router (fp16 quantization).

Tipo
Modelo
Provedor
Hugging Face Inference
Hospedagem
Venice
ID do modelo
dphn/Dolphin-Mistral-24B-Venice-Edition:venice
Preço
Pago
Preço entrada / saída
$0.2 / $0.9 por milhão de tokens
Acesso sem chave
Não
Variável da chave
HF_TOKEN
URL base (compatível com OpenAI)
https://router.huggingface.co/v1
Contexto
128.000 tokens
Entradas
Texto
Tempo de resposta
Primeiro token 828 ms · 77 tokens/s · disponibilidade 100 %
Avaliação dos desenvolvedores
Ainda sem avaliação
Documentação
https://huggingface.co/dphn/Dolphin-Mistral-24B-Venice-Edition

Exemplos de código

cURL

curl https://router.huggingface.co/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HF_TOKEN" \
  -d '{"model":"dphn/Dolphin-Mistral-24B-Venice-Edition:venice","messages":[{"role":"user","content":"Olá, apresente-se em uma frase."}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
    model="dphn/Dolphin-Mistral-24B-Venice-Edition:venice",
    messages=[{"role": "user", "content": "Olá, apresente-se em uma frase."}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
  model: 'dphn/Dolphin-Mistral-24B-Venice-Edition:venice',
  messages: [{ role: 'user', content: 'Olá, apresente-se em uma frase.' }],
})
console.log(r.choices[0].message.content)

Gerar o código de integração →

Buscas populares

Perguntas frequentes

A API do Dolphin-Mistral-24B-Venice-Edition · Venice é gratuita?

Não: o Dolphin-Mistral-24B-Venice-Edition · Venice é uma API paga ($0.2 / $0.9 por milhão de tokens).

Como chamar o Dolphin-Mistral-24B-Venice-Edition · Venice no meu código?

O Dolphin-Mistral-24B-Venice-Edition · Venice oferece uma API compatível com OpenAI em https://router.huggingface.co/v1: use qualquer SDK da OpenAI (Python, JavaScript…) com essa URL base. Identificador do modelo: dphn/Dolphin-Mistral-24B-Venice-Edition:venice. Há código pronto (streaming, JSON, novas tentativas) na caixa de ferramentas do desenvolvedor.

Qual é a janela de contexto do Dolphin-Mistral-24B-Venice-Edition · Venice?

O Dolphin-Mistral-24B-Venice-Edition · Venice aceita até 128.000 tokens de contexto (mensagem e histórico).