API Tools
ArrayKit's API tools are a full toolkit for building, testing and debugging HTTP and AI requests right in your browser. The API Request Client sends GET, POST, PUT and DELETE calls and inspects responses like a lightweight Postman, and saves your last 25 requests locally. Dedicated testers for the OpenAI, Anthropic Claude, Google Gemini, Replicate and Hugging Face APIs let you paste a key, run a call and copy it as cURL, Python or JavaScript. cURL converters turn a curl command into fetch, Python requests, Go net/http, PHP or Node.js axios code, while URL Parser and the URL Builder & UTM Generator inspect and construct query strings. The Token Counter and LLM Cost Calculator size up prompts before you send them. Everything runs on your device, so your keys, tokens and requests never leave your browser.
- cURL to Fetch — Convert a curl command to a JavaScript fetch() call.
- URL Parser — Break a URL into its parts and list query parameters.
- API Request Client — Send HTTP requests, build headers and params, inspect responses — your last 25 requests are saved locally.
- URL Builder & UTM Generator — Construct and validate fully encoded production URLs with standard analytics query flags (UTM) or custom query arrays.
- OpenAI API Tester — Build, run and copy OpenAI Chat Completions API requests as cURL, Python and JavaScript.
- Anthropic Claude API Tester — Build, run and copy Anthropic Claude Messages API requests as cURL, Python and JavaScript.
- Google Gemini API Tester — Build, run and copy Google Gemini generateContent API requests as cURL, Python and JavaScript.
- Replicate API Tester — Build, run and copy Replicate prediction API requests as cURL, Python and JavaScript.
- Hugging Face API Tester — Build, run and copy Hugging Face Inference API requests as cURL, Python and JavaScript.
- cURL to Python — Convert a curl command to Python requests code.
- cURL to Go — Convert a curl command to Go net/http code.
- cURL to PHP — Convert a curl command to PHP cURL code.
- cURL to Node.js (axios) — Convert a curl command to Node.js axios code.
- Token Counter — Count tokens for GPT, Claude and Gemini live — exact OpenAI counts plus Claude/Gemini estimates.
- LLM API Cost Calculator — Estimate GPT, Claude and Gemini API costs from token counts, with custom price overrides.
- cURL to Rust — Convert a curl command to Rust reqwest code.
- HAR to cURL — Turn requests from a browser HAR file into runnable cURL commands, with secrets stripped.
- Postman to cURL — Turn a Postman collection export into runnable cURL commands, variables resolved.
Frequently asked questions
- What can I do with ArrayKit's API tools?
- You can send and inspect live HTTP requests with the API Request Client, test the OpenAI, Claude, Gemini, Replicate and Hugging Face APIs, convert a curl command into fetch, Python, Go, PHP or Node.js code, parse and build URLs, and count LLM tokens or estimate API cost — all from one place.
- Can I test AI model APIs like OpenAI, Claude and Gemini here?
- Yes. There are dedicated testers for the OpenAI Chat Completions, Anthropic Claude Messages, Google Gemini, Replicate and Hugging Face APIs. Paste your key, pick a model and prompt, run the call where the provider allows it, and copy the request as cURL, Python or JavaScript.
- How do the cURL converters work?
- Paste a curl command and the converter rewrites it as ready-to-run code: JavaScript fetch, Python requests, Go net/http, PHP cURL, or Node.js axios. It infers the method, maps headers and bodies, and lets you copy or download the result.
- Are these API tools safe to use with private keys and endpoints?
- Yes. Every tool builds requests and code in your browser. API keys and tokens are held in browser memory only and, when you run a live call, go straight from your browser to the target API — never to ArrayKit, and nothing is uploaded.
- Do I need to install anything like Postman or an SDK?
- No. The tools run in your browser, so you can send requests, convert curl commands and count tokens without installing a desktop app or provider SDK. Generated code is plain cURL, Python, Go, PHP or JavaScript you can drop into your own project.
- Can I estimate LLM token counts and API costs?
- Yes. The Token Counter shows exact OpenAI counts plus Claude and Gemini estimates as you type, and the LLM Cost Calculator turns input and output token counts into a USD estimate for GPT, Claude and Gemini models.