> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heyaskr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini

> Google's Gemini: multimodal, with very long context.

Gemini is Google's multimodal family, with very long context windows and strong
performance across text, reasoning and analysis. A good choice when you need to
work over large inputs at once.

## Best for

* Very long context: large documents and datasets in a single call.
* Multimodal reasoning and analysis.
* Fast, cost-effective everyday chat.

|                      |                                 |
| -------------------- | ------------------------------- |
| **Modality**         | Chat & code (text in, text out) |
| **Example model id** | `gemini-2.5-pro`                |
| **Endpoint**         | `POST /chat/completions`        |

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.heyaskr.ai/chat/completions \
    -H "Authorization: Bearer ASKR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "gemini-2.5-pro",
      "messages": [
        {"role": "user", "content": "Give me three takeaways from this report."}
      ]
    }'
  ```

  ```python Python theme={null}
  from openai import OpenAI
  client = OpenAI(base_url="https://api.heyaskr.ai", api_key="ASKR_API_KEY")

  resp = client.chat.completions.create(
      model="gemini-2.5-pro",
      messages=[
          {"role": "user", "content": "Give me three takeaways from this report."},
      ],
  )
  print(resp.choices[0].message.content)
  ```
</CodeGroup>

## Pricing

Priced per token, input and output separately. As a rough guide, expect around
**\$1.25 per 1M input tokens** and **\$5 per 1M output tokens** for the pro model.
Flash-tier models are cheaper still.

<div className="askr-img-placeholder">
  <span><strong>Image</strong><br />Gemini on Askr: model card and pricing</span>
</div>

<Note>
  The model id and prices above are examples. Confirm the exact id and current
  price against the live [`/v1/models`](/api-reference/list-models) list before you
  rely on them.
</Note>
