Private Models

OpenAI: GPT-4

openai/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.

Modalities
TexttoText
In / out price
$30.00 / $60.00per 1M
Context
8,191
Released
May 28, 2023

Providers

RedPill routes this private model across verified providers with automatic fallbacks. Pricing is unified, so you pay the same price no matter which provider serves your request, while live metrics show first-token latency, speed, and uptime.

openaiCheckingCheckingChecking

Gateway API

Call this model through RedPill's OpenAI-compatible API.

  1. Create an API key
  2. Set REDPILL_API_KEY
  3. Run the request
Working with agentsConnect RedPill to agent frameworks and runtimes.
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.redpill.ai/v1",
  apiKey: process.env.REDPILL_API_KEY,
});

const response = await client.chat.completions.create({
  model: "openai/gpt-4",
  messages: [{ role: "user", content: "Say hello." }],
});

Search

Search models and pages.

OpenAI: GPT-4 | RedPill