Vigthoria API Modules
Integrate powerful AI capabilities into your applications with our branded API modules
Chat API
Embed intelligent AI chat with Vigthoria's native LLMs. Supports streaming, context memory, and multi-turn conversations.
Code API
AI-powered code generation, completion, refactoring, and explanation. Supports 50+ programming languages.
Music API
Text-to-music generation with 50+ AI voices, duets, and professional mastering. Full songs in seconds.
Image API
AI image generation, editing, upscaling, and enhancement via NexusFabrik pipeline. Multiple models available.
Powered by Vigthoria Badge: All API responses include attribution. To remove the "Powered by Vigthoria" badge requirement, pricing is doubled. Learn more →
Authentication
All API requests require an API key. Include it in the header:
Authorization: Bearer YOUR_API_KEY
Get your API key from the Operator Dashboard.
Chat API
Generate AI-powered chat responses with context awareness and streaming support.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/chat/completions |
Generate chat completion |
| POST | /api/v1/chat/stream |
Streaming chat response |
| GET | /api/v1/chat/models |
List available models |
Example Request
const response = await fetch('https://api.vigthoria.io/v1/chat/completions', { method: 'POST', headers: { 'Authorization': `Bearer ${API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ model: 'vigthoria-balanced-4b', messages: [ { role: 'user', content: 'Hello, how can you help me?' } ], max_tokens: 500 }) }); const data = await response.json(); console.log(data.choices[0].message.content);
Code API
Generate, complete, refactor, and explain code across 50+ programming languages.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/code/generate |
Generate code from prompt |
| POST | /api/v1/code/complete |
Complete partial code |
| POST | /api/v1/code/refactor |
Refactor existing code |
| POST | /api/v1/code/explain |
Explain code functionality |
Example Request
import requests response = requests.post( 'https://api.vigthoria.io/v1/code/generate', headers={'Authorization': f'Bearer {API_KEY}'}, json={ 'prompt': 'Create a Python function that validates email addresses', 'language': 'python', 'max_tokens': 500 } ) print(response.json()['code'])
Music API
Generate full songs from text prompts with AI voices, instrumental backing, and professional mastering.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/music/generate |
Generate song from prompt |
| GET | /api/v1/music/voices |
List available AI voices |
| GET | /api/v1/music/genres |
List supported genres |
| GET | /api/v1/music/status/{job_id} |
Check generation status |
Example Request
curl -X POST https://api.vigthoria.io/v1/music/generate \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "An upbeat pop song about summer adventures", "voice": "nova-female-01", "genre": "pop", "duration": 180, "lyrics": "optional custom lyrics here" }'
Image API
Generate, edit, upscale, and enhance images using multiple AI models via NexusFabrik pipeline.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/image/generate |
Generate image from prompt |
| POST | /api/v1/image/edit |
Edit existing image |
| POST | /api/v1/image/upscale |
Upscale image resolution |
| GET | /api/v1/image/models |
List available models |
Example Request
const response = await fetch('https://api.vigthoria.io/v1/image/generate', { method: 'POST', headers: { 'Authorization': `Bearer ${API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ prompt: 'A futuristic city at sunset, cyberpunk style', model: 'flux-schnell', width: 1024, height: 1024, steps: 30 }) }); const { image_url } = await response.json();
Rate Limits
| Plan | Requests/min | Requests/day |
|---|---|---|
| Free Tier | 10 | 100 |
| Pay-as-you-go | 60 | 10,000 |
| Unlimited Plans | 300 | Unlimited |