How to connect Mathpix to ChatGPT in 2 mins: No API key needed

You can turn an equation photo into LaTeX, turn a table screenshot into a spreadsheet table and type up handwritten math notes from ChatGPT. Composio runs each call on its own Mathpix account, so you don't need a Mathpix API key, and your first $2 is free.

MathpixInstant · No API key

ChatGPT runs Mathpix through Composio, and the cost comes out of your free $2.

  • LaTeX from an equation image$0.002
  • A table from a screenshot$0.002
  • Math from handwriting strokes$0.002

$2 ≈ 1000 images

Composio Instant

What you can do with your free $2

What your free $2 gets you with Mathpix
When you ask ChatGPT forChatGPT uses this toolCostWhat $2 gets you
LaTeX from an equation imageOCR Image$0.002 per imageAbout 1,000 images
A table from a screenshotOCR Image$0.002 per imageAbout 1,000 images
Math from handwriting strokesRecognize Strokes$0.002 per requestAbout 1,000 requests

You pay Mathpix's price for each call with 0% markup, plus the regular Composio tool call charge. There's no Mathpix subscription, and you only pay for what you use.

2 of 28 Mathpix tools work without a key. For Convert Mathpix Markdown, Create App Token, Delete Conversion, Delete Document, Delete File, Finalize File Job and 20 more, connect your own Mathpix key. Read how Instant works.

How it works

How to connect Mathpix to ChatGPT

Composio adds Mathpix to ChatGPT as an Instant toolkit. You connect Composio to ChatGPT once, and then ChatGPT can use Mathpix right away. There are two ways to do this:

  • Bring your own key

    You bring your own Mathpix API key, set it up, and use it.

  • Use the Composio wallet

    Instant

    Composio runs each call on its own Mathpix account, so you don't have to set anything up at Mathpix, and your first $2 is free.

You do the setup one time and it takes about a minute. If you build Mathpix into your own product, turn on Instant toolkits in your project settings so your agent can call Mathpix for each of your users without a Mathpix API key, and read Instant tools in the Composio docs for the setup steps and code examples.

Get started

Start to use Mathpix in ChatGPT in 3 steps

  1. Turn on Instant

    Open your Composio wallet and turn on Instant. Your free $2 shows up there.

  2. Add Composio to ChatGPT

    Follow the setup below. You only do this once.

  3. Ask ChatGPT for something

    Try a Mathpix prompt. The cost comes out of your $2.

Setup

Prerequisites

Note: Composio connects through OAuth. You will be asked to sign in and approve specific permissions. Review the permission screen carefully if you are using a work account.

Step-by-step: Connect Mathpix to ChatGPT

1. Install the Composio plugin

Click the button. ChatGPT opens the Composio plugin page. Click Install plugin.

Install in ChatGPT

Composio plugin page in ChatGPT with the Install plugin button

You can also find it inside ChatGPT: go to Settings, open Plugins, search the marketplace for Composio, and click Install plugin.

2. Authenticate

After you install, ChatGPT asks you to authenticate with Composio. Log in and click Allow access to authorize ChatGPT to use your Composio account.

Composio login and Allow access screen for ChatGPT

3. Start using Composio

That is it. Composio tools are now available in ChatGPT. Type @Composio followed by your request, for example @Composio find unread Mathpix messages and summarize them, and it will run the actions you authorize. On first use it asks you to authorize Mathpix.

Option 2: Add Composio as an MCP server

If you cannot use the plugin marketplace, add Composio as a custom MCP server instead.

1. Open the MCP settings

In ChatGPT, go to Settings and open the Plugins section. Inside the Plugins page, click the MCP tab.

ChatGPT settings showing the Plugins page with the MCP tab selected

2. Add the server

Click Add server. In the Name field enter Composio, for Type select Streamable HTTP, and in the URL field paste the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
ChatGPT Add server dialog with the name Composio, type Streamable HTTP, and the Composio MCP URL

Then click Save. The Composio server now appears in your MCP plugins list.

ChatGPT Plugins page showing the Composio MCP server added to the list

3. Authenticate

Click Authenticate on the Composio entry, log in via Composio, and click Allow access. Composio tools are then available in ChatGPT the same way as with the plugin.

Try it

Ask ChatGPT for something with Mathpix

Start a new chat and try this prompt:

Convert the equation in this image to LaTeX I can paste into my paper: [image URL].

ChatGPT runs it on Instant and shows you the result. It doesn't ask you for a Mathpix key, and the cost comes out of your $2. You can see each call in your wallet.

Optional: connect your own Mathpix key

If you want Convert Mathpix Markdown, Create App Token, Delete Conversion, Delete Document, Delete File, Finalize File Job and 20 more, you need your own key. Ask ChatGPT to connect your Mathpix account, and it gives you a Composio link:

Connect my Mathpix account using Composio.

Open the link, paste your Mathpix API key and click Connect Account. You can get a key from Mathpix Console. After that, Composio uses your key first and doesn't charge Instant for those calls.

Starter prompts

Use your first $2: copy a prompt into ChatGPT

Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.

  • Turn an equation photo into LaTeX

    Less than $0.01

    Reads a photo or screenshot of an equation and gives you LaTeX you can paste into a paper or doc.

    Convert the equation in this image to LaTeX I can paste into my paper: [image URL].

  • Turn a table screenshot into a spreadsheet table

    Less than $0.01

    Reads a table from an image and gives it back as rows and columns you can paste into a spreadsheet.

    Read the table in this screenshot and give it back as CSV I can paste into a spreadsheet, keeping any math in the cells as LaTeX: [image URL].

  • Type up handwritten math notes

    About $0.01

    Turns photos of handwritten notes into editable text, with the math in LaTeX.

    Type up my handwritten lecture notes from these photos into Markdown, with every equation in LaTeX: [paste up to 5 image URLs].

  • Make an editable copy of a worksheet

    About $0.02

    Pulls the questions from photos of a printed worksheet or textbook page into editable text.

    Pull every question from these worksheet pages into an editable numbered list, with the math in LaTeX: [paste up to 10 image URLs].

  • Read handwriting from a drawing app

    Less than $0.01

    Turns pen strokes captured in your app into LaTeX or text, with no image needed.

    Here are the x and y stroke coordinates captured from my drawing app: [paste x_coordinates and y_coordinates]. Recognize the handwritten math and give me the LaTeX.

What it can do

What ChatGPT can do with Mathpix

Works without a key

  • LaTeX from an equation image
  • A table from a screenshot
  • Math from handwriting strokes

Needs your own Mathpix key

  • Convert Mathpix Markdown
  • Create App Token
  • Delete Conversion
  • Delete Document
  • Delete File
  • Finalize File Job
  • Get App Token
  • Get Conversion Result
  • and 18 more
Tools and prices

Supported tools (28)

Mathpix tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
OCR ImageExtract text, math, tables, diagrams, or chemistry from one image URL or base64 data URI and return the requested OCR representations.Yes$0.002 per image OCR request
Recognize StrokesRecognize handwritten math or text from aligned x/y digital-ink stroke arrays and return OCR representations.Yes$0.002 per non-session digital-ink request
Convert Mathpix MarkdownSubmit Mathpix Markdown, wait for one requested format to finish, then return the conversion ID and downloadable output file.Needs your own keyBilled to your own Mathpix key
Create App TokenMint a short-lived client OCR credential, optionally with a live ink strokes session.Needs your own keyBilled to your own Mathpix key
Delete ConversionPermanently delete one Mathpix Markdown conversion's hosted output data after explicit confirmation.Needs your own keyBilled to your own Mathpix key
Delete DocumentPermanently delete one Mathpix document source and its hosted outputs after explicit confirmation.Needs your own keyBilled to your own Mathpix key
Delete FilePermanently delete one terminal Files API file and its Mathpix-hosted results.Needs your own keyBilled to your own Mathpix key
Finalize File JobPermanently close one Files API job to new file additions and arm its completion webhook.Needs your own keyBilled to your own Mathpix key
Get App TokenGet expiry and ownership metadata for a specific short-lived Mathpix app token.Needs your own keyBilled to your own Mathpix key
Get Conversion ResultWait for an existing Mathpix Markdown conversion and requested format to finish, then return its status and downloadable output file without creating a conversion.Needs your own keyBilled to your own Mathpix key
Get Document ResultWait for an existing Mathpix document job and requested format to finish, then return its status and downloadable output file without creating a new job.Needs your own keyBilled to your own Mathpix key
Get File JobGet aggregate status, file and page counters, and timestamps for one Files API job.Needs your own keyBilled to your own Mathpix key
Get File ResultWait for an existing Files API file and selected format to finish, then return its status and downloadable output without creating a file.Needs your own keyBilled to your own Mathpix key
Get Job File by Custom IDGet the complete Files API processing status for one job member using the exact caller-defined custom ID assigned at submission.Needs your own keyBilled to your own Mathpix key
Get OCR UsageReturn one page of aggregated Mathpix OCR usage for a date range, optionally grouped by usage type, request configuration, or application.Needs your own keyBilled to your own Mathpix key
Get Storage Onboarding IdentitiesGet the Mathpix AWS, Azure, and GCP identities needed to grant cloud-storage access.Needs your own keyBilled to your own Mathpix key
List ConversionsList one page of retained Mathpix Markdown conversion records, optionally filtered by date, and return IDs usable by conversion result or deletion tools.Needs your own keyBilled to your own Mathpix key
List Data SourcesList cloud-storage data sources registered with Mathpix, returning only allowlisted non-secret metadata.Needs your own keyBilled to your own Mathpix key
List DocumentsList retained document OCR jobs for the connected account, optionally filtered by date or document ID, and return one page.Needs your own keyBilled to your own Mathpix key
List File Job FilesList one cursor-paginated page of files in a Mathpix Files API job, optionally filtered by member status.Needs your own keyBilled to your own Mathpix key
Show all 28 tools
More Mathpix tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
List File JobsList one cursor-paginated page of Files API jobs newest first, optionally bounded by inclusive UTC dates.Needs your own keyBilled to your own Mathpix key
OCR DocumentSubmit a PDF, office document, or ebook URL, wait for OCR and the requested conversion to finish, then return its Mathpix job ID and downloadable output file.Needs your own keyBilled to your own Mathpix key
Process File URISubmit one public or registered-cloud document URI to the paid Files API, wait for OCR and one requested output, and return the retained file ID and downloadable result.Needs your own keyBilled to your own Mathpix key
Process Image BatchSubmit a paid asynchronous batch of 1-100 named public image URLs, wait until every key has a semantically successful OCR result, and return the retained batch ID and results.Needs your own keyBilled to your own Mathpix key
Revoke App TokenIrreversibly revoke one short-lived app token immediately.Needs your own keyBilled to your own Mathpix key
Search OCR ResultsSearch retained image and stroke OCR history by date, identifiers, content, tags, or detected content and return one page of results.Needs your own keyBilled to your own Mathpix key
Submit File JobSubmit up to 200,000 remote documents in a paid asynchronous Mathpix Files job, subject to a 10 MB encoded request limit.Needs your own keyBilled to your own Mathpix key
Upload and Process FileUpload one local document to the paid Mathpix Files API, wait until OCR and one requested output are ready, then return the retained Mathpix file ID and a downloadable result.Needs your own keyBilled to your own Mathpix key
Pricing

How you pay for Mathpix

  • Your first $2 is freeIt's added to your Composio wallet when you turn on Instant.
  • You pay for each callYou pay Mathpix's price with 0% markup, plus the regular Composio tool call charge.
  • Your own key comes firstIf you connect your own Mathpix key, Composio uses it and doesn't charge Instant for those calls.
  • You control the costYou can ask your agent to check with you before each paid call, and you can turn Instant off at any time.
  • You can see each callYour wallet shows each call and what it cost.
  • When your balance runs outYou can add funds to your wallet on a Pro plan or connect your own key.
Help

Troubleshooting

  1. 1. ChatGPT asks me for a Mathpix API key

    You may have asked for something that needs your own key, like Convert Mathpix Markdown, Create App Token, Delete Conversion, Delete Document, Delete File, Finalize File Job and 20 more. Those tools don't run on Instant. For everything else, check that Instant is turned on in your Composio wallet, then ask again.

  2. 2. I can't see my free $2

    Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.

  3. 3. A Mathpix call failed with a balance error

    Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Mathpix key, then try again.

FAQ

Frequently asked questions

Start with Mathpix.It takes 30 seconds.

New accounts get a one-time $2 starter credit for Instant calls.Run Mathpix from your agent with no Mathpix key.

Get $2 starter credit