



const { OpenAI } = require('openai');
const api = new OpenAI({
baseURL: 'https://api.ai.cc/v1',
apiKey: '',
});
const main = async () => {
const result = await api.chat.completions.create({
model: 'gpt-4o-mini-2024-07-18',
messages: [
{
role: 'system',
content: 'You are an AI assistant who knows everything.',
},
{
role: 'user',
content: 'Tell me, why is the sky blue?'
}
],
});
const message = result.choices[0].message.content;
console.log(`Assistant: ${message}`);
};
main();
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.ai.cc/v1",
api_key="",
)
response = client.chat.completions.create(
model="gpt-4o-mini-2024-07-18",
messages=[
{
"role": "system",
"content": "You are an AI assistant who knows everything.",
},
{
"role": "user",
"content": "Tell me, why is the sky blue?"
},
],
)
message = response.choices[0].message.content
print(f"Assistant: {message}")
-
AI Playground

Test all API models in the sandbox environment before you integrate.
We provide more than 300 models to integrate into your app.


Product Detail
GPT-4o Mini is OpenAI's latest groundbreaking and cost-efficient AI model, officially released on July 19, 2024. As version v1, it is engineered to democratize advanced natural language processing (NLP) and multimodal capabilities, making cutting-edge AI technology more accessible and affordable across a wider array of applications. This text and vision model represents a significant leap in performance and efficiency for developers and businesses.
✅ Key Features of GPT-4o Mini
-
💰
Unmatched Cost Efficiency: This model is substantially more affordable than its predecessors, opening new possibilities for budget-conscious projects and high-volume usage.
-
🚀
Superior Performance: Achieving an impressive 82% on the MMLU benchmark, GPT-4o Mini consistently outperforms other small models in complex reasoning and chat preferences, ensuring high-quality outputs.
-
👁️
Multimodal Capabilities: Currently supporting both text and vision input/output, with exciting future plans for audio and video integration, making it incredibly versatile.
-
📜
Extended Context Window: Process up to 128K tokens, enabling the model to handle extensive conversations and complex documents with deep contextual understanding.
-
🌐
Improved Tokenizer for Non-English Text: Enhanced handling of diverse languages ensures greater versatility and accuracy for global applications, consistent with GPT-4o's robust capabilities.
💡 Intended Applications for GPT-4o Mini
GPT-4o Mini is perfectly suited for a wide range of practical applications requiring efficiency and intelligence. This includes powering advanced customer support chatbots, enabling real-time text responses in interactive systems, and scenarios demanding multiple model calls or extensive context processing. Its comprehensive language support makes it an ideal choice for global deployments.
⚙️ Technical Specifications
Architecture: Built on the robust transformer architecture, utilizing self-attention mechanisms for highly efficient sequential data processing.
Training Data: The model was trained on an extensive and diverse dataset of text sources, ensuring comprehensive language understanding and strong contextual awareness.
Knowledge Cutoff: The model's knowledge base is current as of October 2023. Information or developments beyond this date are not included.
Diversity and Bias: OpenAI actively implements measures to promote diversity in training data and mitigate biases. However, inherent biases from source data may still be reflected.
📊 Performance Metrics
Accuracy: With an impressive 82.0% score on the MMLU benchmark, GPT-4o Mini showcases robust performance in reasoning tasks, often outperforming competitors like Gemini Flash and Claude Haiku.
Speed: Optimized for low latency, making it exceptionally well-suited for real-time interaction and high-speed processing requirements.
Robustness: Demonstrates excellent generalization capabilities, efficiently handling diverse inputs across a multitude of topics and languages.
✍️ Usage & Ethical Guidelines
Code Samples/SDK: Developers can integrate GPT-4o Mini easily using OpenAI's API. The latest stable version available is gpt-4o-mini-2024-07-18.
For direct API integration and code snippets, refer to the official OpenAI documentation.
Ethical Guidelines: OpenAI prioritizes ethical AI deployment, emphasizing transparency, user privacy, and rigorous bias mitigation in all applications.
License Type: The model is subject to OpenAI's comprehensive licensing terms, which govern its usage for both commercial and non-commercial purposes.
🛡️ Built-in Safety Measures
OpenAI has meticulously integrated robust safety measures throughout the entire development lifecycle of GPT-4o Mini. This includes sophisticated filtering of undesirable content during pre-training and aligning model behavior with stringent safety policies using Reinforcement Learning with Human Feedback (RLHF). Furthermore, the model incorporates advanced techniques to resist prompt injections and other potential vulnerabilities, significantly enhancing its reliability and trustworthiness for large-scale production applications.
💰 Availability and Pricing
GPT-4o Mini is readily accessible via the OpenAI AI/ML API. Its pricing structure is specifically designed for affordability, ensuring broad access. OpenAI also has ongoing plans to introduce fine-tuning capabilities in the future, allowing for even more tailored model performance.
❓ Frequently Asked Questions (FAQ)
Q: What is GPT-4o Mini?
A: GPT-4o Mini is OpenAI's latest cost-efficient, high-performance multimodal AI model (text and vision) designed for a wide range of applications, released on July 19, 2024.
Q: How does GPT-4o Mini compare to other small models?
A: It achieves an 82% score on the MMLU benchmark and generally outperforms other small models like Gemini Flash and Claude Haiku in chat preferences and reasoning tasks.
Q: What are its main capabilities?
A: It supports text and vision inputs/outputs, handles up to 128K tokens of context, and offers improved handling of non-English text, all while being significantly more cost-efficient.
Q: What is the knowledge cutoff date for GPT-4o Mini?
A: The model's knowledge is current up to October 2023.
Q: How can I access GPT-4o Mini?
A: It is available through the OpenAI AI/ML API, with flexible and affordable pricing plans.
Learn how you can transformyour company with AICC APIs



Log in