gpt-4-turbo

Réseau Neuronal

gpt-4-turbo.texts.0

Accueil

/

Modèles

/

gpt-4-turbo
4 096

Longueur maximale de la réponse

(en tokens)

128 000

Taille du contexte

(en tokens)

11,25 $

Coût du prompt

(par 1M tokens)

33,75 $

Coût de la réponse

(par 1M tokens)

0 $

Invite d'image

(par 1K tokens)

*Prix pour l'utilisation via l'API.
Overview
Providers
API
bothub
BotHub: Try chat GPT for freebot

Caps remaining: 0 CAPS
Fournisseurs gpt-4-turboSur Bothub, vous pouvez choisir vous-même les fournisseurs pour les requêtes. Si vous n'avez pas fait de choix, nous trouverons automatiquement des fournisseurs adaptés capables de gérer la taille et les paramètres de votre demande.
Code example and API for gpt-4-turboWe offer full access to the OpenAI API through our service. All our endpoints fully comply with OpenAI endpoints and can be used both with plugins and when developing your own software through the SDK.Create API key
Javascript
Python
Curl
import OpenAI from 'openai';
const openai = new OpenAI({
  apiKey: '<your bothub access token>',
  baseURL: 'https://openai.bothub.chat/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-4-turbo',
  });
} 

// Async - Text generation 

async function main() {
  const stream = await openai.chat.completions.create({
    messages: [{ role: 'user', content: 'Say this is a test' }],
    model: 'gpt-4-turbo',
    stream: true
  });

  for await (const chunk of stream) {
    const part: string | null = chunk.choices[0].delta?.content ?? null;
  }
} 
main();
illustaration

Comment ça marche gpt-4-turbo?

gpt-4-turbo.texts.1