API Reference (Summary)
This section is for developers integrating AiDone with external systems.
Base URL
All API endpoints are under:
https://your-domain.com/{locale}/api
Example:
https://your-domain.com/en/api
Authentication (JWT)
- Call
POST /loginwith email and password. - Use the returned token in the
Authorizationheader:Bearer <token>.
Common endpoints
Auth:
POST /loginPOST /signupPOST /logoutGET /profile
AI jobs:
GET /ai/jobsGET /ai/jobs/{uuid}
Image generation:
POST /ai/image/generatePOST /ai/flux/generatePOST /ai/ecom/generatePOST /ai/headshot/generatePOST /ai/banner/generate
AI Clone:
GET /ai/clone/modelsPOST /ai/clone/modelsPOST /ai/clone/generate
Text to Voice:
GET /ai/tts/voicesPOST /ai/tts/generateGET /ai/tts/status/{id}
Speech to Text:
GET /ai/stt/languagesPOST /ai/stt/transcribeGET /ai/stt/status/{id}GET /ai/stt/download/{id}
Example request (login)
POST /en/api/login
Content-Type: application/json
{
"email": "user@example.com",
"password": "secret"
}
Example request (image generation)
POST /en/api/ai/image/generate
Authorization: Bearer <token>
Content-Type: application/json
{
"prompt": "A modern workspace with neon lights",
"model_slug": "flux-1-pro",
"aspect_ratio": "16:9"
}
Notes
- Most AI endpoints are rate limited.
- Jobs are asynchronous; use the job status endpoint to fetch results.
