---
title: "Use the tools from code or an AI agent"
description: "Call the tools from your own code with the REST API, connect an AI assistant over MCP, embed a tool on your site, or chat with the site's AI agent."
canonical: "https://www.razi.pro/help/developers"
updated: "2026-09-15"
tags: ["razi.pro api", "free tools api", "mcp server", "api key", "embed tool iframe", "claude desktop mcp tools", "api rate limit", "ai agent chat"]
source: "razi.pro"
---

# Use the tools from code or an AI agent

Call the tools from your own code with the REST API, connect an AI assistant over MCP, embed a tool on your site, or chat with the site's AI agent.

**Developer docs:** https://www.razi.pro/developer

## What is available

Most of the site's tools can be used without the website:

- **REST API**: call a tool over HTTP from your own code.
- **MCP server**: connect Claude Desktop, Cursor or any other MCP-compatible assistant, so it can use the tools for you.
- **Embeddable widgets**: put some tools on your own web page.
- **AI agent**: chat with the site's assistant at [/chat](https://www.razi.pro/chat).

Full reference, examples and setup snippets are on the [developer page](https://www.razi.pro/developer). This article only covers the basics.

## Do you need an API key?

No. Every API endpoint and the hosted MCP server work without a key.

A key does two things:

- It raises your rate limits.
- It links your calls to your account, so you can see your usage.

| | Without a key | With a key |
| --- | --- | --- |
| Can call the API and MCP | Yes | Yes |
| Rate limits | Lower, shared per network address | Higher, set per key |
| Usage shown in your account | No | Yes |

A new key allows 60 requests a minute. Some keys also have a daily request quota or a monthly AI token quota. The daily quota resets at 00:00 UTC, and the token quota resets on the 1st of the month (UTC). If you hit a limit, wait for it to reset.

## Getting an API key

1. Go to the [developer page](https://www.razi.pro/developer) and sign in with Google.
2. On the **API Keys** tab, give the key a name if you like.
3. Choose when it expires: never, or in 7 days, 30 days, 90 days or 1 year.
4. Click **Create Key**.
5. Copy the key straight away. It is only shown once.

You can have up to 5 active keys. Each key shows when it was created, when it was last used, its requests per minute, and how much of its quotas it has used. Click **Revoke** to turn a key off for good. This cannot be undone.

## Connecting an AI assistant over MCP

On the developer page, open the **MCP Server** tab. It gives you a short config block to paste into your assistant's settings. The hosted server needs no key and nothing installed. There is also an npm package you can run locally, and you can give it your key to get the higher limits.

## Embedding a tool on your site

A small set of tools can be embedded: the QR Code Generator, Base64 Encoder/Decoder, URL Encoder/Decoder, JSON Formatter, JWT Decoder, Image Compressor & Converter, Diff Checker, Percentage Calculator, OCR and Fake Data Generator.

On those tools' pages, click **Embed** near the top. A box called **Embed Widget** opens with two versions of the code:

- **Basic**: a fixed-height frame.
- **Auto-resize**: the frame grows to fit the tool.

Pick one, click **Copy embed code**, and paste it into your own web page.

## The AI agent

[/chat](https://www.razi.pro/chat) opens the site's AI assistant full screen. You do not need to sign in. You can send up to 10 messages a minute.

## Frequently asked questions

### Is the API free?

Yes. Every endpoint works without a key. A free API key raises your rate limits and shows your usage in your account.

### How do I get an API key?

Sign in with Google on the developer page, open the API Keys tab and click Create Key. Copy the key straight away, because it is only shown once.

### I lost my API key. Can I see it again?

No. A key is only shown when you create it. Revoke the old one and create a new one.

### How many API keys can I have?

Up to 5 active keys. Revoke one to make room for another.

### Which tools can I embed?

Ten tools, including the QR Code Generator, JSON Formatter, Diff Checker and OCR. If a tool can be embedded, its page has an Embed button that gives you the code to copy.
