OpenQlik API
One unified REST surface for voice agents, speech, chat, vision, media, and knowledge base. Platform-managed infrastructure — sign up, mint a key, and ship in minutes.
Make your first request in 30 seconds
curl -X POST https://openqlik.lovable.app/api/v1/text-to-text \
-H "Authorization: Bearer oqk_live_…" \
-H "Content-Type: application/json" \
-d '{
"session_id": "sess_demo",
"message": "Hello, world"
}'Authentication
Pass your key in the Authorization header. Rotate keys anytime — old keys are invalidated immediately.
Authorization: Bearer oqk_live_… Content-Type: application/json
Endpoints
Speech
/v1/ttsText → SpeechSynthesize speech from text using a platform-managed voice.
https://openqlik.lovable.app/api/v1/tts/v1/sttSpeech → TextTranscribe an audio file. Send as multipart/form-data with field `file`.
https://openqlik.lovable.app/api/v1/stt/v1/voice-changerVoice → VoiceRe-speak an audio clip in a different voice (speech-to-speech). Multipart form-data.
https://openqlik.lovable.app/api/v1/voice-changer/v1/speech-to-speechSpeech → Reply (STT + LLM + TTS)Unified voice pipeline: transcribe user audio, generate a reply via the AI gateway, and return spoken audio in one blocking call. Transcript, reply text, and per-stage latencies are returned via X-* response headers (CORS-exposed).
https://openqlik.lovable.app/api/v1/speech-to-speechText & Vision
/v1/text-to-textGenerate textSend a prompt to the self-hosted AI gateway and receive the generated response.
https://openqlik.lovable.app/api/v1/text-to-text/v1/images/generationsGenerate imagesImage generation. Disabled in this deployment — the self-hosted AI gateway does not expose an image-generation endpoint.
https://openqlik.lovable.app/api/v1/images/generations/v1/visionImage understandingImage understanding. Disabled in this deployment — the self-hosted AI gateway does not expose a vision endpoint.
https://openqlik.lovable.app/api/v1/visionMedia
/v1/sfxSound effectsGenerate a short sound effect from a text prompt.
https://openqlik.lovable.app/api/v1/sfx/v1/musicMusic generationGenerate a music track from a text prompt.
https://openqlik.lovable.app/api/v1/music/v1/isolatorVoice isolatorStrip background noise from an audio clip.
https://openqlik.lovable.app/api/v1/isolator/v1/dubbingDub video/audioTranslate spoken audio to a target language while preserving voice.
https://openqlik.lovable.app/api/v1/dubbingAgents
/v1/agentsList agentsList your tenant's agents, most recent first.
https://openqlik.lovable.app/api/v1/agents/v1/agentsCreate agentCreate a new voice agent.
https://openqlik.lovable.app/api/v1/agents/v1/agents/{agent_id}Get agentRetrieve a single agent by id.
https://openqlik.lovable.app/api/v1/agents/%7Bagent_id%7D/v1/agents/{agent_id}Update agentPatch one or more fields on an existing agent. Omitted fields stay unchanged.
https://openqlik.lovable.app/api/v1/agents/%7Bagent_id%7D/v1/agents/{agent_id}Delete agentPermanently delete an agent. Returns 204 on success.
https://openqlik.lovable.app/api/v1/agents/%7Bagent_id%7D/v1/agents/{agent_id}/converseConverse with agentFull STT → LLM → TTS turn. Send JSON `{text}` for text-in, or multipart/form-data with `file` for audio-in.
https://openqlik.lovable.app/api/v1/agents/%7Bagent_id%7D/converseKnowledge Base
/v1/kb/documentsList documentsList knowledge base documents. Pass `org_id` to scope to an organization (caller must be a member); omit it to list the API key owner's personal documents. Supports pagination via `limit`/`offset` and filename search via `q`.
https://openqlik.lovable.app/api/v1/kb/documents/v1/kb/documentsCreate documentAdd a knowledge base document. The body is chunked and indexed for `kb/search`.
https://openqlik.lovable.app/api/v1/kb/documents/v1/kb/searchSemantic searchSearch across the tenant's knowledge base. Pass `org_id` to search an organization's documents (caller must be a member); omit for personal documents. Supports pagination via `top_k` (page size) and `offset`.
https://openqlik.lovable.app/api/v1/kb/search/v1/kb/documents/{document_id}Get documentRetrieve a single knowledge-base document, including its full content.
https://openqlik.lovable.app/api/v1/kb/documents/%7Bdocument_id%7D/v1/kb/documents/{document_id}Update documentPatch fields on an existing document. Re-chunks when `content` is supplied.
https://openqlik.lovable.app/api/v1/kb/documents/%7Bdocument_id%7D/v1/kb/documents/{document_id}Delete documentPermanently remove a knowledge-base document. Returns 204.
https://openqlik.lovable.app/api/v1/kb/documents/%7Bdocument_id%7DContent
/v1/blog-postBlog post (async job)Queue an SEO blog-generation job. Returns a `job_id` immediately; poll `GET /v1/blog-post/{job_id}` for the article. `session_id` is forwarded to the upstream gateway verbatim.
https://openqlik.lovable.app/api/v1/blog-post/v1/blog-post/{job_id}Blog job status / resultFetch the current status of a blog job. When `status = completed`, the generated article is included in the response body (fields vary by upstream — commonly `result`, `content`, or `article`).
https://openqlik.lovable.app/api/v1/blog-post/%7Bjob_id%7D/v1/blog-post/queue-statsBlog queue statisticsReturns live blog-generation queue metrics from the upstream gateway: Redis queue length, per-state job counts, worker concurrency, and whether hard request limits are engaged.
https://openqlik.lovable.app/api/v1/blog-post/queue-stats