GPT-4
Built by OpenAI, GPT-4 is an chat model with a 8K token context window. 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...
by OpenAI · 8K token context window
Best for
- low-latency chat and routing
- request routing and triage
- text classification
Ways to use GPT-4 in osFoundry
Connect with your own key (BYOK)
Open the key dialog and paste your OpenAI API key. osFoundry discovers GPT-4 automatically — assign it to a Maestro role (router, direct, orchestrator, or fallback) in the Pipeline tab and it is live in every chat. Your key, your provider account — no token markup.
Use it in a Room App
Room Apps declare AI features in their manifest, then call them with invokeAI:
import { invokeAI } from '@osfoundry/app-sdk'
// 'summarize' is an AI feature declared in your app manifest.
const result = await invokeAI('summarize', userText)
Call it from your own apps
Once a model is wired into your workspace you can host it as an API and reach it from your own services, scripts, or CI — outside osFoundry.
GPT-4 vs similar models
Licence
Hosted — usage subject to provider terms — Hosted-only model — usage governed by the provider's API terms. Bring your own provider key.
No weights distributed; usage subject to provider terms.
Frequently asked about GPT-4
How much does GPT-4 cost?
GPT-4 is metered at $ 30.00 /1M for input, and $ 60.00 /1M for output. Bring your own OpenAI API key — osFoundry passes through provider pricing without markup.
Can I use GPT-4 commercially?
Commercial use is allowed with conditions. Hosted-only model — usage governed by the provider's API terms. Bring your own provider key. No weights distributed; usage subject to provider terms.
What is the context window of GPT-4?
GPT-4 supports a 8K token context window.
Can I run GPT-4 locally?
No — GPT-4 is hosted only and accessed via the OpenAI API.
What is GPT-4 best at?
GPT-4 is well-suited to low-latency chat and routing, request routing and triage, text classification.
How do I use GPT-4 in osFoundry?
Paste your OpenAI API key in the key dialog (or deploy the open weights for self-hostable models), assign GPT-4 to a Maestro role in the Pipeline tab, then use it in chat, Room Apps via invokeAI, or your own apps.
Published by OpenAI on May 28, 2023. Source: https://openrouter.ai/openai/gpt-4