{"uid":"cap_rbyVKbczp7UZEPIiK8L5n","slug":"2s-audio-transcription-api-1c795df2","name":"2s Audio Transcription API","description":"The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.","url":"https://2s.io/api/transcribe/audio","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public URL of the audio file (≤15 MB, ≤15 min)."},"diarize":{"type":"boolean","default":false,"description":"Label speakers and return utterance segments."},"language":{"type":"string","description":"BCP-47 language hint, e.g. \"en\", \"es\". Auto-detected when omitted."}}},"responseSchema":{"type":"json","schema":{"type":"object","properties":{"ok":{"type":"boolean"},"meta":{"type":"object","properties":{"wordCount":{"type":"integer"}}},"items":{"type":"array","items":{"type":"object","properties":{"words":{"type":"array","items":{"type":"object","properties":{"end":{"type":"number"},"word":{"type":"string"},"start":{"type":"number"},"speaker":{},"confidence":{"type":"number"}}}},"language":{"type":"string"},"confidence":{"type":"number"},"transcript":{"type":"string"},"utterances":{"type":"array","items":{}},"durationSeconds":{"type":"number"}}}},"total":{"type":"integer"},"source":{"type":"object","properties":{"url":{"type":"string"},"license":{"type":"string"},"provider":{"type":"string"}}}}},"example":{"ok":true,"meta":{"wordCount":52},"items":[{"words":[{"end":0.24,"word":"as","start":0.08,"speaker":null,"confidence":0.99}],"language":"en","confidence":0.998,"transcript":"As much as it’s worth celebrating the first spacewalk with an all-female team…","utterances":[],"durationSeconds":25.9}],"total":1,"source":{"url":"https://deepgram.com","license":"Generated transcript — Deepgram API terms","provider":"Deepgram (nova-2)"}}},"example":{"request":{"url":"https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3","diarize":false,"language":"en"},"response":{"data":{"ok":true,"meta":{"wordCount":0},"items":[{"words":[],"language":"en","confidence":0,"transcript":"","utterances":[],"durationSeconds":372.7}],"total":1,"source":{"url":"https://deepgram.com","license":"Generated transcript — Deepgram API terms","provider":"Deepgram (nova-2)"}},"meta":{"cost":{"usd":0.0675,"tier":2},"caller":"x402","version":null,"endpoint":"transcribe.audio","settlement":{"txHash":"0x4f2da4c6b9c2330a9fe214873f3c127dc2b22f6dc8e76ed04ebf31cdbac9473f","network":"eip155:8453","success":true}}}},"exampleRequest":{"url":"https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3","diarize":false,"language":"en"},"tags":["x402"],"displayCostAmount":"0.1305","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.00","successRate":"0.00","reviews":1,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1305/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.32625","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.32625","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CEHphvSygQaWh0-QYTQCJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.32625","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Transcribes an audio file from a public URL into text using Deepgram nova-2, with optional speaker diarization and language detection","exampleAgentPrompt":"Can you transcribe this audio file for me — https://example.com/interview.mp3 — and label which speaker is saying what throughout the recording?","exampleUseCases":null,"resultDescription":"A JSON object containing the full transcript text, word-level tokens with start/end timestamps and confidence scores, detected language, total duration in seconds, word count, and optionally labeled speaker utterances. Also includes source attribution indicating Deepgram nova-2 as the underlying provider.","failureModes":["Audio file exceeds 15 MB or 15 minutes — server rejects the request","URL is not publicly accessible or returns a non-200 response","Unsupported audio format causes decoding failure","Invalid BCP-47 language code causes a validation error","Payment failure via x402 results in 402 response with no transcription","Network timeout if audio download takes too long"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call audio transcription without API key setup or subscriptions, especially in agentic workflows that pay via USDC on Base or Solana. It is ideal for one-off transcription tasks, pipelines with variable volume, or when speaker diarization is needed alongside transcription. Prefer this over self-hosted or subscription Deepgram access when zero-setup and crypto-native payment are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-08-05T21:49:11.444Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:54:39.517Z","isFirstParty":false}