OpenAIChat
OpenAI: GPT-4
openai/gpt-4
8KContext Window
4KMax Output
Supported Protocols:seedmax_tokensresponse_formatstructured_outputstemperaturetop_pstopfrequency_penaltypresence_penaltylogit_biaslogprobstop_logprobstoolstool_choice
Online
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.
Capabilities
🔧 Function CallingText GenerationCode GenerationAnalysis & Reasoningmodels.reasoning
Technical Specs
Input Modality
Text
Output Modality
Text
Arch
—
Pricing
Pay per use, no monthly feesInput Token< ¥0.001/1K Token
Output Token< ¥0.001/1K Token
Quick Start
from openai import OpenAI
client = OpenAI(
base_url="https://api.uniontoken.ai/v1",
api_key="YOUR_UNIONTOKEN_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)FAQ
OpenAI
OpenAI: GPT-4
openai/gpt-4
In< ¥0.001/1K
Out< ¥0.001/1K
Context Window8K
Max Output4K
Related Models
View All → →Ready to get started?
Get 1M free tokens on registration, no monthly fees or minimum spend
Register Now →