Skip to main content
Glama

What is Gateway?

Gateway lets you access AI models from top providers like OpenAI and Anthropic with one API key, unified billing, and zero rate limits.

PropertyDescription
Model ID
qwen-max
Alias-
Creator
Alibaba
License-
Supported data types

Inputs

Audio, Image, Text

Outputs

Image, Text

Token limits

Input token limit

32,000

Output token limit

2,000

Capabilities

Image generation

Native tool use

Release date
Latest update-
Knowledge cut-off
Reference URLhttps://github.com/QwenLM/Qwen
Hugging Face URL-

Providers

Name
Price
InputOutputCache ReadCache Write
$10
$30
$-
$-

Success Rate (%)

Latency (ms)

Gateway Code Examples

import { OpenAI } from 'openai' const openai = new OpenAI({ // OpenAI compatible API baseURL: 'https://glama.ai/api/gateway/openai/v1', // Your Glama Gateway API key // https://glama.ai/settings/gateway/api-keys apiKey: GLAMA_API_KEY, }); await openai.chat.completions.create({ messages: [ { role: 'user', content: 'Hello!' } ], // Let Glama choose the best provider model: 'qwen-max', // If there are multiple model providers, then we will pick // the provider with the best availability, price, and latency. // or specify a specific provider... // model: 'alibaba/qwen-max' });

FAQ