テキストからページ数を見積もる
作家、学生、エージェント、制作編集者は、同じ計画上の問いを繰り返し立てます。この下書きは、ダブルスペースや標準の原稿フォント、短い小論文冊子の体裁にすると、何ページの印刷になるのか。このページ数見積もりツールは、透明な算術モデルでその問いに答えます。プレーンテキストを貼り付け、必要なら1ページに収まる語数を指定すると、決定的な単語総数、正確な小数ページ、印刷見積もりやワークショップ提出、章の割り付けに使える整数ページ上限が返ります。既定の1ページ250語は、よく知られたダブルスペース原稿の目安に沿い、カスタム密度はシングルスペース報告、密な学術レイアウト、大きな活字の版にも対応します。空入力や非正の密度は、無意味な結果を作る代わりに明確な検証エラーになります。無料のブラウザウィジェットと前払いAPIは、同一の純粋な同型関数を共有するため、デモ、スクリプト、本番ジョブが同じ文字列で食い違いません。エンジン内のネットワーク往復も乱数シードも時計依存もなく、同じテキストと密度は常に同じJSONを返し、ゴールデンテストとキャッシュに使えます。
無料で実行
使い方
上のフォームに値を入力してください。計算前に内容を確認し、同じページに結果を表示します。
入力内容の確認
各項目のラベルと単位に従って入力してください。不足や範囲外の値がある場合は、修正する項目をページ上で示します。
再計算または自動化
個別の確認にはWebツールを、同じ機能を自動処理に組み込む場合はAPIを使用できます。
活用例
今すぐ結果を確認
値を入力するだけで、表計算やスクリプトを用意せずに結果を確認できます。
条件を比較
値を1つずつ変えて再計算し、結果に影響する要素を確認できます。
繰り返し処理を自動化
同じ計算を製品やワークフローで繰り返す場合はAPIを利用できます。
よくある質問
この機能はどう使いますか?
上の項目を入力して、このページで実行します。修正が必要な入力はフォームで示されます。
開発者向け — APIアクセス
このページの機能はすべてAPIからも利用できます。自社システムに組み込みたいチーム向けのセクションです。それ以外の方は上のツールをそのままお使いください。
エンドポイント
Bearerトークンで認証し、POST1回でタスクをキューに登録します。結果はWebhookまたは署名付きリンクで受け取れます。
お使いのスタックから呼び出す
curl -X POST https://api.kit.forhosting.com/str/estimate-page-count \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Once upon a time there was a careful writer who planned every chapter before printing. The draft grew through mornings of revision until the story filled several manuscript pages."}'const res = await fetch("https://api.kit.forhosting.com/str/estimate-page-count", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"text": "Once upon a time there was a careful writer who planned every chapter before printing. The draft grew through mornings of revision until the story filled several manuscript pages."
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/str/estimate-page-count",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"text": "Once upon a time there was a careful writer who planned every chapter before printing. The draft grew through mornings of revision until the story filled several manuscript pages."
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/str/estimate-page-count", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"text":"Once upon a time there was a careful writer who planned every chapter before printing. The draft grew through mornings of revision until the story filled several manuscript pages."}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"text":"Once upon a time there was a careful writer who planned every chapter before printing. The draft grew through mornings of revision until the story filled several manuscript pages."}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/str/estimate-page-count", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)リクエスト例
{
"text": "Once upon a time there was a careful writer who planned every chapter before printing. The draft grew through mornings of revision until the story filled several manuscript pages."
}レスポンス例
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "str.estimate_page_count",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}非同期APIです。task_idは即時に返ります。ポーリングは1秒あたり1リクエストまでです。
料金
単価はすべて公開しています。トークン換算や独自クレジットはありません。失敗したタスクは課金されません。
エラー
| HTTP | コード | 意味 |
|---|---|---|
401 | unauthorized | APIキーが無効か、指定されていません。Authorizationヘッダーを確認してください。 |
402 | insufficient_balance | 残高が不足しています。チャージ後に再度お試しください。 |
404 | unknown_type | 指定されたタスクタイプは存在しません。タイプ名を確認してください。 |
429 | rate_limited | リクエストが多すぎます。しばらく待ってから再度お試しください。 |