Pdf co API

Give your agents access to Pdf co API. Bring your own Pdf co key, or skip the signup and pay per call from your Composio balance with Composio Instant.

Pdf co logoPdf co
Instant

Pdf co is a secure API platform for PDF extraction, generation, editing, and more. It helps you automate document workflows at scale with ease and reliability.

49 Tools
COMPOSIO INSTANT

What is Composio Instant?

Composio Instant lets your agent use paid APIs like Pdf co without a separate account or API key for each one. New accounts start with $2 of free credit.

No Pdf co account or key

Your agent calls Pdf co through Composio, so there is nothing to sign up for, store, or rotate.

Pay per call, at cost

Est. $0.006 per 10 API credits; credits vary by operation and pages., paid from your Composio balance with zero markup.

Works in any agent

Claude, ChatGPT, Cursor, and other MCP clients, or your own code with the Composio SDK.

Works with your apps

Use Pdf co with Gmail, Slack, Google Sheets, and 1,700+ other apps you connect.

AI ASSISTANTS

Connect the Pdf co API to your AI assistant

Use Pdf co from the AI assistant you already work in. Connect Composio once, then paste the prompt.

  1. 1

    Open the Connectors menu

    Use the button to open Claude's Add connector dialog with Composio filled in. Or click + in the message box, then Connectors, Add connector and Add custom connector.
    Add Composio to Claude
  2. 2

    Add the Composio MCP server

    Name it Composio, paste the MCP server URL and click Add.
    https://connect.composio.dev/mcp
  3. 3

    Authorize in your browser

    A browser window opens. Sign in to Composio to approve the connection.
  4. 4

    Paste the prompt

    Start a new chat and paste the prompt. Claude runs the call on Composio Instant.
  1. 1

    Install the Composio plugin

    Open Composio's plugin page in ChatGPT and click Install. Sign in to ChatGPT first if it asks.
    Install in ChatGPT
  2. 2

    Authorize in your browser

    Connect the plugin, then sign in to Composio to approve the connection.
  3. 3

    Turn on Composio in your chat

    In a new chat, click +, then More, and select Composio.
  4. 4

    Paste the prompt

    Paste the prompt into that chat. ChatGPT runs the call on Composio Instant.
  1. 1

    Install the Composio plugin

    Open Composio in the Cursor marketplace, click Install Composio Plugin for Cursor and approve the connection in your browser.
    Install in Cursor
  2. 2

    Paste the prompt

    Open the Agent chat and paste the prompt. Cursor runs the call on Composio Instant.
  1. 1

    Add the Composio plugin

    Open Composio's listing on x.ai and click Add to Grok Bot. When Grok Bot opens the plugin, click Add.
    Add to Grok Bot
  2. 2

    Authenticate

    Go to Installed, open Composio and click Authenticate. Sign in to Composio and click Authorize.
  3. 3

    Paste the prompt

    Paste the prompt into your bot's chat. Grok Bot runs the call on Composio Instant.
  1. 1

    Paste the setup prompt

    Copy this into your Hermes chat. Hermes adds the Composio MCP server for you.
    Set up Composio from composio.dev/hermes
  2. 2

    Authorize in your browser

    A browser window opens. Sign in to Composio to approve the connection.
  3. 3

    Paste the prompt

    Start a new chat and paste the prompt. Hermes runs the call on Composio Instant.
ClaudeNew chat

Paste this prompt

Use PDF.co through Composio Instant to extract text from page 1 of https://arxiv.org/pdf/1706.03762. Return the extracted text.

What success looks like

PDF_CO_PDF_TO_TEXT

Your assistant runs PDF.co and replies with the text extracted from page 1 of the PDF.

Runs on Composio Instant
SDK

Use the Pdf co API in your code

Call Pdf co from your own agent with the Composio SDK. Four steps and one tool call.

  1. 1

    Set up Composio

    Turn on Instant Toolkits in your project settings and check your prepaid balance in Billing. Then set your API key.
    export COMPOSIO_API_KEY="your_composio_api_key"
  2. 2

    Install the SDK

    The Python SDK needs Python 3.11 through 3.15.
    pip install composio
  3. 3

    Run the call

    Create a session that keeps Instant to this toolkit and reports the charge, then run the tool on the Instant account.
    PDF_CO_PDF_TO_TEXT
  4. 4

    Read the response

    When the call runs on Instant, the response includes its charge: the amount as an exact USD decimal string, the currency and charged_by.
agent.py
from composio import Composio

composio = Composio()

session = composio.sessions.create(
    user_id="user_123",
    toolkits=["pdf_co"],
    instant={
        "toolkits": {"enable": ["pdf_co"]},
        "return_instant_charge": True,
    },
)

result = session.execute(
    "PDF_CO_PDF_TO_TEXT",
    arguments={
        "url": "https://arxiv.org/pdf/1706.03762",
        "pages": "1",
        "inline": True,
    },
    account="instant_account",
)
print(result)
print("Instant charge:", result.instant_charge)
TOOLS

Available Pdf co API tools

35 Pdf co tools run on Instant, priced per call with no Pdf co key. Tools marked Your key need your own Pdf co account.

ActionTool slugWhat it doesAvailability
Extract PDF TextPDF_CO_PDF_TO_TEXTExtract plain text from a PDF or scanned image.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Find PDF TablesPDF_CO_PDF_FIND_TABLEDetect tables in a PDF.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert PDF to XLSXPDF_CO_PDF_TO_XLSXConvert a PDF or scanned image to an Excel file.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Merge PDFsPDF_CO_PDF_MERGECombine multiple PDF files into one document.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Save Webpage as PDFPDF_CO_PDF_FROM_URLConvert a webpage URL to a PDF.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Add Content to PDFPDF_CO_PDF_ADDAdd content such as text, images, barcodes, or links to an existing PDF.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Add PDF Password and SecurityPDF_CO_PDF_SECURITY_ADDCreate a secured PDF copy with passwords and permission restrictions.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Auto-Rotate PDF PagesPDF_CO_PDF_AUTO_ROTATEAutomatically detect and correct PDF page rotation using OCR.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Change PDF Text SearchablePDF_CO_PDF_CHANGE_TEXT_SEARCHABLEMake scanned or image-only PDF text searchable using OCR.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Compress PDFPDF_CO_PDF_COMPRESSCompress a PDF using a preset or detailed image and font controls.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert CSV or Excel to PDFPDF_CO_PDF_FROM_CSVConvert CSV or spreadsheet pages to PDF with page-range and autosize controls.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert Excel to CSVPDF_CO_CONVERT_EXCEL_TO_CSVConvert an Excel file (XLS/XLSX) from a URL to CSV.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert Excel to HTMLPDF_CO_CONVERT_EXCEL_TO_HTMLTool to convert an Excel file to HTML.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert Excel to JSONPDF_CO_CONVERT_EXCEL_TO_JSONTool to convert an online Excel or CSV file to JSON format.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert Excel to PDFPDF_CO_XLS_TO_PDFConvert a selected Excel worksheet or CSV to PDF, optionally inline.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert Excel to TextPDF_CO_CONVERT_EXCEL_TO_TEXTTool to convert Excel files to plain text.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert Excel to XMLPDF_CO_CONVERT_EXCEL_TO_XMLConvert an XLS, XLSX, or CSV file from a URL to XML.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert Images to PDFPDF_CO_PDF_FROM_IMAGEConvert one or more JPG, PNG, or TIFF images into a PDF.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert PDF to CSVPDF_CO_PDF_TO_CSVTool to convert PDF or scanned images to CSV format.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert PDF to HTMLPDF_CO_PDF_TO_HTMLTool to convert PDF documents to HTML.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert PDF to Text (Simple)PDF_CO_PDF_CONVERT_TO_TEXT_SIMPLEExtract plain text from a text-based PDF without OCR or layout analysis.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert PDF to TIFFPDF_CO_PDF_TO_TIFFRender PDF pages as TIFF with crop, OCR, and inline controls.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert PDF to WEBPPDF_CO_PDF_TO_WEBPConvert selected pages of a PDF into WEBP images.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert PDF to XLSPDF_CO_PDF_TO_XLSTool to convert PDF or scanned images to XLS format.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert PDF to XMLPDF_CO_PDF_TO_XMLTool to convert PDF or scanned images to XML format.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Convert Text to PDFPDF_CO_PDF_FROM_DOCUMENT_TXTTool to convert a plain text (.txt) file to PDF.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Find Text in PDFPDF_CO_PDF_FINDTool to find text in a PDF document.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
PDF Forms Info ReaderPDF_CO_PDF_FORMS_INFO_READERTool to extract form field information from a PDF.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
PDF Info ReaderPDF_CO_PDF_INFO_READERTool to retrieve detailed information and metadata of a PDF.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Remove PDF SecurityPDF_CO_PDF_SECURITY_REMOVERemove password protection and usage restrictions from a PDF copy.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Replace PDF Text with ImagePDF_CO_PDF_REPLACE_TEXT_WITH_IMAGEReplace matching text in a PDF with an image and return the edited PDF.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Rotate PDF PagesPDF_CO_PDF_ROTATETool to rotate selected pages in a PDF.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Search and Delete Text in PDFPDF_CO_PDF_SEARCH_AND_DELETE_TEXTSearch for and delete text in a PDF by keyword or regex.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Search and Replace Text in PDFPDF_CO_PDF_SEARCH_AND_REPLACE_TEXTTool to search for and replace text in a PDF document.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Split PDFPDF_CO_PDF_SPLITTool to split a PDF into multiple files by page ranges.
InstantEst. $0.006 per 10 API credits; credits vary by operation and pages.
Parse DocumentPDF_CO_DOCUMENT_PARSERExtract structured data from a PDF with a custom template.Your key
Generate BarcodePDF_CO_PDFCO_POST_BARCODE_GENERATECreate barcode images in formats such as QR Code, Code 128, and Code 39.Your key

Instant prices are Pdf co's list prices with 0% markup, paid from your Composio balance and updated every hour. Instant calls also count toward your plan's tool calls. See all plans on the pricing page.

USE CASES

Pdf co API use cases and example prompts

Copy a prompt into your agent. Each one uses Pdf co with apps you connect through Composio.

  • Track vendor proposal summaries

    Use PDF.co to extract text from page 1 of each proposal PDF in my Vendor Proposals folder in Google Drive. Add each file name and a one-sentence summary to my Vendor Review sheet in Google Sheets.

    Apps used: Pdf co, Google Drive, Google Sheets

  • Convert expense reports to Excel

    Use PDF.co to convert the attached monthly expense report in Gmail to an Excel file. Save the XLSX in my Finance Reports folder in Google Drive, then reply to the email with the file link.

    Apps used: Pdf co, Gmail, Google Drive

  • Share launch references with the team

    Use PDF.co to save the product documentation URL linked in my Launch References page in Notion as a PDF. Post the PDF link in Slack's #product-launch channel.

    Apps used: Pdf co, Notion, Slack

  • Assemble a customer onboarding packet

    Use PDF.co to merge the implementation guide, security overview, and support policy PDFs in my Acme Customer Pack folder in Google Drive into one onboarding packet. Post the finished PDF link in Slack's #customer-success channel.

    Apps used: Pdf co, Google Drive, Slack

TROUBLESHOOTING

Pdf co API troubleshooting

Still stuck? The Instant tools docs cover limits, charges and session settings.

Start with Pdf co.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Pdf co tool your agent needs.Free to start.

Start building