gpt-4o-mini Réseau Neuronal
Bip-bup, écriture de texte pour vous...



bothub.chat/gpt-4o-mini
16 384
Longueur Max. de Réponse
(en jetons)
128 000
Taille du Contexte
(en jetons)
0,15 USD
Coût de l'Invite
(par 1M de jetons)
0,6 USD
Coût de la Réponse
(par 1M de jetons)

BotHub : Essayez gratuitement !bot
Exemple de code et API pour gpt-4o-miniNous offrons un accès complet à l'API OpenAI via notre service. Tous nos points de terminaison sont entièrement conformes aux points de terminaison OpenAI et peuvent être utilisés avec des plugins ainsi que lors du développement de votre propre logiciel via le SDK.Créer une clé 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: 'gpt-4o-mini',
});
}
// Async - Text generation
async function main() {
const stream = await openai.chat.completions.create({
messages: [{ role: 'user', content: 'Say this is a test' }],
model: 'gpt-4o-mini',
stream: true
});
for await (const chunk of stream) {
const part: string | null = chunk.choices[0].delta?.content ?? null;
}
}
main();
Comment ça marche gpt-4o-mini?
Les bothubs recueillent des informations...