Menu
API Status: Operational

ZenMic API Documentation

Transform text into natural-sounding audio with our simple, powerful REST API. Generate scripts, synthesize speech, and manage podcasts.

REST API Async Generation Bearer Auth JSON Responses

Authentication

Every request must include your API key via Bearer authentication.

http
Authorization: Bearer YOUR_API_KEY
Keep it secret: Never expose your API key in client-side code. Use server-side environment variables.

Base URL & Format

All endpoints are relative to:

text
https://zenmic.com/api/v2
All responses are JSON. Success: {"success":true,"data":{...}}. Errors include an "error" field.

POST Script Generation

Convert a topic, a document, or both into a conversational dialogue script ready for audio synthesis. You can pass a topic, upload a document, or combine them — the topic acts as a focus angle when a document is also provided.

POST/api/v2/scripts

From a Topic

http
POST /api/v2/scripts
Authorization: Bearer your-api-key
Content-Type: application/json

{
  "source": "topic",
  "topic": "The future of AI in healthcare",
  "title": "AI in Medicine",
  "duration_minutes": 5
}

From a Document

http
POST /api/v2/scripts
Authorization: Bearer your-api-key
Content-Type: multipart/form-data

source=document
document=<file>
title=My Audio

From a Document with a Topic Focus

Add a topic field alongside a document upload to steer the generated script toward a specific angle or question.

http
POST /api/v2/scripts
Authorization: Bearer your-api-key
Content-Type: multipart/form-data

source=document
document=<file>
topic=Focus on the privacy implications
title=My Audio

200 Response

json
{
  "success": true,
  "data": {
    "title": "Generated Audio Title",
    "style_prompt": "Conversational, upbeat, informative",
    "dialogue": [
      ["male",   "Hello and welcome to our audio."],
      ["female", "Today we're discussing an interesting topic..."]
    ]
  }
}
Supported formats: PDF, Images (JPEG, PNG, WebP, HEIC), Text (TXT, HTML, CSV, XML, RTF, Markdown). Max file size: 50 MB.

POST Audio Generation

Generate audio directly from a topic, a document, or a pre-built dialogue. All variants return a job ID to poll for completion. You can also combine a topic and a document — the topic acts as a focus angle for the document content.

POST/api/v2/audios

From a Topic

http
POST /api/v2/audios
Authorization: Bearer your-api-key
Content-Type: application/json

{
  "source": "topic",
  "topic": "The future of AI in healthcare",
  "title": "AI in Medicine",
  "duration_minutes": 5
}

From a Document (with optional Topic Focus)

The topic field is optional; omit it to generate a general discussion from the document.

http
POST /api/v2/audios
Authorization: Bearer your-api-key
Content-Type: multipart/form-data

source=document
document=<file>
topic=Focus on the privacy implications
title=My Audio

From a Pre-built Dialogue

http
POST /api/v2/audios
Authorization: Bearer your-api-key
Content-Type: application/json

{
  "title": "AI in Medicine",
  "style_prompt": "Conversational, upbeat, informative",
  "dialogue": [
    ["male",   "Hello and welcome to our audio."],
    ["female", "Today we're discussing an interesting topic..."]
  ]
}

202 Accepted

json
{
  "success": true,
  "data": {
    "id": "abcd",
    "status": "queued",
    "poll_url": "/api/v2/audios/abcd",
    "audio_page_url": "https://zenmic.com/audio/abcd"
  }
}

GET Audio Status

Poll this endpoint after submitting an audio job until status is succeeded or failed.

GET/api/v2/audios/{id}
http
GET /api/v2/audios/abcd
Authorization: Bearer your-api-key

200 When complete

json
{
  "success": true,
  "data": {
    "id": "abcd",
    "status": "succeeded",
    "audio_url": "https://cdn.zenmic.com/abcd.mp3",
    "audio_format": "mp3",
    "title": "AI in Medicine",
    "created_at": "2026-03-01T10:00:00Z",
    "audio_page_url": "https://zenmic.com/audio/abcd"
  }
}

Podcast Shows

Manage podcast shows. Each show has a unique show_id and an RSS feed_url.

POST/api/v2/podcastsCreate a show
json — body
{ "title": "My Podcast", "description": "A great show about tech" }

201 Created

json
{
  "success": true,
  "data": {
    "id": 1, "show_id": "myp-abc123", "title": "My Podcast",
    "description": "A great show about tech", "episode_count": 0,
    "feed_url": "https://cdn.zenmic.com/podcast/myp-abc123/feed.xml",
    "created_at": "2026-03-01 10:00:00"
  }
}
GET/api/v2/podcastsList all shows
GET/api/v2/podcasts/{show_id}Get a show
PATCH/api/v2/podcasts/{show_id}Update title / description
json — body
{ "title": "New Title", "description": "Updated description" }
DELETE/api/v2/podcasts/{show_id}Delete a show

200

json
{ "success": true, "data": { "deleted": true } }

Episodes

Add audio episodes to a show using a mic_id from POST /api/v2/audios.

POST/api/v2/podcasts/{show_id}/episodesAdd episode
json — body
{
  "mic_id": "abc12345",
  "title": "Episode 1 – Getting Started",
  "description": "In this episode we cover the basics."
}

201 Created

json
{
  "success": true,
  "data": {
    "id": 7, "mic_id": "abc12345",
    "title": "Episode 1 – Getting Started",
    "description": "In this episode we cover the basics.",
    "audio_url": "https://cdn.zenmic.com/abc12345.mp3",
    "created_at": "2026-03-01 10:05:00"
  }
}
GET/api/v2/podcasts/{show_id}/episodesList episodes
DELETE/api/v2/podcasts/{show_id}/episodes/{episode_id}Remove episode

200

json
{ "success": true, "data": { "deleted": true } }

Try Script Generation

Live demo — generate a dialogue script from a topic, a document, or both together.

PDF, DOC, DOCX, TXT, JPG, PNG · Max 50 MB

Try Audio Generation

Generate MP3 audio from a topic, a document, or a pre-built dialogue script. Audio generation takes 2–10 minutes depending on length.

PDF, DOC, DOCX, TXT, JPG, PNG, WebP · Max 50 MB

Try Podcast API

Interact with the Podcast Shows API live in your browser.

List All Shows

Create a Show

Get or Delete a Show

Ready to Start Building?

Get your API key and start generating audio in minutes.

Get Your API Key

Ready to Transform Your Content?

Join hundreds of content creators who are already using ZenMic to create amazing podcasts.

Start Generating