---
title: WizardLM 2 8x22B API | Text Generation | ModelsLab
description: Build with WizardLM 2 8x22B API by Microsoft. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/microsoft/microsoft-wizardlm-2-8x22b.md
canonical: https://modelslab.com/models/microsoft/microsoft-wizardlm-2-8x22b.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-14T22:41:37.508598Z
---

WizardLM-2 8x22B
---

 [LLMs.txt](https://modelslab.com/models/open_router/microsoft-wizardlm-2-8x22b/llms.txt) [.md](https://modelslab.com/models/microsoft/microsoft-wizardlm-2-8x22b.md)

microsoft-wizardlm-2-8x22b microsoft Closed Source Model $0.620000 / call

WizardLM-2 8x22B
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### WizardLM-2 8x22B

microsoft microsoft-wizardlm-2-8x22b

Copy model ID

PricingInput $0.62 / 1M tokens

Output $0.62 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[OG](https://modelslab.com/models/open_router/openai-gpt-4o-mini-2024-07-18)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4o-mini (2024-07-18)

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4o-mini-2024-07-18)

[DR](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-R1-Distill-Qwen-7B)[Together AI](https://modelslab.com/models/together_ai)

 [DeepSeek R1 Distill Qwen 7B

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-R1-Distill-Qwen-7B)

[![GPT OSS 120b](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/32ccebf4-aaac-46b2-af6a-b19d11fcf8fa.webp)](https://modelslab.com/models/openai/gpt-oss-120b)[Open Ai](https://modelslab.com/models/openai)

 [GPT OSS 120b

Closed Source Model](https://modelslab.com/models/openai/gpt-oss-120b)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 1.7B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B)

[MM](https://modelslab.com/models/open_router/minimax-minimax-m1)[Open Router](https://modelslab.com/models/open_router)

 [MiniMax: MiniMax M1

Closed Source Model](https://modelslab.com/models/open_router/minimax-minimax-m1)

[OG](https://modelslab.com/models/open_router/openai-gpt-audio-mini)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT Audio Mini

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-audio-mini)

[SL](https://modelslab.com/models/open_router/sao10k-l3.1-euryale-70b)[Open Router](https://modelslab.com/models/open_router)

 [Sao10K: Llama 3.1 Euryale 70B v2.2

Closed Source Model](https://modelslab.com/models/open_router/sao10k-l3.1-euryale-70b)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-1.5B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 1.5B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-1.5B-Instruct)

[QN](https://modelslab.com/models/together_ai/Qwen-Qwen3-Next-80B-A3B-Instruct-FP8)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 Next 80B A3b Instruct Fp8

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-Next-80B-A3B-Instruct-FP8)

[QQ](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-35b-a3b)[Alibaba](https://modelslab.com/models/alibaba_cloud)

 [Qwen: Qwen3.5-35B-A3B

Closed Source Model](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-35b-a3b)

[NN](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl)[Open Router](https://modelslab.com/models/open_router)

 [NVIDIA: Nemotron Nano 12B 2 VL

Closed Source Model](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl)

[NN](https://modelslab.com/models/together_ai/nvidia-NVIDIA-Nemotron-3-Nano-30B-A3B-BF16)[Together AI](https://modelslab.com/models/together_ai)

 [Nvidia Nemotron 3 Nano 30B A3b Bf16

Closed Source Model](https://modelslab.com/models/together_ai/nvidia-NVIDIA-Nemotron-3-Nano-30B-A3B-BF16)

[DR](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-14B)[ModelsLab](https://modelslab.com/models/deepseek)

 [DeepSeek R1 Distill Qwen 14B

Closed Source Model](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-14B)

[XG](https://modelslab.com/models/open_router/x-ai-grok-3-mini-beta)[Open Router](https://modelslab.com/models/open_router)

 [xAI: Grok 3 Mini Beta

Closed Source Model](https://modelslab.com/models/open_router/x-ai-grok-3-mini-beta)

[OG](https://modelslab.com/models/open_router/openai-gpt-5.4-pro)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-5.4 Pro

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-5.4-pro)

[ZG](https://modelslab.com/models/open_router/z-ai-glm-5)[Open Router](https://modelslab.com/models/open_router)

 [Z.ai: GLM 5

Closed Source Model](https://modelslab.com/models/open_router/z-ai-glm-5)

[GG](https://modelslab.com/models/open_router/google-gemma-3-4b-it-free)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 3 4B (free)

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-3-4b-it-free)

[MM](https://modelslab.com/models/open_router/mistralai-mistral-small-2603)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Mistral Small 4

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mistral-small-2603)

About WizardLM-2 8x22B
---

WizardLM-2 8x22B is Microsoft AI's most advanced Wizard model. It demonstrates highly competitive performance compared to leading proprietary models, and it consistently outperforms all existing state-of-the-art opensource models. It is...

### Technical Specifications

Model IDmicrosoft-wizardlm-2-8x22bCategoryLLM ModelsTaskText GenerationPrice$0.620000 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate WizardLM-2 8x22B into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "microsoft-wizardlm-2-8x22b",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/microsoft/microsoft-wizardlm-2-8x22b/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

WizardLM-2 8x22B API costs $0.620000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Microsoft](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

WizardLM-2 8x22B FAQ
---

### What is WizardLM-2 8x22B?

WizardLM-2 8x22B is Microsoft AI's most advanced Wizard model. It demonstrates highly competitive performance compared to leading proprietary models, and it consistently outperforms all existing state-of-the-art opensource models. It is...

### How do I use the WizardLM-2 8x22B API?

You can integrate WizardLM-2 8x22B into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "microsoft-wizardlm-2-8x22b" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does WizardLM-2 8x22B cost?

WizardLM-2 8x22B costs $0.620000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the WizardLM-2 8x22B model ID?

The model ID for WizardLM-2 8x22B is "microsoft-wizardlm-2-8x22b". Use this ID in your API requests to specify this model.

### Does WizardLM-2 8x22B have a free tier?

Yes, ModelsLab offers a free tier that lets you try WizardLM-2 8x22B and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*