Back to Home

🔌 Vigthoria REST API

Complete API reference for integrating Vigthoria services into your applications. Access AI generation, payments, and platform features.

🔐 Authentication

All API requests require authentication. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Get your API key from your account settings at vigtherius.io/settings/api

🌐 Base URLs

https://api.vigthoria.io/v1 Production
https://sandbox.api.vigthoria.io/v1 Sandbox

💻 ViAgen6 - Vibe Coder

POST /viagen6/build Generate a complete application
ParameterTypeDescription
promptrequiredstringDescription of the application to build
frameworkstringFramework: react, vue, nextjs, nodejs, python
project_idstringContinue an existing project
previewbooleanEnable live preview (default: true)
Response
{ "id": "build_abc123", "status": "completed", "files": [...], "preview_url": "https://preview.vigthoria.io/xyz", "project_id": "proj_xyz789" }
POST /viagen6/chat ViAgen6 coding conversation
ParameterTypeDescription
messagerequiredstringThe message or coding request
contextobjectCode context for better responses
conversation_idstringContinue an existing conversation
GET /viagen6/projects List user's projects

🎵 Music AI

POST /music/generate Generate a music track
ParameterTypeDescription
promptrequiredstringDescription of the song to generate
genrestringGenre: pop, rock, jazz, electronic, etc.
durationintegerDuration in seconds (30-240)
vocalsobjectVocal settings: {enabled, gender, style}
lyricsstringCustom lyrics with [Verse]/[Chorus] tags
Response
{ "id": "music_abc123", "status": "processing", "estimated_time": 120, "queue_position": 3 }
GET /music/{id} Get music generation status and result
GET /music/library List user's generated tracks

🎬 Video Generation

POST /video/generate Generate a video
ParameterTypeDescription
promptrequiredstringDescription of the video to generate
typestringType: text-to-video, image-to-video, avatar
durationintegerDuration in seconds (5-60)
resolutionstringResolution: 720p, 1080p, 4k
GET /video/{id} Get video generation status and result

🖼️ Image Generation

POST /image/generate Generate an image
ParameterTypeDescription
promptrequiredstringDescription of the image to generate
sizestringSize: 512x512, 1024x1024, 1536x1024
stylestringStyle: realistic, artistic, anime, 3d
countintegerNumber of images (1-4)

💳 Payments (Vigthoria Pay)

POST /payments/checkout Create a checkout session
GET /payments/balance Get user's credit balance
GET /payments/transactions List transaction history

⚠️ Error Codes

CodeDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
402Payment Required - Insufficient credits
403Forbidden - Access denied to resource
404Not Found - Resource doesn't exist
429Too Many Requests - Rate limit exceeded
500Server Error - Internal error, try again

📊 Rate Limits

PlanRequests/MinuteRequests/Day
Free10100
Pro605,000
Enterprise1,000Unlimited