NgamiaNgamia

Full API reference

Find the public Ngamia endpoints by workflow, credential type, and integration guide.

Use this page as the public endpoint map. Each group links to a focused guide with request fields, response examples, and integration notes. Privileged administration, upstream credentials, private infrastructure, and internal database operations are intentionally not documented here.

Most endpoints return {status, code, data, error_code, message, request_id}. Gateway routes use OpenAI-compatible response shapes where documented. The speech endpoint returns raw audio on success; all failed requests return JSON errors. See Errors and response format.

StepEndpointCredentialUse
1GET /v1/modelsAPI keyDiscover enabled paid models, modalities, parameters, and prices.
2GET /v1/billing/balanceAPI key or JWTConfirm the current credit balance.
3POST /v1/chat/completionsAPI key or JWTSend an OpenAI-compatible text or multimodal request.
4POST /v1/embeddingsAPI key or JWTCreate vectors for search and retrieval workflows.
5POST /v1/bongaAPI key or JWTRun Bonga, the combined Kiswahili voice flow.
6POST /v1/payments/topupJWTStart a TZS mobile-money top-up when credits are low.

Authentication

See Register, login & sessions and Authentication.

Method and pathCredentialPurpose
POST /v1/auth/registerNoneCreate an account pending verification.
POST /v1/auth/otp/verifyNoneVerify an email or phone code and receive tokens.
POST /v1/auth/otp/resendNoneResend a verification or reset code.
POST /v1/auth/loginNoneStart a session or MFA challenge.
POST /v1/auth/refreshRefresh tokenRotate the access and refresh token pair.
POST /v1/auth/logoutJWTInvalidate a refresh token.
POST /v1/auth/password/forgotNoneRequest a password-reset code.
POST /v1/auth/password/resetNoneSet a new password with a reset code.
GET /v1/auth/google/startNoneStart Google login in a browser.
GET /v1/auth/google/callbackNoneGoogle OAuth browser callback.
POST /v1/auth/google/mobileNoneNative Android: trade a Google ID token for a session.
GET /v1/auth/github/startNoneStart GitHub login in a browser.
GET /v1/auth/github/callbackNoneGitHub OAuth browser callback.
POST /v1/auth/camelNoneSign in with a verified CamelAccounts access token.

Account and workspaces

See Profile & workspaces.

Method and pathCredentialPurpose
GET /v1/meJWTRead the current profile.
PATCH /v1/meJWTUpdate name or avatar.
DELETE /v1/meJWTDelete the current account.
POST /v1/me/phoneJWTAdd or change the phone number; resets verification and fires an OTP.
GET /v1/workspacesJWTList workspaces available to the account.
POST /v1/workspacesJWTCreate a workspace.
GET /v1/workspaces/{slug}JWTRead one workspace.
PATCH /v1/workspaces/{slug}JWTRename or describe a workspace.
DELETE /v1/workspaces/{slug}JWTDelete a non-default workspace.

API keys

See API keys.

Method and pathCredentialPurpose
POST /v1/api-keysJWTCreate a key; the secret is shown once.
GET /v1/api-keysJWTList keys and their prefixes.
PATCH /v1/api-keys/{id}JWTRename a key.
DELETE /v1/api-keys/{id}JWTRevoke a key.

Models and AI gateway

See Models, Chat completions, Embeddings, Image generation, Video generation, and Bonga — Kiswahili Voice.

Method and pathCredentialPurpose
GET /v1/modelsAPI keyList enabled paid models and current catalog metadata.
GET /v1/models/{id}API keyRead one catalog record by resource id.
POST /v1/chat/completionsAPI key or JWTSend a streaming or non-streaming text/multimodal request.
POST /v1/embeddingsAPI key or JWTCreate a complete vector embedding response.
POST /v1/audio/transcriptionsAPI key or JWTTranscribe JSON/base64 or multipart audio.
POST /v1/audio/speechAPI key or JWTGenerate raw MP3 or PCM audio.
POST /v1/audio/voices/design/previewsAPI key or JWTGenerate billed voice previews from a text description.
POST /v1/audio/voices/design/createAPI key or JWTSave one of your voice previews as a managed voice.
POST /v1/audio/voices/{voiceID}/remix/previewsAPI key or JWTGenerate billed previews by remixing an eligible voice.
POST /v1/audio/speech/streamAPI key or JWTStream speech audio for low-latency playback.
POST /v1/audio/speech/with-timestampsAPI key or JWTGenerate audio with word and character alignment data.
POST /v1/audio/speech/stream/with-timestampsAPI key or JWTStream audio chunks with alignment data.
POST /v1/audio/dialogueAPI key or JWTGenerate a multi-speaker dialogue from text and voice IDs. See Audio Tools.
POST /v1/audio/dialogue/streamAPI key or JWTStream generated multi-speaker dialogue audio.
POST /v1/audio/dialogue/with-timestampsAPI key or JWTGenerate dialogue audio with voice segments and timing alignment.
POST /v1/audio/dialogue/stream/with-timestampsAPI key or JWTStream dialogue audio with timing data.
POST /v1/audio/voice-conversions/{voiceID}API key or JWTConvert a voice recording using a selected target voice. See Audio Tools.
POST /v1/audio/voice-conversions/{voiceID}/streamAPI key or JWTStream converted audio with measured duration pricing.
POST /v1/audio/isolationsAPI key or JWTRemove background noise from a voice recording. See Audio Tools.
POST /v1/audio/isolations/streamAPI key or JWTStream isolated speech audio with measured duration pricing.
POST /v1/audio/alignmentsAPI key or JWTAlign transcript words and characters to audio timestamps. See Audio Tools.
GET /v1/audio/pronunciation-dictionariesAPI key or JWTList your pronunciation dictionaries and rules. See Audio Tools.
POST /v1/audio/pronunciation-dictionariesAPI key or JWTCreate an owned dictionary from alias or phoneme rules.
GET /v1/audio/pronunciation-dictionaries/{dictionaryID}API key or JWTRead one dictionary owned by your account.
PATCH /v1/audio/pronunciation-dictionaries/{dictionaryID}API key or JWTRename an owned dictionary.
PUT /v1/audio/pronunciation-dictionaries/{dictionaryID}/rulesAPI key or JWTReplace all rules in an owned dictionary.
DELETE /v1/audio/pronunciation-dictionaries/{dictionaryID}API key or JWTArchive and remove an owned dictionary.
POST /v1/audio/sound-effectsAPI key or JWTGenerate a priced sound effect and receive raw audio bytes. See Audio Tools.
POST /v1/audio/dubbingsAPI key or JWTSubmit one measured WAV source for asynchronous dubbing into a target language.
GET /v1/audio/dubbings/{id}API key or JWTRead the authenticated owner's dubbing job status and settled charge.
GET /v1/audio/dubbings/{id}/contentAPI key or JWTDownload a completed dubbed audio file.
GET /v1/audio/voicesAPI key or JWTList only voice clones owned by the authenticated account.
GET /v1/audio/voices/libraryAPI key or JWTSearch shared community voices, excluding custom-rate voices. See Audio Tools.
POST /v1/audio/voices/clonesAPI key or JWTCreate an Instant Voice Clone with rights confirmation and uploaded samples.
POST /v1/audio/voices/pvcAPI key or JWTStart a Professional Voice Clone draft with explicit rights confirmation.
POST /v1/audio/voices/pvc/{voiceID}/samplesAPI key or JWTUpload owned PVC training samples.
GET /v1/audio/voices/pvc/{voiceID}API key or JWTRead PVC sample and training status.
POST /v1/audio/voices/pvc/{voiceID}/samples/{sampleID}/speakersAPI key or JWTStart speaker separation for a PVC sample.
GET /v1/audio/voices/pvc/{voiceID}/samples/{sampleID}/speakersAPI key or JWTCheck separation status and detected speakers.
GET /v1/audio/voices/pvc/{voiceID}/samples/{sampleID}/speakers/{speakerID}/audioAPI key or JWTListen to one separated speaker before selecting it.
POST /v1/audio/voices/pvc/{voiceID}/samples/{sampleID}API key or JWTSelect training speakers, trim, rename, or clean a PVC sample.
DELETE /v1/audio/voices/pvc/{voiceID}/samples/{sampleID}API key or JWTRemove a PVC training sample.
GET /v1/audio/voices/pvc/{voiceID}/captchaAPI key or JWTRetrieve the speaker verification challenge.
POST /v1/audio/voices/pvc/{voiceID}/verifyAPI key or JWTSubmit the speaker's verification recording.
POST /v1/audio/voices/pvc/{voiceID}/verify/manualAPI key or JWTRequest fallback manual PVC verification using supporting documents.
POST /v1/audio/voices/pvc/{voiceID}/trainAPI key or JWTStart provider training for a verified PVC.
PATCH /v1/audio/voices/clones/{voiceID}API key or JWTRename an owned clone.
DELETE /v1/audio/voices/clones/{voiceID}API key or JWTDelete your clone from ElevenLabs and Ngamia.
GET /v1/audio/voices/clones/{voiceID}/settingsAPI key or JWTRead settings for an owned clone.
POST /v1/audio/voices/clones/{voiceID}/settingsAPI key or JWTUpdate synthesis settings for an owned clone.
POST /v1/musicAPI key or JWTGenerate music audio and receive raw audio bytes. See Music Generation.
POST /v1/music/streamAPI key or JWTStream generated music audio. See Music Generation.
POST /v1/music/detailedAPI key or JWTGenerate music with audio, composition plan, and song metadata.
POST /v1/music/detailed/streamAPI key or JWTStream music and metadata as server-sent events.
POST /v1/music/plansAPI key or JWTCreate a structured music plan before rendering a track.
POST /v1/bongaAPI key or JWTBonga: transcribe a voice note, generate a text reply, and optionally synthesize speech.
POST /bongaAPI key or JWTCompatible alias for the versioned Bonga route.
POST /v1/voice/responsesAPI key or JWTCompatibility alias for Bonga voice responses.
POST /v1/documents/analyzeAPI key or JWTAnalyze a PDF business document with a model instruction.
POST /v1/vision/analyzeAPI key or JWTAnalyze a private image with a model instruction.
POST /v1/video/analyzeAPI key or JWTAnalyze a private video with a model instruction.
POST /v1/images/generationsAPI key or JWTGenerate images as base64 through a catalog image-output model.
POST /v1/videosAPI key or JWTSubmit an async video generation; returns a job_id to poll.
GET /v1/videos/{job_id}API key or JWTPoll a video-generation job for status and settled cost.
GET /v1/videos/{job_id}/contentAPI key or JWTDownload a completed video generation as streamed bytes.
GET /v1/gateway/healthNoneAggregate upstream provider health (no per-provider detail).

Billing and payments

See Billing and Payments.

Method and pathCredentialPurpose
GET /v1/billing/balanceAPI key or JWTRead the current available credit balance.
GET /v1/billing/transactionsJWTList the account ledger.
POST /v1/payments/topupJWTStart a TZS mobile-money top-up.
GET /v1/paymentsJWTList account payments.
GET /v1/payments/{id}JWTRead one payment.

Activity and notifications

See Activity & analytics and Notifications.

Method and pathCredentialPurpose
GET /v1/activityJWTRead usage events across chat, embeddings, and voice services.
GET /v1/activity/summaryJWTRead usage totals for a period.
GET /v1/notificationsJWTRead in-app notifications.
PATCH /v1/notifications/{id}/readJWTMark one notification as read.
GET /v1/me/notification-preferencesJWTRead email and SMS preferences.
PATCH /v1/me/notification-preferencesJWTUpdate delivery preferences.

Public health check

Method and pathCredentialPurpose
GET /healthzNoneCheck that the API process is alive.

Do not infer private infrastructure, provider credentials, or privileged controls from the public endpoint list. Build integrations only against the documented routes and the live model catalog.