模型列表
OpenAI Models
OpenAI GPT and o series models
Model List
GPT Series
| Model | Description | Context | Endpoint |
|---|---|---|---|
gpt-5.2-pro | Latest flagship inference model | 128K | Responses |
gpt-4.1 | GPT-4.1 Standard Edition | 128K | Chat |
gpt-4o | GPT-4 Multimodal Edition | 128K | Chat |
gpt-4-turbo | GPT-4 Turbo | 128K | Chat |
gpt-4 | GPT-4 Standard Edition | 8K | Chat |
gpt-3.5-turbo | GPT-3.5 Turbo | 16K | Chat |
o Series (Inference Models)
Must use Responses endpoint
o series models must use the /v1/responses endpoint.
| Model | Description | Inference Capability | Endpoint |
|---|---|---|---|
o3-pro | o3 Professional Edition | Strongest | Responses |
o3-mini | o3 Lightweight Edition | Strong | Responses |
o1-pro | o1 Professional Edition | Strong | Responses |
o1-mini | o1 Lightweight Edition | Medium | Responses |
Usage Examples
GPT-4.1 (Chat Completions)
from openai import OpenAI
client = OpenAI(
api_key="sk-your-api-key",
base_url="https://api.smai.ai/v1"
)
response = client.chat.completions.create(
model="gpt-4.1",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain what machine learning is"}
]
)
print(response.choices[0].message.content)o3-pro (Responses API)
import requests
response = requests.post(
"https://api.smai.ai/v1/responses",
headers={
"Content-Type": "application/json",
"Authorization": "Bearer sk-your-api-key"
},
json={
"model": "o3-pro",
"input": "Prove the Pythagorean theorem",
"reasoning": {"effort": "high"}
}
)
print(response.json())GPT-4o Multimodal
GPT-4o supports image input:
from openai import OpenAI
client = OpenAI(
api_key="sk-your-api-key",
base_url="https://api.smai.ai/v1"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{
"role": "user",
"content": [
{"type": "text", "text": "What is in this image?"},
{
"type": "image_url",
"image_url": {"url": "https://example.com/image.jpg"}
}
]
}
]
)
print(response.choices[0].message.content)Model Selection Recommendations
| Scenario | Recommended Model |
|---|---|
| Daily Conversations | gpt-4.1 |
| Complex Reasoning | o3-pro |
| Image Understanding | gpt-4o |
| Cost Sensitive | gpt-3.5-turbo |
| Quick Responses | o3-mini |
