Everything you need to integrate Dark Factory into your workflow
Get up and running in 5 minutes
Complete API documentation
How the generation pipeline works
Deploy generated code to production
Sign up for a free account and generate an API key from your dashboard.
Create free accountcurl -X POST https://darkfactory.ai/api/dark-factory/generate \
-H "Authorization: Bearer df_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{"prompt": "Create a REST API for managing blog posts"}'{
"taskId": "df_task_abc123",
"status": "completed",
"artifacts": [
{ "type": "api", "path": "app/api/posts/route.ts" },
{ "type": "model", "path": "prisma/schema.prisma" },
{ "type": "types", "path": "lib/types/post.ts" },
{ "type": "test", "path": "__tests__/posts.test.ts" }
],
"generationTime": 12.4
}/api/dark-factory/generateSubmit a code generation request
{
"prompt": "string (required)",
"projectId": "string (optional)",
"options": {
"targetFramework": "nextjs | react | node",
"includeTests": true,
"autoValidate": true
}
}/api/dark-factory/tasks/:taskIdGet task status and generated artifacts
/api/dark-factory/deploy/:taskIdDeploy generated artifacts to target environment
Natural language → structured specification
Spec → database models and types
API routes, components, tests
Type checking, linting, tests
Preview or production deploy
Dark Factory can deploy generated code directly to preview or production environments. Each deployment creates an isolated preview URL for testing before promotion.
curl -X POST https://darkfactory.ai/api/dark-factory/deploy/df_task_abc123 \
-H "Authorization: Bearer df_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{"environment": "preview"}'Can't find what you're looking for? Reach out to our team.