# GPT-4o Mini

> GPT-4o Mini on Clonvo: 128K context, $0.15 input and $0.60 output per 1M tokens.

Affordable small model for fast, lightweight tasks with text and vision capabilities.

-   Model id: `openai/gpt-4o-mini`
-   Provider: OpenAI
-   Released: Jul 18, 2024
-   Context: 128K tokens
-   Max output: 16K tokens

## Pricing

The provider’s list price in USD. Requests on credits are charged exactly this; each response reports its cost in usage.cost.

| Charge | Price | Unit |
| --- | --- | --- |
| Input (prompt) | $0.15 | per 1M tokens |
| Output (completion) | $0.60 | per 1M tokens |
| Cache read | $0.075 | per 1M tokens |

## Capabilities

-   Tools
-   Vision
-   Structured outputs

## Quick start

Use the OpenAI SDK with Clonvo’s base URL and this model id.

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.clonvo.com/v1",
    api_key=os.environ["CLONVO_API_KEY"],
)

completion = client.chat.completions.create(
    model="openai/gpt-4o-mini",
    messages=[{"role": "user", "content": "Summarise the plot of Hamlet in one sentence."}],
)
print(completion.choices[0].message.content)
```

## Data policy

Requests to this model are sent to OpenAI, whose API terms govern how they handle your data: [OpenAI data policy](https://openai.com/enterprise-privacy/). Clonvo doesn’t store prompts or responses unless your organization turns on retention.

## Bring your own key

From Pay as you go up, a OpenAI key added under Provider keys is used for this model before your credits: $25,000 a month free, then 4% of list price. [How bring-your-own-key works](https://clonvo.com/docs/byok.md).
