gpt-4o-2024-05-13
OpenAI logo

GPT 4o 2024 05-13

gpt-4o-2024-05-13
OpenAI

Pricing

PricingCache ReadImage GenerationWeb Search
$5.000$15.000
$5/M tokens-$0.025/request

Input Modalities

    Try this model

    Python
    import os
    from openai import OpenAI
    
    client = OpenAI(
        api_key=os.environ["AIHUBMIX_API_KEY"],
        base_url="https://aihubmix.com/v1",
    )
    
    response = client.chat.completions.create(
        model="gpt-4o-2024-05-13",
        messages=[
          {
            "role": "user",
            "content": "Hello, how are you?"
          }
        ],
        max_tokens=1024,
        stream=False,
    )
    
    print(response.choices[0].message.content)

    Frequently asked questions

    What is the context length of gpt-4o-2024-05-13?

    gpt-4o-2024-05-13 has a 128,000 token context window. It supports up to 4,096 output tokens.