TensaHub › OpenRouter

AionLabs: Aion-RP 1.0 (8B)

API do modelo aion-labs/aion-rp-llama-3.1-8b na OpenRouter, $0.8 / $1.6 por milhão de tokens, contexto 32.768 tokens. Exemplos em curl, Python e JavaScript, teste ao vivo.

Testar e avaliar no catálogo

Aion-RP-Llama-3.1-8B ranks the highest in the character evaluation portion of the RPBench-Auto benchmark, a roleplaying-specific variant of Arena-Hard-Auto, where LLMs evaluate each other’s responses. It is a fine-tuned base model...

Tipo
Modelo
Provedor
OpenRouter
ID do modelo
aion-labs/aion-rp-llama-3.1-8b
Preço
Pago
Preço entrada / saída
$0.8 / $1.6 por milhão de tokens
Acesso sem chave
Não
Variável da chave
OPENROUTER_API_KEY
URL base (compatível com OpenAI)
https://openrouter.ai/api/v1
Contexto
32.768 tokens
Entradas
Texto
Avaliação dos desenvolvedores
Ainda sem avaliação
Documentação
https://openrouter.ai/aion-labs/aion-rp-llama-3.1-8b

Exemplos de código

cURL

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -d '{"model":"aion-labs/aion-rp-llama-3.1-8b","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://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
    model="aion-labs/aion-rp-llama-3.1-8b",
    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://openrouter.ai/api/v1', apiKey: process.env.OPENROUTER_API_KEY })
const r = await client.chat.completions.create({
  model: 'aion-labs/aion-rp-llama-3.1-8b',
  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 AionLabs: Aion-RP 1.0 (8B) é gratuita?

Não: o AionLabs: Aion-RP 1.0 (8B) é uma API paga ($0.8 / $1.6 por milhão de tokens).

Como chamar o AionLabs: Aion-RP 1.0 (8B) no meu código?

O AionLabs: Aion-RP 1.0 (8B) oferece uma API compatível com OpenAI em https://openrouter.ai/api/v1: use qualquer SDK da OpenAI (Python, JavaScript…) com essa URL base. Identificador do modelo: aion-labs/aion-rp-llama-3.1-8b. Há código pronto (streaming, JSON, novas tentativas) na caixa de ferramentas do desenvolvedor.

Qual é a janela de contexto do AionLabs: Aion-RP 1.0 (8B)?

O AionLabs: Aion-RP 1.0 (8B) aceita até 32.768 tokens de contexto (mensagem e histórico).

Quais são as alternativas ao AionLabs: Aion-RP 1.0 (8B)?

APIs semelhantes no catálogo: AionLabs: Aion 3.5 Mini, AionLabs: Aion 3.5, AionLabs: Aion-3.0-Mini, AionLabs: Aion-3.0, AionLabs: Aion-2.0.

Alternativas