gpt-4o-mini-2024-07-18
OpenAI logo

GPT 4o Mini 2024 07-18

gpt-4o-mini-2024-07-18
OpenAI

Pricing

  • Input Tokens: $0.150 /M tokens
  • Output Tokens: $0.600 /M tokens
  • Cache Read: $0.075 /M tokens

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

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-mini-2024-07-18",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

How much does gpt-4o-mini-2024-07-18 cost?

On AIHubMix, gpt-4o-mini-2024-07-18 costs $0.15 per million input tokens and $0.6 per million output tokens. Cached input reads are billed at $0.075 per million tokens.