# OpenAI: gpt-5.1

- Model ID: `gpt-5.1`
- Provider: OpenAI
- Web version: https://www.moleapi.com/en/models/openai/gpt-5.1
- Content status: catalog

## Model introduction

GPT model by OpenAI for general chat, writing, coding assistance, and tool-assisted workflows.

## Model capabilities

- OpenAI compatible
- Responses API
- Prompt cache

### Verified specifications

- Catalog status: Currently available on MoleAPI
- Compatible protocols: openai, openai-response
- Available billing groups: Standard

## Model pricing and access

Pricing is supplied dynamically by the MoleAPI console API.

### Standard (default, x1)

- Input: $1.25 / 1M tokens
- Output: $10 / 1M tokens
- Cache read: $0.125 / 1M tokens

### Access protocols

| Protocol | Method | Endpoint |
| --- | --- | --- |
| openai | POST | /v1/chat/completions |
| openai-response | POST | /v1/responses |

- Live pricing source: https://home.moleapi.com/api/pricing

## About gpt-5.1

GPT model by OpenAI for general chat, writing, coding assistance, and tool-assisted workflows.

### Sources

- [MoleAPI console pricing catalog](https://home.moleapi.com/api/pricing) — MoleAPI

## Code examples

### cURL

```bash
curl https://api.moleapi.com/v1/responses \
  -H "Authorization: Bearer $MOLEAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.1","input":"Explain this problem step by step."}'
```

### Python

```python
from openai import OpenAI

client = OpenAI(base_url="https://api.moleapi.com/v1", api_key="YOUR_MOLEAPI_API_KEY")
response = client.responses.create(model="gpt-5.1", input="Explain this problem step by step.")
print(response.output_text)
```

### TypeScript

```typescript
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.moleapi.com/v1", apiKey: process.env.MOLEAPI_API_KEY });
const response = await client.responses.create({ model: "gpt-5.1", input: "Explain this problem step by step." });
console.log(response.output_text);
```

## More related models

- [gpt-5.6-luna](https://www.moleapi.com/en/models/openai/gpt-5.6-luna) — OpenAI
- [gpt-5.6-sol](https://www.moleapi.com/en/models/openai/gpt-5.6-sol) — OpenAI
- [gpt-5.6-terra](https://www.moleapi.com/en/models/openai/gpt-5.6-terra) — OpenAI

## Frequently asked questions

### How is gpt-5.1 priced?

Prices are read from the MoleAPI console API and update with model prices, context tiers, and account groups.

### How can I access gpt-5.1?

The catalog currently lists openai, openai-response.

### How do I switch an existing project to gpt-5.1?

Keep the MoleAPI API address and key, replace the model parameter, and check protocol-specific parameters.

### Where do the gpt-5.1 details come from?

Only confirmed availability, pricing, and protocol details from the MoleAPI catalog are included.
