Using WizardLM-2 8x22B on Together AI

Implementation guide · WizardLM-2 · WizardLM Team

ServerlessOpen Source

Together AI exposes WizardLM-2 8x22B through model ID wizardlm-2-8x22b. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-10-09. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at Together AI and generate an API key.
  2. 2
    Use the Together AI SDK or REST API to call wizardlm-2-8x22b — see the documentation for request format.

Code Examples

Install
pip install together
API key
TOGETHER_API_KEY
Model ID
wizardlm-2-8x22b

Together uses "organization/model-name" format, e.g. "meta-llama/Llama-4-Scout-17B-16E-Instruct" or "Qwen/QwQ-32B". See the Together model catalog for the exact ID.

from together import Together

client = Together()  # reads TOGETHER_API_KEY from env
response = client.chat.completions.create(
    model="wizardlm-2-8x22b",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Pricing on Together AI

Capabilities

Structured Outputs

About WizardLM-2 8x22B

WizardLM-2 8x22B, developed by WizardLM@Microsoft AI, is a powerful large language model (LLM) featuring 141 billion parameters and utilizing a Mixture of Experts (MoE) architecture. It excels in complex tasks such as chat, multilingual conversations, reasoning, and agent-based interactions. Trained with an AI-powered synthetic system incorporating techniques like Evol-Instruct and AI Align AI, the model surpasses many open-source alternatives. Despite its performance on various benchmarks, further research is essential to address potential biases and enhance reliability post "toxicity testing."

Model Specs

Released2024-04-15
Parameters8x22B
ArchitectureMixture of Experts

Provider

Together AI

San Francisco, California, United States