We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Qwen2.5 72B Instruct
qwen/qwen-2.5-72b-instructTry Qwen2.5 72B Instruct now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Qwen2.5 72B Instruct at a glance
- Input price is 20% lower than the median of 434 Text models.
- Context window of 32,768 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- A typical request (1,000 input / 500 output tokens) costs about $0.00196.
About Qwen2.5 72B Instruct
Qwen2.5 72B Instruct is a text generation model from Qwen, the large language model series developed by Alibaba Cloud. It belongs to the Qwen2.5 family, which the provider describes as bringing significantly more knowledge than Qwen2 along with greatly improved coding capabilities. The model was released by the provider on 19 September 2024, and its training knowledge runs up to a cutoff of 30 June 2024. It sits in the text category and is positioned as an instruction-tuned model, meaning it is designed to follow prompts and produce direct responses rather than raw continuations.
The model accepts text as input and returns text as output, so it works for any task that can be expressed in language. Its context window is 32,768 tokens, which covers a substantial amount of material in a single request, and the maximum output length is 16,384 tokens. That combination suits long prompts such as multi-document summaries, extended code files or detailed instructions where the answer itself may also be lengthy. Because only text is supported on both sides, the model does not process images, audio or other modalities.
Those capabilities point to a fairly broad set of practical uses. Instruction following and the emphasis on coding make it a reasonable fit for code generation, refactoring, debugging help and explanation of existing code. The large context window supports retrieval-style workflows where several source passages are pasted into the prompt and the model is asked to synthesise or answer questions over them. It also works for drafting and editing prose, structured extraction from text, classification and summarisation, and conversational assistants that need to hold a long thread of dialogue within the token budget.
You can call the model through api14's OpenAI-compatible API using the model id "qwen/qwen-2.5-72b-instruct". Because the interface follows the OpenAI chat completions shape, existing OpenAI SDKs and clients generally work with only the base URL and key changed. The model supports a wide set of request parameters: frequency_penalty, logit_bias, max_tokens, min_p, presence_penalty, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k and top_p. Tool calling and structured outputs are therefore available directly, which is useful when you need the model to return JSON or invoke functions rather than free text.
A few constraints are worth weighing before you commit. The 32,768 token context is generous but not unlimited, so very large codebases or long document sets may need chunking or retrieval rather than a single prompt. The knowledge cutoff of 30 June 2024 means anything more recent has to come from the prompt itself. If your workload is not text based, this model will not help, since it has no image or audio input. For tasks that fit within these bounds, it offers a capable general-purpose text model with strong parameter control.
How to call the Qwen2.5 72B Instruct API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "qwen/qwen-2.5-72b-instruct".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "qwen/qwen-2.5-72b-instruct",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltylogit_biasmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_pSpecifications
- Context length
- 32,768
- Max output
- 16,384
- Input
- text
- Output
- text
- Knowledge cutoff
- 2024-06-30
Requests on api14 · last 7 days
Qwen2.5 72B Instruct: frequently asked questions
- How much does the Qwen2.5 72B Instruct API cost?
- Qwen2.5 72B Instruct costs Input $1.26 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Qwen2.5 72B Instruct?
- Qwen2.5 72B Instruct reads up to 32,768 tokens per request: prompt, history and documents together. It writes up to 16,384 output tokens per response.
- What can Qwen2.5 72B Instruct do?
- Qwen2.5 72B Instruct accepts text and returns text. It supports tool calling, structured JSON output.
- How do I call Qwen2.5 72B Instruct from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "qwen/qwen-2.5-72b-instruct". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Qwen2.5 72B Instruct?
- Comparable Text models at a similar price: MiniMax: MiniMax M3.1 Flash, DeepSeek: DeepSeek V4.1 Flash 1017, LiquidAI: LFM2.5-24B-A2B. Each runs through the same API key, so switching is one string.
Qwen2.5 72B Instruct community
New topicThis community has no topics yet. Open the first one about Qwen2.5 72B Instruct.