{"openapi":"3.1.0","info":{"title":"Speech is Cheap x402 API","version":"2.0.0","description":"Speech is Cheap transcribes prerecorded audio and video through an API paid per recording in USDC on Base, with no account or API key. This discovery document lists only the x402 route, with complete documentation at https://docs.speechischeap.com/x402-v2/.","contact":{"name":"Speech is Cheap","email":"support@speechischeap.com","url":"https://speechischeap.com/x402/"}},"servers":[{"url":"https://api.speechischeap.com"}],"externalDocs":{"url":"https://docs.speechischeap.com/x402-v2/"},"paths":{"/v2/x402/jobs":{"post":{"operationId":"createX402Job","summary":"Create an x402 transcription job","description":"Transcribe prerecorded audio or video at a public URL. Send JSON with input_url and input_duration in seconds, then pay the quote with native USDC on Base. Replay the paid request until it returns a job ID. Receive transcripts by webhook or by polling the free status route. Transcription costs $0.002 per audio minute, $0.01 minimum. Optional speaker labels, word timestamps, and audio labels add separate rates. Failed jobs and excess whole cents receive automatic refunds to the paying wallet.","x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.01","max":"7.49"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input_url","input_duration"],"properties":{"input_url":{"type":"string","format":"uri","maxLength":2048,"example":"https://cdn.speechischeap.com/shap-grok-25s.mp3","description":"Public HTTP or HTTPS URL of a recorded audio or video file, without credentials."},"input_duration":{"type":"number","minimum":6,"maximum":86400,"example":60,"description":"The buyer states the duration in seconds to set the price. A recording longer than this paid allowance fails with a full refund."},"webhook_url":{"type":"string","format":"uri","maxLength":2048,"description":"HTTP or HTTPS URL that receives the outcome and refund updates, with retries."},"can_parse_speakers":{"type":"boolean","default":false,"description":"Adds a speaker_id to each segment."},"can_parse_words":{"type":"boolean","default":false,"description":"Adds a timecode for every word."},"can_label_audio":{"type":"boolean","default":false,"description":"Adds an audio classification label."},"language":{"type":"string","maxLength":16,"description":"Lowercase language code such as en. If omitted, the language is detected for each speech segment."},"output_format":{"type":"string","enum":["","srt","vtt","webvtt"],"default":"","description":"Transcript format in the webhook body."},"is_private":{"type":"boolean","default":false,"description":"Redacts input_url and deletes the segments 12 hours after the job completes."}}},"example":{"input_url":"https://cdn.speechischeap.com/shap-grok-25s.mp3","input_duration":60}}}},"responses":{"202":{"description":"Paid. Replay the same request and proof until the response has an id.","content":{"application/json":{"schema":{"type":"object","required":["purchase_id","status"],"properties":{"id":{"type":"string","description":"Job ID; read the job at /v2/jobs/{id} without payment."},"purchase_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["PENDING","COMPLETED","FAILED","CANCELED","EXPIRED"]},"payment_status":{"type":"string","description":"Present while payment is being confirmed; replay the same request and proof."},"output":{"type":"object"}}},"example":{"id":"00000000-1111-7222-b333-444444444444-sic","status":"PENDING","purchase_id":"00000000-1111-4222-8333-444444444444","output":{}}}}},"400":{"description":"Invalid request, before any quote or payment."},"402":{"description":"Payment required. The PAYMENT-REQUIRED header carries an x402 v2 quote, valid for 300 seconds."}}}}}}