Skip to content

GOOGLEAI_PRICING

llmfy.llmfy_core.models.google.googleai_pricing_list

Google AI (Gemini) pricing per 1M tokens (USD). Reference: https://ai.google.dev/pricing

--- Pricing Structures ---

Flat pricing:

    "model-id": {
        "input": <float>,      # all input types same price
        "output": <float>,
    }

Per-type input pricing:

    "model-id": {
        "input": {
            "default": <float>,    # fallback for unspecified types
            "text":    <float>,
            "image":   <float>,
            "video":   <float>,
            "audio":   <float>,
        },
        "output": <float>,
    }

Tiered pricing (flat input, threshold on total input tokens):

    "model-id": {
        "input":        <float>,   # price when prompt <= threshold
        "input_high":   <float>,   # price when prompt > threshold
        "output":       <float>,
        "output_high":  <float>,
        "threshold":    <int>,
    }

Tiered + per-type pricing:

    "model-id": {
        "input": {
            "default": <float>,
            "text":    <float>,
            "image":   <float>,
            "video":   <float>,
            "audio":   <float>,
        },
        "input_high": {            # high-tier prices (prompt > threshold)
            "default": <float>,
            "text":    <float>,
            "image":   <float>,
            "video":   <float>,
            "audio":   <float>,
        },
        "output":       <float>,
        "output_high":  <float>,
        "threshold":    <int>,
    }

GOOGLEAI_PRICING = {'gemini-2.0-flash': {'input': 0.1, 'output': 0.4}, 'gemini-2.0-flash-lite': {'input': 0.075, 'output': 0.3}, 'gemini-2.5-pro': {'input': 1.25, 'output': 10.0, 'input_high': 2.5, 'output_high': 15.0, 'threshold': 200000}, 'gemini-2.5-flash': {'input': 0.3, 'output': 2.5}, 'gemini-2.5-flash-lite': {'input': 0.1, 'output': 0.4}, 'gemini-2.5-flash-lite-preview-09-2025': {'input': 0.1, 'output': 0.4}, 'gemini-3-flash-preview': {'input': {'default': 0.5, 'text': 0.5, 'image': 0.5, 'video': 0.5, 'audio': 1.0}, 'output': 3.0}, 'gemini-3.1-flash-lite-preview': {'input': {'default': 0.25, 'text': 0.25, 'image': 0.25, 'video': 0.25, 'audio': 0.5}, 'output': 1.5}, 'gemini-3.1-pro-preview': {'input': 2.0, 'output': 12.0, 'input_high': 4.0, 'output_high': 18.0, 'threshold': 200000}, 'gemini-embedding-001': {'input': 0.15, 'output': 0}, 'gemini-embedding-2-preview': {'input': 0.2, 'output': 0}} module-attribute