Source: https://ailoot.ai/models/en/qwen2-0-5b-instruct/
Canonical: https://ailoot.ai/models/en/qwen2-0-5b-instruct/
Language: en

# qwen2-0.5b-instruct

[Markdown](https://ailoot.ai/models/en/qwen2-0-5b-instruct/index.md) · [JSON](https://ailoot.ai/models/en/qwen2-0-5b-instruct/facts.json)

## [qwen2-0.5b-instruct](https://ailoot.ai/models/en/qwen2-0-5b-instruct/)

qwen2-0.5b-instruct is a Tongyi Qianwen text model for message-based requests. Use its exact ID with Chat Completions to work on supplied passages: draft a reply, turn notes into a checklist, extract named fields or explain a short code fragment. Its text input allowance is 32,000 tokens.

- [**Ailoot Ultra · Chat Completions** `POST /v1/chat/completions` `qwen2-0.5b-instruct`](https://ailoot.ai/models/en/qwen2-0-5b-instruct/#method-0)

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

qwen2-0.5b-instruct is the exact model selection for this Tongyi Qianwen text conversation profile. Send the instructions and source material as text and request a concrete written result. Practical prompts can turn a customer message into a proposed reply, reorganise meeting notes, or extract a small set of facts from a supplied passage. Specify the audience and the desired answer structure so the application has a clear result to consume.

Use POST /v1/chat/completions with model set to qwen2-0.5b-instruct and a nonempty messages array. Each message supplies a role and text content. Include the relevant earlier turns when a follow-up relies on the conversation. For document work, read the relevant UTF-8 text from the document and place that actual text in the message. Keep a section title or source label with each excerpt when the answer needs to distinguish several passages.

The text input allowance is 32,000 tokens. Keep the instructions, source passages and conversation history within that input budget. For a lengthy document, select the sections needed for the current question or process clearly labelled excerpts as separate tasks. State which passage the answer should use and what to return when a requested field is absent from it.

For a reply-drafting task, provide the customer’s wording together with the approved product information and ask for a response with a specific next step. For extraction, list fields such as issue, requested action and quoted evidence, then ask the model to return only facts found in the supplied text. For code explanation, paste the function and request a description of its inputs, transformations and output. These instructions define the task in the prompt and keep the result tied to the material you provide.

The optional boolean stream control selects response delivery: stream:false, the default, returns the assembled JSON response; stream:true delivers events as the response is produced. For JSON, read the returned choices and message content and retain usage when supplied. For streaming, assemble content deltas for each choice and retain the final finish information before storing the answer as complete. Keep the original response and request identity when a request ends ambiguously.

**Ailoot Ultra · Chat Completions** `POST /v1/chat/completions` `qwen2-0.5b-instruct`

[`qwen2-0.5b-instruct`](https://ailoot.ai/models/en/#m=qwen2-0.5b-instruct&route=Ultra&caller=qwen2-0.5b-instruct&fmt=chat)

Alibaba /`qwen2-0.5b-instruct`

### Overview

qwen2-0.5b-instruct is a Tongyi Qianwen text model for message-based requests. Use its exact ID with Chat Completions to work on supplied passages: draft a reply, turn notes into a checklist, extract named fields or explain a short code fragment. Its text input allowance is 32,000 tokens.

Accepted inputs

Text

Results

Text

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Chat Completions** `POST /v1/chat/completions`

Input types

`text`

Output types

`text`

Context

32,000 tokens

Output format

JSON or supported SSE

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits qwen2-0.5b-instruct | Default— |
| Field`messages` | Type`array` | RequirementRequired | Values & limits | Default— |
| Field`stream` | Type`boolean` | RequirementOptional | Values & limits | Defaultfalse |
| Field`max_tokens` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 | Default— |
| Field`max_completion_tokens` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 | Default— |
| Field`n` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 | Default— |
| Field`temperature` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`top_p` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`seed` | Type`integer` | RequirementOptional | Values & limits | Default— |
| Field`stop` | Type`` | RequirementOptional | Values & limits | Default— |
| Field`frequency_penalty` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`presence_penalty` | Type`number` | RequirementOptional | Values & limits | Default— |
| Field`user` | Type`string` | RequirementOptional | Values & limits | Default— |
| Field`tools` | Type`array` | RequirementOptional | Values & limits | Default— |
| Field`service_tier` | Type`string` | RequirementOptional | Values & limits , auto, default | Default— |
| Field`modalities` | Type`array` | RequirementOptional | Values & limits | Default— |

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, messages |
| Parameter`optional` | Contractstream, max\_tokens, max\_completion\_tokens, n, temperature, top\_p, seed, stop, frequency\_penalty, presence\_penalty, user, tools, service\_tier, modalities |
| Parameter`material_types` | Contracttext |
| Parameter`conditions` | ContractUse text input and text output. Explicit cache, hosted tools and media are unavailable. Standard function tools remain a protocol feature and run in the client. |

Lifecycle: `synchronous_json_or_sse`

### Pricing

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Standard rate When fast mode is selected

Flex mode

Standard rate When flex mode is selected

Maximum reasoning effort

Standard rate When maximum reasoning effort uses the default adjustment

Explicit cache pricing

Not enabled When explicit cache is requested

Text-only zero rates

Cache, tools and media follow their separately listed pricing conditions. For text-only input and output

#### Ailoot rates

#### Prices by configuration

| Configuration | Rate schedule | Charge |
| --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Charge Input · Input tokens **$0** / 1K tokens Output · Output tokens **$0** / 1K tokens Input · Cache read **$0** / 1K tokens Input · Cache write **$0** / 1K tokens Input · Cache write, 1 hour **—** / 1K tokens |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Chat Completions

curl · create once and retain the complete result

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "qwen2-0.5b-instruct", "messages": [{"role": "user", "content": "Summarize the supplied text in three concise points."}], "stream": false}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/chat/completions \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.
```

### Receive and save results

#### Ailoot Ultra · Chat Completions

JSON or supported SSE

##### Keep all completed results

Keep every complete returned response, file and content part.

Retain the complete response, all actual results, original identifiers, usage and response headers.

##### If the original response needs checking

Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.

### Aliases

#### Model aliases

**Ailoot Ultra** [`qwen2-0.5b-instruct`](https://ailoot.ai/models/en/#m=qwen2-0.5b-instruct&route=Ultra&caller=qwen2-0.5b-instruct&fmt=chat)

#### Method path aliases

Use the method paths shown above.

#### Related caller IDs

[`qwen2-0.5b-instruct`](https://ailoot.ai/models/en/#m=qwen2-0.5b-instruct&route=Ultra&caller=qwen2-0.5b-instruct&fmt=chat)

FAQ · qwen2-0.5b-instruct

What inputs and results are available?

`POST /v1/chat/completions` · `qwen2-0.5b-instruct`: `text` → `text`

Which fields does the request use?

`POST /v1/chat/completions` · `qwen2-0.5b-instruct`: `model`, `messages`, `stream`, `max_tokens`, `max_completion_tokens`, `n`, `temperature`, `top_p`, `seed`, `stop`, `frequency_penalty`, `presence_penalty`, `user`, `tools`, `service_tier`, `modalities`

What limits apply?

`POST /v1/chat/completions` · `qwen2-0.5b-instruct`: `ctx`: `32000`; `max_tokens.minimum`: `1`; `max_completion_tokens.minimum`: `1`; `n.minimum`: `1`

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

## The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

## Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription

Choose a discounted plan for your regular requests.

Promo code: up to 50% off

Enter your code at checkout. The price updates to reflect the current promotion.

Spending in your history

The model, tokens and amount are recorded for each request.

[Choose a subscription](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application

Add text, image, video and audio generation to paid features in your service.

Reseller licence

Send a description of your project and how you provide access. Request written terms for use and resale.

Documents on the website

The service offer, licence agreement and data processing policy are available before you connect.

[Request a reseller licence](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
