Simple REST API. Generate code, fix bugs, run agents — programmatically from any language.
Sign up & grab your key from Profile → API
POST to /api/v1/generate with your prompt
Get JSON response with the generated code
Integrate into your app, CI/CD, or IDE
All API requests require an API key. Include it as a Bearer token in the Authorization header.
/api/v1/generate
Generate code from a prompt
/api/v1/fix
Fix a bug in provided code
/api/v1/refactor
Refactor existing code
/api/v1/explain
Explain what code does
/api/v1/tests
Generate test cases for code
/api/v1/agent/plan
Run the Plan Feature agent
/api/v1/agent/debug
Run the Debug agent
/api/v1/agent/security
Run the Security Review agent
/api/v1/credits
Get remaining credits
/api/v1/usage
Get usage statistics
{
"success": true,
"model": "gpt-4o",
"code": "function validateEmail($email) {\n return filter_var($email, FILTER_VALIDATE_EMAIL) !== false;\n}",
"language": "php",
"credits_used": 1,
"credits_remaining": 4999,
"request_id": "req_a1b2c3d4"
}
All API traffic is encrypted in transit (TLS 1.3). API keys are stored as bcrypt hashes. Rate limiting protects against abuse. SOC 2 compliance roadmap in progress.
Sign up free, find your key in Profile → API. Free plan includes 100 API requests/month.
Get API access