Code translator
Translate a piece of code from one programming language to another (for example Python to TypeScript, JavaScript to Go, VBA to Python, jQuery to plain JavaScript, SQL between dialects). Keeps the behaviour, uses the idioms of the target language, and lists what could not be translated one to one: libraries without an equivalent, integer sizes, error handling, concurrency. Meant for snippets and single files up to about 10,000 characters, not whole projects. Costs 10 credits per call with an API key or a signed-in session, drawn from the same monthly balance as REST calls (1 credit) and renders (25). Without either, a small free demo allowance per day. Also available on the MCP server as translate_code.
Request
- Base URL: https://toolforte.com
- URL: https://toolforte.com/api/v1/ai/code-translate
- Auth: one of:
- HTTP bearer
- none
Request body
Response
The tool's answer plus metering
Changes
No recorded changes to this operation across all 1 revision of this API.