Free REST API with AI text generation, translation, code explanation, SQL from English, and more. Runs on Cloudflare Workers. Zero cost.
I got tired of needing API keys and paid plans just to prototype with AI. So I built DevToolBox API — a completely free REST API with 26 endpoints, including 8 AI-powered ones. No authentication, no signup, no rate limit gotchas.
API: devtoolbox-api.devtoolbox-api.workers.dev
Playground: devtoolboxes.uk/ai-playground
What it does
AI Endpoints (free, no auth)
# Generate text
curl -X POST https://devtoolbox-api.devtoolbox-api.workers.dev/ai/generate \
-H "Content-Type: application/json" \
-d '{"prompt": "Write a Python function to check if a number is prime"}'
# Translate to any language
curl -X POST .../ai/translate \
-d '{"text": "Hello, how are you?", "target_lang": "ja"}'
# → {"translated": "こんにちは、お元気ですか?"}
# Explain code
curl -X POST .../ai/explain-code \
-d '{"code": "const result = arr.filter(x => x > 5).map(x => x * 2).reduce((a,b) => a+b, 0);"}'
# Generate SQL from English
curl -X POST .../ai/sql \
-d '{"description": "Get top 10 users by order count with total spending"}'
# Generate regex from description
curl -X POST .../ai/regex \
-d '{"description": "match email addresses ending in .com or .org"}'
# Fix buggy code
curl -X POST .../ai/fix-code \
-d '{"code": "function add(a, b) { return a - b; }", "error": "returns wrong result"}'
# Summarize text
curl -X POST .../ai/summarize \
-d '{"text": "Your long text here..."}'
# Generate JSON Schema from example
curl -X POST .../ai/json-schema \
-d '{"json": {"name": "John", "age": 30, "emails": ["john@example.com"]}}'
Utility Endpoints (also free, also no auth)
# URL shortener
curl -X POST .../shorten -d '{"url": "https://example.com"}'
# Generate UUID
curl https://devtoolbox-api.devtoolbox-api.workers.dev/uuid
# Hash text
curl ".../hash?text=hello&algo=sha256"
# Get your IP info
curl .../ip
# Placeholder images (SVG)
curl .../placeholder/400/200?text=Hello
# Random fake user
curl .../random/user
# And more: /timestamp, /password, /lorem, /encode/base64, /decode/base64, /urlencode, /urldecode, /random/string, /random/number, /random/color, /qr
How I built it
The entire thing runs on Cloudflare Workers (free tier):
- Workers AI powers the AI endpoints (Llama 3.2 for text gen, m2m100 for translation, BART for summarization)
- Workers KV stores shortened URLs
- Edge network means fast responses globally
- Total cost: $0/month
The AI endpoints use Cloudflare's free 10,000 neurons/day allocation, which handles ~500-1000 AI requests daily.
Web Tools Too
I also built devtoolboxes.uk with 15 browser-based developer tools:
- JSON Formatter & Validator
- Regex Tester
- JWT Decoder
- Base64 Encoder/Decoder
- Unix Timestamp Converter
- Diff Checker
- Case Converter (camelCase, snake_case, kebab-case)
- Color Converter (HEX, RGB, HSL)
- And more...
All client-side, no data leaves your browser.
Try the AI Playground
If you want to test the AI features without curl, there's an interactive playground at devtoolboxes.uk/ai-playground — generate text, translate, explain code, summarize, and create regex patterns right in your browser.
Links
- API Docs: devtoolbox-api.devtoolbox-api.workers.dev
- Web Tools: devtoolboxes.uk
- AI Playground: devtoolboxes.uk/ai-playground
Everything is free. No API keys. No signup. No catch.
If you find it useful, I'd appreciate a ⭐ or share. And if you have ideas for new endpoints, drop them in the comments!
Top comments (0)