GPT-4
OpenAI: GPT-4 is a OpenAI model listed in the NextModel catalog for General chat via OpenAI, API workloads workloads. Its listed price is $5.64 / 1M tokens input and $11.28 / 1M tokens output per 1M tokens, with a 8.2k token context window.
What is GPT-4 in NextModel?
OpenAI: GPT-4 is a OpenAI model listed in the NextModel catalog for General chat via OpenAI, API workloads workloads. Its listed price is $5.64 / 1M tokens input and $11.28 / 1M tokens output per 1M tokens, with a 8.2k token context window.
Best use cases
- General chat via OpenAI
- API workloads
OpenAI-compatible code example
Keep the OpenAI SDK style, set base_url to NextModel, and use the catalog model ID openai--gpt-4.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.nextmodel.app/v1"
)
resp = client.chat.completions.create(
model="openai/gpt-4",
messages=[{"role": "user", "content": "Hello from NextModel"}]
)
print(resp.choices[0].message.content)Similar alternatives
GPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to Sep 2021.
GPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to Sep 2021.
This model offers four times the context length of gpt-3.5-turbo, allowing it to support approximately 20 pages of text in a single request at a higher cost. Training data: up...
FAQ