o1 Rede Neural
Bip-bup, escrevendo texto para você...



bothub.chat/o1
100 000
Comprimento Máx. da Resposta
(em tokens)
200 000
Tamanho do Contexto
(em tokens)
15 USD
Custo do Prompt
(por 1M de tokens)
60 USD
Custo da Resposta
(por 1M de tokens)

BotHub: Experimente grátis!bot
Exemplo de código e API para o1Oferecemos acesso completo à API OpenAI através do nosso serviço. Todos os nossos endpoints estão totalmente em conformidade com os endpoints OpenAI e podem ser usados tanto com plugins quanto ao desenvolver seu próprio software através do SDK.Criar chave API
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: '<your bothub access token>',
baseURL: 'https://bothub.chat/api/v2/openai/v1'
});
// Sync - Text generation
async function main() {
const chatCompletion = await openai.chat.completions.create({
messages: [{ role: 'user', content: 'Say this is a test' }],
model: 'o1',
});
}
// Async - Text generation
async function main() {
const stream = await openai.chat.completions.create({
messages: [{ role: 'user', content: 'Say this is a test' }],
model: 'o1',
stream: true
});
for await (const chunk of stream) {
const part: string | null = chunk.choices[0].delta?.content ?? null;
}
}
main();
Como funciona o1?
Os bothubs coletam informações...