Gemini 2.0 Flash (free)
Google logo

Gemini 2.0 Flash (free)

gemini-2.0-flash-free
Google

Pricing

PricingCache ReadInput AudioInput Audio Cached Web SearchImage GenerationCache Storage
$0.1$0.4
$0.025/M tokens$0.7/M tokens$0.0175/M tokens$0.035/request$0.039/image$1/h/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://shkq.org/v1",
    )
    
    response = client.chat.completions.create(
        model="gemini-2.0-flash-free",
        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 Gemini 2.0 Flash (free) cost?

    On AIHubMix, Gemini 2.0 Flash (free) costs $0.1 per million input tokens and $0.4 per million output tokens. Cached input reads are billed at $0.025 per million tokens.