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

# Friendli model pricing

> Browse Friendli model prices.

## Models and pricing

| Model ID | Input / 1M tokens | Output / 1M tokens | Cache read / 1M tokens | Cache write / 1M tokens |
| - | - | - | - | - |
| [google/gemma-4-31B-it](https://api.narev.ai/v1/prices?provider_id=friendli\&model_id=google%2Fgemma-4-31B-it) | \$0.14 | \$0.4 | — | — |
| [zai-org/GLM-5.1](https://api.narev.ai/v1/prices?provider_id=friendli\&model_id=zai-org%2FGLM-5.1) | \$1.4 | \$4.4 | \$0.26 | — |
| [zai-org/GLM-5.2](https://api.narev.ai/v1/prices?provider_id=friendli\&model_id=zai-org%2FGLM-5.2) | \$1.4 | \$4.4 | \$0.26 | — |
| [zai-org/GLM-5.3](https://api.narev.ai/v1/prices?provider_id=friendli\&model_id=zai-org%2FGLM-5.3) | \$1.26 | \$3.96 | \$0.234 | — |
| [zai-org/GLM-5.3-Flash](https://api.narev.ai/v1/prices?provider_id=friendli\&model_id=zai-org%2FGLM-5.3-Flash) | \$0.15 | \$0.5 | \$0.03 | — |

```bash Request theme={null}
curl --request GET \
  --url 'https://api.narev.ai/v1/prices?provider_id=friendli&model_id=google%2Fgemma-4-31B-it'
```

```json Price record (snapshot) theme={null}
{
  "model_id": "google/gemma-4-31B-it",
  "provider_id": "friendli",
  "pricing": {
    "prompt": 1.4e-7,
    "completion": 4e-7,
    "discount": 0,
    "request": 0,
    "web_search": 0,
    "input_cache_read": 0,
    "input_cache_write": 0,
    "image": 0,
    "image_output": 0,
    "audio": 0,
    "audio_output": 0,
    "input_audio_cache": 0,
    "internal_reasoning": 0
  }
}
```

## Provider details

| Property | Value |
| - | - |
| Headquarters | US |
| API base URL | [https://api.friendli.ai/serverless/v1](https://api.friendli.ai/serverless/v1) |
| SDK package | @ai-sdk/openai-compatible |
| Environment variables | \["FRIENDLI\_TOKEN"] |

[Documentation](https://friendli.ai/docs/guides/serverless_endpoints/introduction) · [Status](https://status.friendli.ai/) · [Privacy policy](https://friendli.ai/privacypolicy) · [Terms of service](https://friendli.ai/terms-of-service) · [Logo](https://t0.gstatic.com/faviconV2?client=SOCIAL\&type=FAVICON\&fallback_opts=TYPE,SIZE,URL\&url=https://friendli.ai/\&size=256)

## Data policies

| Policy | Value |
| - | - |
| Uses data for training | No |
| Retains prompts | Yes |
| Can publish data | No |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.