Everything you need to build production-ready applications with Stakly's AI-powered platform
// Initialize Stakly SDK
import { StaklyClient } from '@stakly/sdk';
const client = new StaklyClient({
apiKey: process.env.STAKLY_API_KEY
});
// Generate a React component
const result = await client.generate({
prompt: "Create a modern dashboard with charts",
framework: "react",
style: "tailwind"
});
console.log(result.files);
More examples →# Initialize Stakly SDK
from stakly import StaklyClient
client = StaklyClient(
api_key=os.environ['STAKLY_API_KEY']
)
# Generate a FastAPI backend
result = client.generate(
prompt="Create a REST API for user management",
framework="fastapi",
database="postgresql"
)
for file in result.files:
print(f"Created: {file.path}")
More examples →# Generate code via REST API
curl -X POST https://api.stakly.dev/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Create a landing page",
"framework": "nextjs",
"style": "modern"
}'
More examples →Our support team is here to help