qwen2-1.5b-instruct
入力上限32,000トークン。生成量とサンプリングを調整できる、文章のみのQwen2 Instructルートです。
モデルについて
この説明はモデルの機能を紹介するものです。Ailootで利用できる入力、出力、オプションは、選択したメソッドごとに以下に記載されています。
qwen2-1.5b-instructは、文章入力の記載上限が32,000トークンの指示応答ルートです。短いサポートメッセージから指定項目を抽出し、原文にない項目は空欄で返す用途などに使えます。範囲を絞れば、モデル規模による品質保証を仮定せず、結果を確認しやすくなります。
/v1/chat/completionsは、max_tokensまたはmax_completion_tokens、temperature、top_p、seed、stop、任意のストリーミングを提供します。service_tierは空、auto、defaultで、数値の出力上限は公表されていません。1.5B Instructは識別名で、特定言語の品質や画像入力対応は確認されていません。
Ailoot Ultra · Chat Completions POST /v1/chat/completions qwen2-1.5b-instruct
qwen2-1.5b-instructはじめに
入力上限32,000トークン。生成量とサンプリングを調整できる、文章のみのQwen2 Instructルートです。
- 対応する入力
- テキスト
- 結果
- テキスト
Ailootで利用可能 · 入力とメソッド
Ailoot Ultra · Chat Completions POST /v1/chat/completions
- 入力の種類
text- 出力の種類
text- コンテキスト
- 32,000 tokens
- 出力形式
- JSON or supported SSE
| フィールド | 種類 | 要件 | 値と制限 | デフォルト |
|---|---|---|---|---|
フィールドmodel | 種類string | 要件必須 | 値と制限 qwen2-1.5b-instruct | デフォルト— |
フィールドmessages | 種類array | 要件必須 | 値と制限 | デフォルト— |
フィールドstream | 種類boolean | 要件任意 | 値と制限 | デフォルトfalse |
フィールドmax_tokens | 種類integer | 要件任意 | 値と制限 最小値: 1 | デフォルト— |
フィールドmax_completion_tokens | 種類integer | 要件任意 | 値と制限 最小値: 1 | デフォルト— |
フィールドn | 種類integer | 要件任意 | 値と制限 最小値: 1 | デフォルト— |
フィールドtemperature | 種類number | 要件任意 | 値と制限 | デフォルト— |
フィールドtop_p | 種類number | 要件任意 | 値と制限 | デフォルト— |
フィールドseed | 種類integer | 要件任意 | 値と制限 | デフォルト— |
フィールドstop | 種類 | 要件任意 | 値と制限 | デフォルト— |
フィールドfrequency_penalty | 種類number | 要件任意 | 値と制限 | デフォルト— |
フィールドpresence_penalty | 種類number | 要件任意 | 値と制限 | デフォルト— |
フィールドuser | 種類string | 要件任意 | 値と制限 | デフォルト— |
フィールドtools | 種類array | 要件任意 | 値と制限 | デフォルト— |
フィールドservice_tier | 種類string | 要件任意 | 値と制限 , auto, default | デフォルト— |
フィールドmodalities | 種類array | 要件任意 | 値と制限 | デフォルト— |
メソッドのパラメータとライフサイクル
| パラメータ | 仕様 |
|---|---|
パラメータcontent_type | 仕様application/json |
パラメータrequired | 仕様model, messages |
パラメータoptional | 仕様stream, max_tokens, max_completion_tokens, n, temperature, top_p, seed, stop, frequency_penalty, presence_penalty, user, tools, service_tier, modalities |
パラメータmaterial_types | 仕様text |
パラメータconditions | 仕様Use 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. |
ライフサイクル: synchronous_json_or_sse
料金
料金情報はリクエストの機能を追加しません。対応するパラメーターは選択したメソッドに記載されています。
- 高速モード
- 標準料金 高速モードが選択されている場合
- Flex モード
- 標準料金 flex モードが選択されている場合
- 最大推論量
- 標準料金 推論量が最大で、調整に既定値(default)を使用する場合
- 明示的キャッシュの料金
- 無効 明示的キャッシュを要求した場合
- テキストのみの場合のゼロ料金
- キャッシュ、ツール、メディアには、それぞれ別途記載された料金条件が適用されます。 テキストのみの入力と出力の場合
Ailootの料金
設定別の価格
| 設定 | 料金表 | 料金 |
|---|---|---|
| 設定基本トークン料金 | 料金表基本料金 | 料金 入力 · 入力トークン $0 / 1K トークン 出力 · 出力トークン $0 / 1K トークン 入力 · キャッシュ読み取り $0 / 1K トークン 入力 · キャッシュ書き込み $0 / 1K トークン 入力 · キャッシュ書き込み、1時間 — / 1K トークン |
Ailootはリクエスト前に見積額を確保します。結果の取得後、実測使用量に基づいて最終料金を精算します。ストリーミング時の精算には最終の使用量記録を使用します。金額の確保と精算の仕組み →
リクエスト例
Ailoot Ultra · Chat Completions
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-1.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.
結果を受け取って保存
Ailoot Ultra · Chat Completions
JSON or supported SSE
完了した結果をすべて保存
返された完全なレスポンス、ファイル、コンテンツ部分をすべて保存してください。
Retain the complete response, all actual results, original identifiers, usage and response headers.
元のレスポンスを確認する場合
Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.
エイリアス
モデルのエイリアス
Ailoot Ultra qwen2-1.5b-instruct
メソッドパスのエイリアス
上記に表示されたメソッドパスを使用してください。
関連する呼び出し用ID
FAQ · qwen2-1.5b-instruct
- 利用できる入力と結果は何ですか?
POST /v1/chat/completions·qwen2-1.5b-instruct:text→text- リクエストはどの項目を使用しますか?
POST /v1/chat/completions·qwen2-1.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- どの制限が適用されますか?
POST /v1/chat/completions·qwen2-1.5b-instruct:ctx:32000;max_tokens.minimum:1;max_completion_tokens.minimum:1;n.minimum:1