o1-preview
Approved Data Classifications
Description
The o1-preview model from OpenAI represents a significant advancement in AI reasoning capabilities, designed to tackle complex tasks with enhanced cognitive processes. By employing techniques such as Chain of Thoughts and Self Reflection, o1-preview mimics human-like reasoning, allowing it to spend more time analyzing problems before generating responses. This approach has led to remarkable achievements, including solving 83% of problems in the American Invitational Math Examination and performing at PhD-level accuracy in STEM subjects. Unlike its predecessors, o1-preview simplifies user interaction by requiring less intricate prompt engineering, making it accessible for a broader range of applications while maintaining a focus on safety and adherence to content policies.
Capabilities
Model | Training Data | Input | Output | Context Length | Cost (per 1 million tokens) |
---|---|---|---|---|---|
o1-preview | May 2024 | Text | Text | 128,000 | $15.00/1M input $60.00/1M output |
1M
represents 1 Million Tokens- All prices listed are based on 1 Million Tokens
Availability
Cloud Provider
Usage
- curl
- python
- javascript
curl -X POST https://api.ai.it.ufl.edu/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API_TOKEN>" \
-d '{
"model": "o1-preview",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Write a haiku about an Alligator."
}
]
}'
from openai import OpenAI
client = OpenAI(
api_key="your_api_key",
base_url="https://api.ai.it.ufl.edu/v1"
)
response = client.chat.completions.create(
model="o1-preview", # model to send to the proxy
messages = [
{ role: "system", content: "You are a helpful assistant." },
{
"role": "user",
"content": "Write a haiku about an Alligator."
}
]
)
print(response.choices[0].message)
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'your_api_key',
baseURL: 'https://api.ai.it.ufl.edu/v1'
});
const completion = await openai.chat.completions.create({
model: "o1-preview",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{
role: "user",
content: "Write a haiku about an Alligator.",
},
],
});
print(completion.choices[0].message)
References
- OpenAI
https://openai.com/- LLM Stats
https://llm-stats.com- Artificial Analysis
https://artificialanalysis.ai