Vedika Voice API

The Voice API from Vedika — 4 operation(s) for voice.

GitHub OpenAPI

Operations 4

POST /api/voice/binary Speak a question, get a spoken astrology answer back — send raw audio, receive… #
POST /api/voice/stream Real-time spoken astrology — stream a question and receive transcription… #
GET /api/voice/pricing List the voice tiers and their public per-query price points (USD and INR)… #
POST /api/voice/realtime/session Open a low-latency realtime voice session — returns a room join token for a… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/vedika-io:vedika-io-voice-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

vedika-io-voice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vedika Intelligence Voice API
  version: 2.0.0
  description: 'Vedic, Western, Chinese astrology, divination, matchmaking, daily horoscope, AI astrology query, and voice — by category. Authenticate with an API key sent as Authorization: Bearer . Free sandbox at /sandbox/*. Timezone inference uses OpenStreetMap-derived data © OpenStreetMap contributors (ODbL); see https://vedika.io/legal/attributions'
servers:
- url: https://api.vedika.io
  description: Production
- url: https://api.vedika.io/sandbox
  description: Sandbox (free, no auth)
security:
- ApiKeyAuth: []
tags:
- name: Voice
paths:
  /api/voice/binary:
    post:
      tags:
      - Voice
      summary: Speak a question, get a spoken astrology answer back — send raw audio, receive…
      parameters:
      - name: X-API-Key
        in: header
        required: false
        description: 'Your Vedika API key (vk_live_* or vk_ent_*). Optional: Authorization: Bearer <key> is the preferred way to send it, and this header is read only when no Bearer credential is present. Voice requires a Business or Enterprise plan.'
        schema:
          type: string
      - name: Content-Type
        in: header
        required: true
        description: 'Audio MIME type of the raw request body: audio/wav, audio/webm, audio/ogg, audio/mpeg, audio/mp3, audio/mp4, audio/aac or audio/flac. The body is the audio bytes themselves, not JSON.'
        schema:
          type: string
          example: audio/wav
      - name: x-vedika-voice-tier
        in: header
        required: false
        description: 'Voice tier: vedika-voice-lite, vedika-voice-standard or vedika-voice-premium. Defaults to vedika-voice-standard if omitted.'
        schema:
          type: string
      - name: x-vedika-voice-language
        in: header
        required: false
        description: Language hint for transcription/synthesis (e.g. en, hi, ta). Lowercased.
        schema:
          type: string
      - name: x-vedika-birth-details
        in: header
        required: false
        description: JSON birth details for chart-grounded answers, e.g. {"datetime":"1990-05-15T10:30:00","latitude":19.07,"longitude":72.87,"timezone":"Asia/Kolkata"}.
        schema:
          type: string
      - name: x-vedika-voice-persona
        in: header
        required: false
        description: Optional persona id (one of 31 catalog personas). Unknown id falls back to the tier default persona.
        schema:
          type: string
      - name: Idempotency-Key
        in: header
        required: false
        description: 'Client-stable key folded with an audio fingerprint, so a retry on the same audio is never charged twice. A request that was charged is answered once: a repeat with the same key and audio is refused with 409 IDEMPOTENCY_KEY_REPLAYED, which carries the receipt of the original charge, makes no speech-to-text, model or text-to-speech call and is not billed. If a response is lost after the charge (timeout, dropped connection, 502/504), send a new Idempotency-Key to ask again as a new, billed request.'
        schema:
          type: string
      - name: X-Idempotency-Key
        in: header
        required: false
        description: Alias of Idempotency-Key for clients that send X-Idempotency-Key. Read after Idempotency-Key and before X-Request-Id, and folded with the audio fingerprint in the same way, so a retry on the same audio by either is never charged twice.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            audio/wav:
              schema:
                type: string
                format: binary
                description: The spoken answer as WAV audio. This is the usual reply.
            audio/mpeg:
              schema:
                type: string
                format: binary
                description: The spoken answer as MP3 audio, sent when the backup voice engine answered. Always read the Content-Type header to know which format you received.
            application/json:
              example: '<binary audio body on success (Content-Type is audio/wav normally, or audio/mpeg when the backup voice engine answered), with headers X-Vedika-Voice-Duration (estimated speech seconds) and X-Vedika-Voice-Cost (total USD charge). On a no-charge safety refusal a 200 JSON body is returned instead: {"success":false,"engine":"vedika-intelligence","safety":"content-safety","answer":"I can''t safely answer that request in voice. Please ask an age-appropriate astrology or life-guidance question...","cost":{"costUsd":0,"currency":"USD"}}>'
        '400':
          description: 400 NO_AUDIO
        '402':
          description: 402 (INSUFFICIENT_BALANCE — wallet below voice ceiling, pre-check; also withholds audio if wallet cannot cover charge post-synthesis)
        '403':
          description: 403 VOICE_PLAN_REQUIRED
        '409':
          description: '409 IDEMPOTENCY_KEY_REPLAYED: this Idempotency-Key and audio were already charged and answered. The answer is not produced again and the call is not billed; the body carries the receipt of the original charge (receipt.requestId, receipt.chargedUsd). A new Idempotency-Key asks again as a new, billed request.'
        '413':
          description: '413 AUDIO_TOO_LONG: the audio is longer than one voice request allows, about 39 minutes, and a file counts as longer past about 4.7 MB compressed or 18.8 MB uncompressed. Refused before any charge. Send a shorter clip.'
        '415':
          description: 415 UNSUPPORTED_AUDIO_TYPE
        '422':
          description: 422 (safety refusal/block — no charge)
        '500':
          description: 500 (query service or text-to-speech synthesis failed)
        '502':
          description: 502 LLM_FAILED
      requestBody:
        required: true
        description: Send the recorded question as raw audio bytes in the request body (for example the contents of question.wav) with a matching audio Content-Type such as audio/wav. The body is not JSON. Optional metadata goes in x-vedika-* request headers.
        content:
          audio/wav:
            schema:
              type: string
              format: binary
          audio/webm:
            schema:
              type: string
              format: binary
          audio/mpeg:
            schema:
              type: string
              format: binary
          audio/ogg:
            schema:
              type: string
              format: binary
          audio/mp4:
            schema:
              type: string
              format: binary
          audio/aac:
            schema:
              type: string
              format: binary
          audio/flac:
            schema:
              type: string
              format: binary
      operationId: postApiVoiceBinary
      x-operation-id-source: derived
  /api/voice/stream:
    post:
      tags:
      - Voice
      summary: Real-time spoken astrology — stream a question and receive transcription…
      parameters:
      - name: X-API-Key
        in: header
        required: false
        description: 'Your Vedika API key (vk_live_* or vk_ent_*). Optional: Authorization: Bearer <key> is the preferred way to send it, and this header is read only when no Bearer credential is present. Voice requires a Business or Enterprise plan.'
        schema:
          type: string
      - name: Content-Type
        in: header
        required: true
        description: 'Audio MIME type of the raw request body: audio/wav, audio/webm, audio/ogg, audio/mpeg, audio/mp3, audio/mp4, audio/aac or audio/flac. The body is the audio bytes themselves, not JSON.'
        schema:
          type: string
          example: audio/wav
      - name: x-vedika-voice-language
        in: header
        required: false
        description: Language hint (e.g. en, hi). Lowercased.
        schema:
          type: string
      - name: x-vedika-voice-conversation-id
        in: header
        required: false
        description: Conversation id to thread multi-turn context; echoed back in started/completed events.
        schema:
          type: string
      - name: x-vedika-voice-tier
        in: header
        required: false
        description: Requested voice tier/SKU.
        schema:
          type: string
      - name: x-vedika-voice-system
        in: header
        required: false
        description: 'Astrology system to force: vedic, western, or kp. Prepended as a system tag to the question.'
        schema:
          type: string
      - name: x-vedika-voice-allow-general
        in: header
        required: false
        description: true/1/yes to allow general (non-chart) answers when no birth details are supplied.
        schema:
          type: string
      - name: Idempotency-Key
        in: header
        required: false
        description: 'Client-stable key folded with an audio fingerprint, so a retry on the same audio is never charged twice. A request that was charged is answered once: a repeat with the same key and audio is refused with 409 IDEMPOTENCY_KEY_REPLAYED, which carries the receipt of the original charge, makes no speech-to-text, model or text-to-speech call and is not billed. If a response is lost after the charge (timeout, dropped connection, 502/504), send a new Idempotency-Key to ask again as a new, billed request.'
        schema:
          type: string
      - name: X-Idempotency-Key
        in: header
        required: false
        description: Alias of Idempotency-Key for clients that send X-Idempotency-Key. Read after Idempotency-Key and before X-Request-Id, and folded with the audio fingerprint in the same way, so a retry on the same audio by either is never charged twice.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              example: '<SSE stream (text/event-stream). Event sequence: event: started {"transcription":"when will I get married","language":"en","tier":"vedika-voice-standard","sttMs":120,"audioFormat":"pcm16le","sampleRateHz":24000,"conversationId":null} → event: text {"delta":"Based on your chart...","done":true} → event: audio {"bytesBase64":"<base64 PCM16LE @24kHz>","seq":0} (repeated, seq increments) → event: completed {"engine":"vedika-intelligence","processingMs":3400,"cost":{"costUsd":0.048,"currency":"USD"},"conversationId":null,"audioChunks":12,"ttsFailed":false}. On error: event: error {"code":"STT_FAILED","message":"Could not transcribe audio."} followed by a completed terminator with cost.costUsd 0.>'
        '400':
          description: 'SSE error event: <safety block code> (no charge)'
        '402':
          description: 402 INSUFFICIENT_BALANCE
        '403':
          description: 403 VOICE_PLAN_REQUIRED
        '409':
          description: '409 IDEMPOTENCY_KEY_REPLAYED: this Idempotency-Key and audio were already charged and answered. The answer is not produced again and the call is not billed; the body carries the receipt of the original charge (receipt.requestId, receipt.chargedUsd). A new Idempotency-Key asks again as a new, billed request.'
        '413':
          description: '413 AUDIO_TOO_LONG: the audio is longer than one voice request allows, about 39 minutes, and a file counts as longer past about 4.7 MB compressed or 18.8 MB uncompressed. Refused before any charge. Send a shorter clip.'
        '415':
          description: 415 UNSUPPORTED_AUDIO_TYPE
        '422':
          description: 422 NO_SPEECH_DETECTED
      requestBody:
        required: true
        description: Send the recorded question as raw audio bytes in the request body (for example the contents of question.wav) with a matching audio Content-Type such as audio/wav. The body is not JSON. Optional metadata goes in x-vedika-* request headers.
        content:
          audio/wav:
            schema:
              type: string
              format: binary
          audio/webm:
            schema:
              type: string
              format: binary
          audio/mpeg:
            schema:
              type: string
              format: binary
          audio/ogg:
            schema:
              type: string
              format: binary
          audio/mp4:
            schema:
              type: string
              format: binary
          audio/aac:
            schema:
              type: string
              format: binary
          audio/flac:
            schema:
              type: string
              format: binary
      operationId: postApiVoiceStream
      x-operation-id-source: derived
  /api/voice/pricing:
    get:
      tags:
      - Voice
      summary: List the voice tiers and their public per-query price points (USD and INR)…
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                success: true
                engine: vedika-intelligence
                tiers:
                - sku: vedika-voice-lite
                  name: Vedika Voice Lite
                  engine: Vedika Voice
                  transport: component
                  languages:
                  - en
                  - hi
                  - ta
                  - te
                  - bn
                  - kn
                  - ml
                  - mr
                  - gu
                  - pa
                  bargeIn: false
                  features:
                  - 9 Indian languages + English
                  - Natural spoken answers in a persona's voice
                  - Auto language detection
                  - Male & female personas
                  - Birth-chart-aware answers
                  - Crisis-safe (deterministic helpline, no charge)
                  pricePerMinUsd: 0.066
                  pricePerMinInr: 6.34
                - sku: vedika-voice-standard
                  name: Vedika Voice Standard
                  engine: Vedika Voice
                  transport: component
                  languages:
                  - en
                  - hi
                  - ta
                  - te
                  - bn
                  - kn
                  - ml
                  - mr
                  - gu
                  - pa
                  bargeIn: false
                  features:
                  - 9 Indian languages + English
                  - 'Expressive voice: each persona sets its own accent, tone and pace'
                  - Auto language detection
                  - Male & female personas
                  - Birth-chart-aware answers
                  - Crisis-safe (deterministic helpline, no charge)
                  pricePerMinUsd: 0.07254
                  pricePerMinInr: 6.96
                - sku: vedika-voice-premium
                  name: Vedika Voice Premium
                  engine: Vedika Premium Voice
                  transport: component
                  languages:
                  - en
                  - hi
                  - ta
                  - te
                  - bn
                  - kn
                  - ml
                  - mr
                  - gu
                  - pa
                  bargeIn: false
                  features:
                  - 9 Indian languages + English
                  - Highest speech-recognition accuracy, including accented and mixed-language speech
                  - 'Expressive voice: each persona sets its own accent, tone and pace'
                  - Auto language detection
                  - Male & female personas
                  - Birth-chart-aware answers
                  - Crisis-safe (deterministic helpline, no charge)
                  pricePerMinUsd: 0.08454
                  pricePerMinInr: 8.12
                currency: USD
                pricesPublished: true
                billing:
                  model: per-query
                  walletDeduction: true
                access:
                  eligiblePlans:
                  - business
                  - enterprise
                  - flagship
                  requiredPlan: business
                  blockedCode: VOICE_PLAN_REQUIRED
                rateLimits:
                  business:
                    perMinute: 30
                    perDay: 2000
                  enterprise:
                    perMinute: 100
                    perDay: 10000
                  flagship:
                    perMinute: 100
                    perDay: 10000
                documentation: https://vedika.io/docs/voice
      operationId: getApiVoicePricing
      x-operation-id-source: derived
  /api/voice/realtime/session:
    post:
      tags:
      - Voice
      summary: Open a low-latency realtime voice session — returns a room join token for a…
      parameters:
      - name: X-API-Key
        in: header
        required: false
        description: 'Your Vedika API key (vk_live_* or vk_ent_*). Optional: Authorization: Bearer <key> is the preferred way to send it, and this header is read only when no Bearer credential is present. Business/Enterprise only; the highest realtime tier requires Enterprise.'
        schema:
          type: string
      - name: Content-Type
        in: header
        required: false
        description: application/json when sending the optional tier body.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                sessionId: rt-3f2c9a8b-...
                roomToken: <guest join token for the realtime room>
                region: in
                tier: native
        '400':
          description: 400 VOICE_REALTIME_BAD_TIER
        '402':
          description: 402 INSUFFICIENT_BALANCE
        '403':
          description: 403 VOICE_REALTIME_DISABLED (feature dark-launched / killswitched)
        '429':
          description: 429 VOICE_RATE_LIMIT_DAY
        '500':
          description: 500 REALTIME_BILLING_ERROR
        '502':
          description: 502 REALTIME_MEDIA_ERROR
      requestBody:
        required: true
        content:
          application/json:
            example:
              tier: native
      operationId: postApiVoiceRealtimeSession
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Deprecated. Also accepted, used only when no Bearer credential is present, until 18 January 2027; after that only Authorization: Bearer works. Responses to calls that use this header carry Deprecation and Sunset headers.'
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Preferred. Send Authorization: Bearer <key>. Takes precedence over X-API-Key when both are present. A rejected key returns 401 with an RFC 6750 WWW-Authenticate: Bearer error="invalid_token" challenge whose error_description states the problem. Do not retry a 401 - fix the key.'
x-vedika-surface:
  total_public_ops: 1303
  provider_contract_source: /openapi.json
  provider_vastu_logical_operations: 147