API Documentation
Enhance your applications with powerful AI API
Getting Started
Integrate powerful AI capabilities into your applications with CraftingAI API. Our RESTful API provides CV generation and voice cloning services.
Base URL:
https://api.craftingai.com/v1
Authentication
All API requests require a Bearer token. You can get your API key from the dashboard.
Authorization: Bearer YOUR_API_KEY
Rate Limits
Your API usage is subject to the following limits:
- • Free plan: 100 requests/hour
 - • Pro plan: 1,000 requests/hour
 - • Enterprise plan: Unlimited
 
CV Generator API
POST /api/v1/cv/generate
Generate professional CVs using user information.
Request Body
{
  "personalInfo": {
    "name": "John Doe",
    "email": "john@example.com",
    "phone": "+1234567890"
  },
  "experience": [...],
  "education": [...],
  "skills": [...],
  "template": "modern"
}Response Example
{
  "success": true,
  "cvId": "cv_123456789",
  "downloadUrl": "https://api.craftingai.com/cv/download/cv_123456789",
  "previewUrl": "https://api.craftingai.com/cv/preview/cv_123456789"
}GET /api/v1/cv/{cvId}
Retrieve CV information and status.
Response Example
{
  "cvId": "cv_123456789",
  "status": "completed",
  "createdAt": "2024-01-15T10:30:00Z",
  "downloadUrl": "https://api.craftingai.com/cv/download/cv_123456789"
}Voice Cloning API
POST /api/v1/voice/clone
Create a new voice model from voice samples.
Request (multipart/form-data):
{
                            "voiceName": "My Voice Model",
                            "audioFiles": [file1.wav, file2.wav, file3.wav],
                            "language": "en",
                            "quality": "high"
                          }Response Example
{
  "success": true,
  "voiceId": "voice_987654321",
  "status": "processing",
  "estimatedTime": "15 minutes"
}POST /api/v1/voice/synthesize
Synthesize text using cloned voice.
Request Body:
{
  "voiceId": "voice_987654321",
  "text": "Hello, this is my cloned voice speaking!",
  "speed": 1.0,
  "pitch": 1.0
}Error Handling
400 - Bad Request
Invalid request format or missing required parameters.
401 - Unauthorized
Invalid or missing API key.
429 - Too Many Requests
Rate limit exceeded. Please wait and try again.
500 - Internal Server Error
A server-side error occurred.
SDK Libraries
Get started quickly using our ready-made SDKs for popular programming languages.
🟨
JavaScript
🐍
Python
☕
Java
💎
Ruby