# xAI: grok-composer-2.5-fast

- Model ID: `grok-composer-2.5-fast`
- Provider: xAI
- Web version: https://www.moleapi.com/en/models/xai/grok-composer-2.5-fast
- Content status: catalog

## Model introduction

Grok model by xAI for general chat, writing, coding assistance, and tool-assisted workflows.

## Model capabilities

- OpenAI compatible
- Responses API
- Anthropic compatible
- Gemini compatible
- Prompt cache

### Verified specifications

- Catalog status: Currently available on MoleAPI
- Compatible protocols: openai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search
- Available billing groups: Standard, Discount, Relay

## Model pricing and access

Pricing is supplied dynamically by the MoleAPI console API.

### Standard (default, x1)

- Input: $3 / 1M tokens
- Output: $15 / 1M tokens
- Cache read: $0.5 / 1M tokens

### Discount (discount, x0.8)

- Input: $2.4 / 1M tokens
- Output: $12 / 1M tokens
- Cache read: $0.4 / 1M tokens

### Relay (relay, x0.3)

- Input: $0.9 / 1M tokens
- Output: $4.5 / 1M tokens
- Cache read: $0.15 / 1M tokens

### Access protocols

| Protocol | Method | Endpoint |
| --- | --- | --- |
| openai | POST | /v1/chat/completions |
| openai-response | POST | /v1/responses |
| openai-response-compact | POST | /v1/responses/compact |
| anthropic | POST | /v1/messages |
| gemini | POST | /v1beta/models/{model}:generateContent |
| openai-alpha-search | POST | /v1/alpha/search |

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

## About grok-composer-2.5-fast

Grok model by xAI 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":"grok-composer-2.5-fast","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="grok-composer-2.5-fast", 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: "grok-composer-2.5-fast", input: "Explain this problem step by step." });
console.log(response.output_text);
```

## More related models

- [grok-4.6](https://www.moleapi.com/en/models/xai/grok-4.6) — xAI
- [grok-4.5](https://www.moleapi.com/en/models/xai/grok-4.5) — xAI
- [grok-4.5-latest](https://www.moleapi.com/en/models/xai/grok-4.5-latest) — xAI

## Frequently asked questions

### How is grok-composer-2.5-fast priced?

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

### How can I access grok-composer-2.5-fast?

The catalog currently lists openai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search.

### How do I switch an existing project to grok-composer-2.5-fast?

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

### Where do the grok-composer-2.5-fast details come from?

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