HomeDevelopersTool APIs

Code Helper API

Generate clean code from a plain-English request.

The Code Helper API lets you generate clean code from a plain-English request. programmatically — a single call, structured output, no prompt engineering. It's part of the Larz Tools API and runs on the same Larz API key you use everywhere else.

Endpoint

POST https://api.larzos.com/v1/tools/code

Example request

curl https://api.larzos.com/v1/tools/code \
  -H "Larz-Api-Key: larz_sk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"input":"a Python function to validate an email address"}'

Example response

{
  "id": "larz_run_…",
  "object": "tool_result",
  "tool": "code",
  "output": "…generated result…",
  "usage": { "tokens": 180 }
}

What you can build

Pricing

Free on the Free tier (200,000 tokens/month, 60 requests/min). Every call returns your remaining quota in the X-Larz-Tokens-Remaining header.

Get an API keyTry Code Helper free →