{"openapi":"3.1.0","info":{"title":"PDF API","version":"1.0.0","description":"Generate PDF documents from text on the fly — with an optional bold title, page size (A4, Letter or Legal) and font size. Returns a base64 PDF or a raw downloadable file. Great for invoices, reports, receipts and tickets.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/pdf-api","description":"oanor gateway"}],"tags":[{"name":"PDF"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/file":{"get":{"operationId":"get_v1_file","tags":["PDF"],"summary":"Generate a PDF (raw file)","description":"","parameters":[{"name":"text","in":"query","required":true,"description":"Body text (\\n for new lines, max 50000)","schema":{"type":"string"},"example":"Hello world"},{"name":"title","in":"query","required":false,"description":"Optional bold heading","schema":{"type":"string"},"example":"Invoice"},{"name":"page","in":"query","required":false,"description":"a4 | letter | legal","schema":{"type":"string"},"example":"a4"},{"name":"font_size","in":"query","required":false,"description":"Body font size 8-24","schema":{"type":"integer"},"example":"12"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/generate":{"get":{"operationId":"get_v1_generate","tags":["PDF"],"summary":"Generate a PDF (base64 JSON)","description":"","parameters":[{"name":"text","in":"query","required":true,"description":"Body text (\\n for new lines, max 50000)","schema":{"type":"string"},"example":"Hello world"},{"name":"title","in":"query","required":false,"description":"Optional bold heading","schema":{"type":"string"},"example":"Invoice"},{"name":"page","in":"query","required":false,"description":"a4 | letter | legal","schema":{"type":"string"},"example":"a4"},{"name":"font_size","in":"query","required":false,"description":"Body font size 8-24","schema":{"type":"integer"},"example":"12"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"pdf":"data:application/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RleCBbIDAgMTAgXQo+PgpzdHJlYW0KeJwVxLERACAMA7G3gTvK7L8LEzFEwCoEdJsNSclppJmWKBD35wMPb+wEBwplbmRzdHJlYW0KZW5kb2JqCgpzdGFydHhyZWYKNzAxCiUlRU9G","page":"a4","bytes":909,"pages":1},"meta":{"timestamp":"2026-05-30T00:04:54.512Z","request_id":"3a49d481-9800-405b-b7de-e765620f8c1c"},"status":"ok","message":"PDF generated successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":4000,"rps_limit":2,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":600,"monthly_call_quota":90000,"rps_limit":12,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2200,"monthly_call_quota":500000,"rps_limit":40,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":5900,"monthly_call_quota":2000000,"rps_limit":120,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/pdf-api"}