GPT 4o 2024 08-06
OpenAI logo

GPT 4o 2024 08-06

gpt-4o-2024-08-06
OpenAI
Supports caching, with automatic halving of charges upon a cache hit.

Pricing

  • Input Tokens: $2.500 /M tokens
  • Output Tokens: $10.000 /M tokens
  • Cache Read: $1.250 /M tokens

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-08-06",
        messages=[
          {
            "role": "user",
            "content": "Hello, how are you?"
          }
        ],
        max_tokens=1024,
        stream=False,
    )
    
    print(response.choices[0].message.content)

    Frequently asked questions

    What is GPT 4o 2024 08-06?

    Supports caching, with automatic halving of charges upon a cache hit.