{"uid":"cap_xRXCP2OYzdCc-roofZ3Ba","slug":"publishing-calc-ebook-file-size-estimator-5d6a1bd8","name":"Publishing Calc – Ebook File Size Estimator","description":"Estimate ebook file size in KB and MB from word count, image count and average image size (all adjustable).","url":"https://publishing-calc.x402tookit.com/ebook-size?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["words"],"properties":{"words":{"type":"number","description":"Word count of the book"},"images":{"type":"integer","description":"Number of embedded images (default 0)"},"avgImageKb":{"type":"number","description":"Average size of one embedded image in KB, 1 KB = 1000 bytes (default 200)"},"overheadKb":{"type":"number","description":"Fixed overhead in KB for stylesheet, metadata and navigation (default 50)"},"bytesPerWord":{"type":"number","description":"Uncompressed text bytes per word incl. markup (default 6.5)"},"textCompression":{"type":"number","description":"Zip size as a fraction of raw text, 0.1 to 1 (default 0.4)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"words":{"type":["null","number"]},"images":{"type":["null","number"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"totalKb":{"type":["null","number"]},"totalMb":{"type":["null","number"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"imagesKb":{"type":["null","number"]},"rawTextKb":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"overheadKb":{"type":["null","number"]},"bytesPerWordUsed":{"type":["null","number"]},"compressedTextKb":{"type":["null","number"]},"imageSharePercent":{"type":["null","number"]},"textCompressionUsed":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_k1u788AGCwsR7LndTFy00","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates ebook file size in KB and MB from word count, image count, average image size, and adjustable compression/overhead parameters.","exampleAgentPrompt":"How big will my ebook be if it's 75000 words with 15 images averaging 150 KB each? Give me the estimated file size in KB and MB.","exampleUseCases":[{"title":"Estimating KDP upload file size","prompt":"I'm about to upload my novel to Amazon KDP — it's 82000 words with no images. Can you estimate how big the ebook file will be in MB so I know if it'll fit within their size limits?"},{"title":"Photo-heavy cookbook file size check","prompt":"I'm writing a cookbook with around 40000 words and 80 photos, and each photo is roughly 300 KB on average. What's the estimated total ebook file size I should expect?"},{"title":"Optimizing ebook size before publishing","prompt":"My travel guide is 55000 words with 50 images averaging 250 KB each. If I reduce the average image size to 100 KB, how much smaller would the ebook file get? Can you run both estimates?"}],"resultDescription":"Returns a structured object with the estimated total ebook file size in KB and MB, a breakdown of compressed text KB, images KB, overhead KB, raw text KB, the percentage of file size from images, the parameters used (bytesPerWord, textCompression), a human-readable summary and verdict, plus optional disclaimer and reasons fields.","failureModes":["Missing required 'words' query parameter returns an error","Non-numeric values for numeric fields cause validation errors","Extreme compression ratios outside 0.1–1 may produce unexpected results","Very large word or image counts may produce unrealistic estimates if inputs are misconfigured"],"whenToPreferThis":"Use this endpoint when you need a fast, parameterized estimate of an ebook's file size before publishing, uploading, or pricing — especially when you want to model the impact of image count, image size, or compression settings without building your own formula. Ideal for self-publishing workflows, KDP upload planning, or publishing calculators that need a breakdown of text vs. image size contributions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:34:48.966Z","isFirstParty":false,"canonicalSlug":"publishing-calc-ebook-file-size-estimator-5d6a1bd8"}