GPT-4

OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning capabilities. Training data: up to Sep 2021.

ChatOpenAI8k tokens$32.7018 / $65.4036 · 1M

openai/gpt-4

Contexto
8k tokens
Máx. completion
4,096
Tools
JSON
Lanzamiento
2023-05-28

Llámalo desde Geek Hub

El mismo SDK de OpenAI. Cambia el base URL y el id del modelo.

curl https://api.geekhub.mx/v1/chat/completions \
  -H "Authorization: Bearer $GEEKHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Consigue tu API key

Preguntas frecuentes

¿Qué es GPT-4?
OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning capabilities. Training data: up to Sep 2021. GPT-4 corre en el API de Geek Hub (compatible con OpenAI). Id: openai/gpt-4.
¿GPT-4 es gratis?
No. El input cuesta $32.7018 / 1M tokens y el output $65.4036 / 1M tokens en Geek Hub (markup incluido).
¿Cuál es el contexto de GPT-4?
GPT-4 tiene una ventana de 8k tokens. Soporta hasta 4,096 tokens de completion.
¿GPT-4 soporta tool calling y structured outputs?
GPT-4 acepta tools y tool_choice para function calling. También soporta structured outputs con un JSON schema en response_format.
¿Cuándo se lanzó GPT-4?
GPT-4 se lanzó el 28 de mayo de 2023.

Más modelos de OpenAI