openai

OpenAI: GPT 4o (2024 11 20)

models/GPT-4o (2024-11-20)

The 2024 11 20 version of GPT 4o offers a leveled up creative writing ability with more natural, engaging, and tailored writing to improve relevance & readability. It's also better at working with uploaded files, providing deeper insights & more thorough responses. GPT 4o ("o" for "omni") is OpenAI's latest AI model, supporting both text and image inputs with text outputs. It maintains the intelligence level of GPT 4 Turbo while being twice as fast and 50% more cost effective. GPT 4o also offers improved performance in processing non English languages and enhanced visual capabilities.
Currency$USD
Input$2.50
Output$10.00
Context window128K

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configopenai/gpt-4o-2024-11-20
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="openai/gpt-4o-2024-11-20",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])