# Agent Documents Finished DOCX, XLSX and PDF files from supplied Unicode text, Markdown or structured JSON. No AI writing or translation. - OpenAPI: https://agentdocuments.online/openapi.json - Docs: https://agentdocuments.online/docs - Formats, limits and current prices: https://agentdocuments.online/api/v1/formats - Create: POST https://agentdocuments.online/api/v1/documents - Retrieve: GET /api/v1/documents/{id} - Download: GET /api/v1/documents/{id}/download Send application/json and a secret random Idempotency-Key (32–128 URL-safe characters). First request returns HTTP 402 and PAYMENT-REQUIRED. Pay using x402 v2 exact USDC on eip155:8453; retry identical body/key with PAYMENT-SIGNATURE. Retrieve and download with Authorization: Bearer . Never put keys in URLs. Pricing: {"currency":"USDC","formula":"ceil_micro_USDC(max(minimum, variable_cost * multiplier))","cost_basis":"conservative_estimate","multiplier":3,"minimum_usdc":0.01,"model_version":"9ed6983bfe088bc1","description":"Cost-based prepaid tiers. Exact invoice cost is reconciled separately; no later surcharge. No language or geography surcharge.","tiers":{"simple":"Up to 5,000 normalized JSON characters and 100 spreadsheet cells.","standard":"Up to 25,000 normalized JSON characters and 2,000 spreadsheet cells.","complex":"Larger documents within the service limits."},"formats":{"docx":{"simple":{"tier":"simple","format":"docx","amount":"0.018146","currency":"USDC","model_version":"9ed6983bfe088bc1","cost_basis":"conservative_estimate","estimated_variable_cost_usd":0.006048428657777777,"components_usd":{"llm":0,"search_api":0,"browser_rendering":0,"payment_provider":0.001,"cpu":0.000096,"memory":0.00017077777777777778,"invocations":0.0000042,"edge_requests":0.000022400000000000002,"database_compute":0.004416666666666666,"storage":0.000007645866666666667,"history":0.000007645866666666667,"database_transfer":0.00004096,"delivery":0.00028213248,"other":0},"multiplier":3,"minimum_usdc":0.01},"standard":{"tier":"standard","format":"docx","amount":"0.019490","currency":"USDC","model_version":"9ed6983bfe088bc1","cost_basis":"conservative_estimate","estimated_variable_cost_usd":0.006496666595555554,"components_usd":{"llm":0,"search_api":0,"browser_rendering":0,"payment_provider":0.001,"cpu":0.00023822222222222224,"memory":0.00019433333333333333,"invocations":0.0000042,"edge_requests":0.000022400000000000002,"database_compute":0.004416666666666666,"storage":0.000012233386666666665,"history":0.00002599594666666667,"database_transfer":0.00013926400000000003,"delivery":0.00044335104000000003,"other":0},"multiplier":3,"minimum_usdc":0.01},"complex":{"tier":"complex","format":"docx","amount":"0.023999","currency":"USDC","model_version":"9ed6983bfe088bc1","cost_basis":"conservative_estimate","estimated_variable_cost_usd":0.007999507235555555,"components_usd":{"llm":0,"search_api":0,"browser_rendering":0,"payment_provider":0.001,"cpu":0.0005582222222222222,"memory":0.00024733333333333335,"invocations":0.0000042,"edge_requests":0.000022400000000000002,"database_compute":0.004416666666666666,"storage":0.00003058346666666666,"history":0.00009939626666666668,"database_transfer":0.00053248,"delivery":0.00108822528,"other":0},"multiplier":3,"minimum_usdc":0.01}},"xlsx":{"simple":{"tier":"simple","format":"xlsx","amount":"0.018146","currency":"USDC","model_version":"9ed6983bfe088bc1","cost_basis":"conservative_estimate","estimated_variable_cost_usd":0.006048428657777777,"components_usd":{"llm":0,"search_api":0,"browser_rendering":0,"payment_provider":0.001,"cpu":0.000096,"memory":0.00017077777777777778,"invocations":0.0000042,"edge_requests":0.000022400000000000002,"database_compute":0.004416666666666666,"storage":0.000007645866666666667,"history":0.000007645866666666667,"database_transfer":0.00004096,"delivery":0.00028213248,"other":0},"multiplier":3,"minimum_usdc":0.01},"standard":{"tier":"standard","format":"xlsx","amount":"0.019366","currency":"USDC","model_version":"9ed6983bfe088bc1","cost_basis":"conservative_estimate","estimated_variable_cost_usd":0.006455222151111111,"components_usd":{"llm":0,"search_api":0,"browser_rendering":0,"payment_provider":0.001,"cpu":0.00020266666666666667,"memory":0.00018844444444444445,"invocations":0.0000042,"edge_requests":0.000022400000000000002,"database_compute":0.004416666666666666,"storage":0.000012233386666666665,"history":0.00002599594666666667,"database_transfer":0.00013926400000000003,"delivery":0.00044335104000000003,"other":0},"multiplier":3,"minimum_usdc":0.01},"complex":{"tier":"complex","format":"xlsx","amount":"0.028145","currency":"USDC","model_version":"9ed6983bfe088bc1","cost_basis":"conservative_estimate","estimated_variable_cost_usd":0.009381628088888889,"components_usd":{"llm":0,"search_api":0,"browser_rendering":0,"payment_provider":0.001,"cpu":0.0004515555555555556,"memory":0.00022966666666666667,"invocations":0.0000042,"edge_requests":0.000022400000000000002,"database_compute":0.004416666666666666,"storage":0.00005505024,"history":0.00019726336000000004,"database_transfer":0.001056768,"delivery":0.0019480576,"other":0},"multiplier":3,"minimum_usdc":0.01}},"pdf":{"simple":{"tier":"simple","format":"pdf","amount":"0.020496","currency":"USDC","model_version":"9ed6983bfe088bc1","cost_basis":"conservative_estimate","estimated_variable_cost_usd":0.006831835697777777,"components_usd":{"llm":0,"search_api":0,"browser_rendering":0,"payment_provider":0.001,"cpu":0.00020266666666666667,"memory":0.00018844444444444445,"invocations":0.0000042,"edge_requests":0.000022400000000000002,"database_compute":0.004416666666666666,"storage":0.000018350079999999998,"history":0.00005046272,"database_transfer":0.000270336,"delivery":0.00065830912,"other":0},"multiplier":3,"minimum_usdc":0.01},"standard":{"tier":"standard","format":"pdf","amount":"0.023999","currency":"USDC","model_version":"9ed6983bfe088bc1","cost_basis":"conservative_estimate","estimated_variable_cost_usd":0.007999507235555555,"components_usd":{"llm":0,"search_api":0,"browser_rendering":0,"payment_provider":0.001,"cpu":0.0005582222222222222,"memory":0.00024733333333333335,"invocations":0.0000042,"edge_requests":0.000022400000000000002,"database_compute":0.004416666666666666,"storage":0.00003058346666666666,"history":0.00009939626666666668,"database_transfer":0.00053248,"delivery":0.00108822528,"other":0},"multiplier":3,"minimum_usdc":0.01},"complex":{"tier":"complex","format":"pdf","amount":"0.041287","currency":"USDC","model_version":"9ed6983bfe088bc1","cost_basis":"conservative_estimate","estimated_variable_cost_usd":0.013762203128888888,"components_usd":{"llm":0,"search_api":0,"browser_rendering":0,"payment_provider":0.001,"cpu":0.001624888888888889,"memory":0.000424,"invocations":0.0000042,"edge_requests":0.000022400000000000002,"database_compute":0.004416666666666666,"storage":0.00010398378666666665,"history":0.0003929975466666667,"database_transfer":0.002105344,"delivery":0.0036677222399999995,"other":0},"multiplier":3,"minimum_usdc":0.01}}}} Selling price = max(0.01 USDC minimum, 3 × conservative variable cost), rounded up to micro-USDC. Actual invoice costs are reconciled separately. Exact price before generation; no later surcharge. Mode: live. Local demo uses simulated payments only. Retention: 24 hours. No subscription. Maximum 256 KiB request, 100,000 characters, 10,000 spreadsheet cells and 4 MiB output. XLSX formulas only as explicit {"formula":"SUM(B2:B5)"} cells (no external references, DDE, INDIRECT or network functions); strings starting with = stay literal. No macros, HTML, images, remote imports or scripts. PDF fonts support Latin, Cyrillic and CJK; unsupported glyphs return 422. DOCX/XLSX render with installed viewer fonts. Errors: 400 invalid_input/invalid_json/invalid_key/unsupported_content, 402 payment_required/invalid_payment, 404 not_found, 409 idempotency_conflict/payment_replay, 410 expired, 413 request_too_large/content_too_large/output_too_large, 415 unsupported_media_type, 422 unsupported_glyph/generation failure, 429 rate_limited, 503 not_configured/service_unavailable/file_unavailable. A 202 settling/settlement_unknown response requires polling with the original key; do not pay again.