Podhoc API: create private podcasts from URLs
Use Podhoc’s Pro API with credit estimates, safe retries, private output and clear test-token limits. Includes runnable requests and an OpenAPI contract.
Access and cost
An active or trialing Pro subscription is required to create or rotate either test or production tokens. Test tokens spend real account credits; this is not a free sandbox. Keep keys on your server and out of browser code, URLs, logs and repositories.
Sources must be supported publicly reachable URLs. The API does not accept uploaded files or pasted text. Do not make confidential documents public to use this endpoint.
X-Api-Key: phk_test_… / X-Api-Key: phk_prod_…
Base URL: https://api-ext.podhoc.com/v1
Safe first request
This example uses a fictional public source. It creates audio and spends credits: first read the balance and estimate, then approve a budget. The one-voice, five-minute example is 72 credits at the default test multiplier; use the returned estimate if runtime settings differ.
export PODHOC_API_KEY='phk_test_REPLACE_LOCALLY'
export PODHOC_IDEMPOTENCY_KEY='REPLACE_WITH_A_NEW_UUID'
curl --fail-with-body 'https://api-ext.podhoc.com/v1/account/credits' \
-H "X-Api-Key: $PODHOC_API_KEY"
curl --fail-with-body 'https://api-ext.podhoc.com/v1/estimate-cost?duration_minutes=5&source_count=1&voice_count=1' \
-H "X-Api-Key: $PODHOC_API_KEY"
Save a new Idempotency-Key for each intended generation before sending. Retry an uncertain request with the same key and identical payload. The original receipt is reused; a changed payload with the same key returns 409. Do not invent a new key merely because a response timed out.
sleep 60
curl --fail-with-body 'https://api-ext.podhoc.com/v1/podcasts' \
-H "X-Api-Key: $PODHOC_API_KEY" \
-H "Idempotency-Key: $PODHOC_IDEMPOTENCY_KEY" \
-H 'Content-Type: application/json' \
--data '{"urls":["https://podhoc.com/integrations/ai-agents/example-source/"],"language":"en","auto_publish":false,"target_duration_minutes":5,"style":"deep_dive","max_credits":72,"voice_config":{"voice_count":1,"voices":{"speaker1":"Kore"}}}'
Limits and pricing
Test: 2 requests/minute, 20/hour, 1 concurrent generation, at most 5 minutes, 1 URL and English. Production: 30/minute, 300/hour and 5 concurrent generations, subject to Pro feature limits. Read Retry-After on 429.
Standard base: max(36, ceil(minutes × 10 / 3)). Multiple sources add 27 credits; custom weights add 13; multiple standard voices multiply the subtotal by 1.2, with rounding and the applicable generation cap. API pricing then applies the account/token multiplier: defaults 2× test, 3.5× production. Runtime configuration can change these values. A 30-minute, one-source, one-voice production example is 100 base × 3.5 = 350 credits. A test token cannot request 30 minutes.
Use estimate-cost with the same settings and inspect final_credits and credit_multiplier. Check the resulting balance before approval. Generation duration is approximate; credits price the requested settings, not the final audio stopwatch. Extra options can change the quote.
Status, download and failure
Poll test tokens no faster than every 240 seconds, at most 12 times, reserving hourly capacity for other requests. For production, use a bounded backoff and respect rate headers. If still pending, save the podcast ID and resume later; do not create a duplicate. No completion webhook is promised by this reference.
Download only after completed. Failed generation should show a terminal reason; inspect the account balance/refund state before a new attempt. A download URL is temporary and private: do not publish it or store it as a permanent asset address.
GET /v1/podcasts/{id}/status → requested / processing / completed / failed
GET /v1/podcasts/{id}/download
Private output, publication and deletion
Output defaults to public. Creator and Pro can choose private creation before generating; private episodes can later be published with rights confirmation. Production API requests respect the subscribed owner’s choice; test generation rejects automatic publication; later visibility changes are a separate operation. For private creation, explicitly send auto_publish=false using your Pro account.
PATCH /v1/podcasts/{id}/visibility
{ "is_public": true, "rights_confirmed": true }
DELETE /v1/podcasts/{id}
Reference
The versioned contract defines supported fields, types and errors. Use canonical styles; unknown values are rejected. Invalid input must not consume credits. 401/403 indicate credentials or entitlement problems, 402 insufficient balance, 404 unavailable/not-owned content, 409 conflicting idempotency and 429 throttling. Do not blindly retry charged operations on 5xx.
Google comparison
Google documents an enterprise audio-overview API. Its standalone Podcast API is deprecated and not open to new customers. Compare current access and authentication requirements rather than assuming Google has no API.
Google audio-overview API · Google Podcast API status
Choose a setup route in the integrations guide or use the fictional library source for a first request without publishing personal material.