OpenAI: GPT-4
openai/gpt-4
Created May 28, 2023|8,191 context|$30.00/M input tokens|$60.00/M output tokens
Intel TDX
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.
Providers for OpenAI: GPT-4
RedPill routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.
openai
Total Context
8,191
API
RedPill provides an OpenAI-compatible completion API to all models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.
fetch("https://api.redpill.ai/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer <YOUR-REDPILL-API-KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "openai/gpt-4",
"messages": [
{
"role": "user",
"content": "What is the meaning of life?"
}
]
})
})