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

# EmberCloud

> EmberCloud specializes in fast, affordable inference for Chinese frontier models — GLM, MiniMax, Kimi, and Qwen — through an OpenAI-compatible API.

EmberCloud offers 8 models through Lava's AI Gateway, supporting Chat Completions. Authentication uses `Authorization: Bearer`. See the [EmberCloud API docs](https://www.embercloud.ai/docs) for provider-specific parameters.

> [!NOTE]
>
> Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.

## Quick Start

```typescript theme={null}
const response = await fetch('https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.embercloud.ai%2Fv1%2Fchat%2Fcompletions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${forwardToken}`,
  },
  body: JSON.stringify({
    model: 'minimax-m2.5',
    messages: [{ role: "user", content: "Hello!" }],
  }),
});
```

## Chat Completions

**Target URL:** `https://api.embercloud.ai/v1/chat/completions`

| | |
| - | - |
| **Content Type** | `application/json` |
| **Streaming** | Yes (set `stream: true` in request body) |

| Model | Input / 1M tokens | Output / 1M tokens |
| - | - | - |
| glm-5 | \$0.57 | \$1.82 |
| glm-4.5 | \$0.57 | \$2.09 |
| glm-4.7 | \$0.38 | \$1.66 |
| kimi-k2.5 | \$0.356 | \$1.98 |
| minimax-m2.5 | \$0.143 | \$0.855 |
| glm-4.5-air | \$0.123 | \$0.807 |
| qwen3-coder-next | \$0.108 | \$0.675 |
| glm-4.7-flash | \$0.057 | \$0.38 |

## Next Steps

> [card] [All Providers](https://lava.so/docs/gateway/supported-providers.md)
>
> Browse all supported AI providers

> [card] [Forward Proxy](https://lava.so/docs/gateway/forward-proxy.md)
>
> Learn how to construct proxy URLs and authenticate requests


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