{"openapi":"3.1.0","info":{"title":"GEDX402 Media","version":"6","description":"Voice agent bundle — prepaid flux ASR, smart-turn, chat/fast, and TTS loop.","contact":{"email":"support@macrostrategies.ai","url":"https://media.gedx402.com"},"x-guidance":"Pay per request with USDC on Base via x402 v2 (Coinbase CDP facilitator). Choose any listed network in the 402 accepts[] response. 8 routes on this shard (competitive heroes default; ?full=1 for all). Full catalog: GET https://gedx402.com/v1/models Start here: POST /v1/asr/flux","x-service":{"serviceName":"GEDX402 Media","tags":["vision","audio","tts","asr","usdc"],"iconUrl":"https://media.gedx402.com/favicon.svg"},"x-hub":"https://gedx402.com","x-payments":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"x-openapi-scope":"competitive","full_catalog":"https://media.gedx402.com/openapi.json?full=1"},"servers":[{"url":"https://media.gedx402.com"}],"paths":{"/v1/asr/flux":{"get":{"operationId":"asr_flux","summary":"Flux Speech-to-Text","description":"Conversational speech recognition with Flux (@cf/deepgram/flux) for voice agents and CDP Bazaar discovery. WebSocket-only on media.gedx402.com: GET with Upgrade, encoding=linear16, and sample_rate (Hz); stream PCM and receive turn events. Agent recipe: GET /v1/asr/flux → POST /v1/asr/smart-turn-v2 → POST /v1/chat/fast → POST /v1/tts/aura-2-en. Discover bundle: GET /v1/models?bundle=voice. Billed by audio duration. Deprecated wildcard — see GET https://gedx402.com/v1/models?bundle=winners for hero routes.","tags":["Audio"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.011625","max":"0.098250"}},"responses":{"200":{"description":"WebSocket upgrade — Flux ASR turn events","content":{"application/json":{"schema":{"type":"object"},"example":{"type":"TurnInfo","event":"SpeechStarted","transcript":"Hello"}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"deprecated":true,"parameters":[{"name":"encoding","in":"query","required":true,"schema":{"type":"string","enum":["linear16"],"description":"PCM encoding (linear16 only)."},"example":"linear16"},{"name":"sample_rate","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","description":"Audio sample rate in Hz (e.g. 16000)."},"example":"16000"}],"servers":[{"url":"https://media.gedx402.com"}],"x-resource-url":"https://media.gedx402.com/v1/asr/flux"}},"/v1/voice/sessions":{"post":{"operationId":"voice_sessions","summary":"Gedx402 Voice Session Inference","description":"Voice agent session on media.gedx402.com: one x402 payment prepays Flux WebSocket streaming plus smart-turn, chat/fast and TTS credits. POST optional budget {duration_minutes, max_turns}; returns session_id, session_token, routes and credits. USDC per request (see npm run pricing:report) wire settlement (budget caps apply). Send session_token on bundle routes (X-Voice-Session-Token header, flux WS query param, or body); no 402 until credits run out.","tags":["Voice"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"1.506750","max":"28.602725"}},"responses":{"200":{"description":"Inference result","content":{"application/json":{"schema":{"type":"object"},"example":{"session_id":"550e8400-e29b-41d4-a716-446655440000","session_token":"abc123…","credits":{"flux_seconds_remaining":300,"smart_turns_remaining":30,"chat_turns_remaining":30,"tts_remaining":30},"routes":{"flux":"/v1/asr/flux","smart_turn":"/v1/asr/smart-turn-v2","chat_fast":"https://chat.gedx402.com/v1/chat/fast","tts":"/v1/tts/aura-2-en"}}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budget":{"type":"object","description":"Prepaid voice loop credits included in the single x402 payment.","properties":{"duration_minutes":{"type":"integer","minimum":1,"maximum":60,"description":"Flux WebSocket streaming budget in minutes."},"max_turns":{"type":"integer","minimum":1,"maximum":360,"description":"Smart-turn + chat/fast + TTS credits per loop iteration."}}}}},"example":{"budget":{"duration_minutes":5,"max_turns":30}}}}},"servers":[{"url":"https://media.gedx402.com"}],"x-resource-url":"https://media.gedx402.com/v1/voice/sessions"}},"/v1/asr/smart-turn-v2":{"post":{"operationId":"asr_smart-turn-v2","summary":"Smart Turn V2 Speech-to-Text","description":"End-of-turn detection with Smart Turn V2 (@cf/pipecat-ai/smart-turn-v2) for voice agents. POST base64 audio chunk; returns whether the speaker finished their turn. Use alongside WebSocket GET /v1/asr/flux for streaming ASR and POST /v1/tts/aura-1 or /v1/tts/aura-2-en for replies. Bundle: GET /v1/models?bundle=voice. Deprecated wildcard — see GET https://gedx402.com/v1/models?bundle=winners for hero routes.","tags":["Audio"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002440","max":"0.006263"}},"responses":{"200":{"description":"Inference result","content":{"application/json":{"schema":{"type":"object"},"example":{"text":"Transcribed speech."}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"deprecated":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"audio":{"type":"string","description":"Base64-encoded audio (WAV, MP3, etc.)."}},"required":["audio"]},"example":{"audio":"<base64>"}}}},"servers":[{"url":"https://media.gedx402.com"}],"x-resource-url":"https://media.gedx402.com/v1/asr/smart-turn-v2"}},"/v1/speech/transcribe":{"post":{"operationId":"speech_transcribe","summary":"Speech-to-Text","description":"Transcribe speech to text with Whisper (@cf/openai/whisper). POST base64 audio; returns transcript text billed by audio duration.","tags":["Audio"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.006000","max":"0.007665"}},"responses":{"200":{"description":"Inference result","content":{"application/json":{"schema":{"type":"object"},"example":{"text":"Transcribed speech."}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"audio":{"type":"string","description":"Base64-encoded audio (WAV, MP3, etc.)."}},"required":["audio"]},"example":{"audio":"<base64>"}}}},"servers":[{"url":"https://media.gedx402.com"}],"x-resource-url":"https://media.gedx402.com/v1/speech/transcribe"}},"/v1/tts/aura-1":{"post":{"operationId":"tts_aura-1","summary":"Aura 1 Text-to-Speech","description":"Synthesize speech from text with Aura 1 (@cf/deepgram/aura-1). POST text; returns audio bytes billed by character count. Voice-agent output leg — pair with GET /v1/asr/flux and POST /v1/asr/smart-turn-v2. Bundle: GET /v1/models?bundle=voice. Deprecated wildcard — see GET https://gedx402.com/v1/models?bundle=winners for hero routes.","tags":["Audio"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.020755","max":"0.152013"}},"responses":{"200":{"description":"Inference result","content":{"application/json":{"schema":{"type":"object"},"example":{"audio":"<base64>","content_type":"audio/mpeg"}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"deprecated":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Text to synthesize into speech."},"speaker":{"type":"string","enum":["angus","asteria","arcas","orion","orpheus","athena","luna","zeus","perseus","helios","hera","stella"],"description":"Voice used to produce the audio."}},"required":["text"]},"example":{"text":"Hello from GEDX402.","speaker":"angus"}}}},"servers":[{"url":"https://media.gedx402.com"}],"x-resource-url":"https://media.gedx402.com/v1/tts/aura-1"}},"/v1/tts/aura-2-en":{"post":{"operationId":"tts_aura-2-en","summary":"Aura 2 EN Text-to-Speech","description":"English speech synthesis with Aura 2 EN (@cf/deepgram/aura-2-en). POST text; returns audio bytes billed by character count. Recommended TTS for English voice agents after POST /v1/chat/fast. Bundle: GET /v1/models?bundle=voice. Deprecated wildcard — see GET https://gedx402.com/v1/models?bundle=winners for hero routes.","tags":["Audio"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.039510","max":"0.302025"}},"responses":{"200":{"description":"Inference result","content":{"application/json":{"schema":{"type":"object"},"example":{"audio":"<base64>","content_type":"audio/mpeg"}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"deprecated":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Text to synthesize into speech."},"speaker":{"type":"string","enum":["luna","amalthea","andromeda","apollo","arcas","aries","asteria","athena","atlas","aurora","callista","cora","cordelia","delia","draco","electra","harmonia","helena","hera","hermes","hyperion","iris","janus","juno","jupiter","mars","minerva","neptune","odysseus","ophelia","orion","orpheus","pandora","phoebe","pluto","saturn","thalia","theia","vesta","zeus"],"description":"Voice used to produce the audio."}},"required":["text"]},"example":{"text":"Hello from GEDX402.","speaker":"luna"}}}},"servers":[{"url":"https://media.gedx402.com"}],"x-resource-url":"https://media.gedx402.com/v1/tts/aura-2-en"}},"/v1/vision/describe":{"post":{"operationId":"vision_describe","summary":"Image Description","description":"Describe or answer questions about an image with Llama 3.2 11B Vision Instruct (@cf/meta/llama-3.2-11b-vision-instruct). POST image (base64) plus optional prompt; multimodal pricing includes image and text neurons.","tags":["Vision"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.025000","max":"0.025000"}},"responses":{"200":{"description":"Inference result","content":{"application/json":{"schema":{"type":"object"},"example":{"description":"A sunset over mountains."}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string","description":"Base64-encoded image for multimodal input."},"prompt":{"type":"string","description":"Optional question or instruction about the image."},"max_tokens":{"type":"integer","description":"Maximum tokens in the vision model response."}},"required":["image"]},"example":{"image":"<base64>","prompt":"Describe this image.","max_tokens":256}}}},"servers":[{"url":"https://media.gedx402.com"}],"x-resource-url":"https://media.gedx402.com/v1/vision/describe"}},"/v1/guard":{"post":{"operationId":"guard","summary":"Safety Guard","description":"Safety moderation with Llama Guard 3 8B (@cf/meta/llama-guard-3-8b). Routes to Llama Guard 3; POST messages[] to classify prompt/response policy violations before downstream LLM calls.","tags":["Safety"],"security":[{"x402":[]}],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.010000","max":"0.041683"}},"responses":{"200":{"description":"Inference result","content":{"application/json":{"schema":{"type":"object"},"example":{"safe":true,"categories":[]}}}},"400":{"description":"Invalid or over-limit payload"},"402":{"description":"Payment required (x402 v2 USDC on Base). Unpaid 402 includes PAYMENT-REQUIRED. After a rejected PAYMENT-SIGNATURE the JSON body is { reason_code, detail, next_step }.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired with accepts[] per network","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"Conversation turns in order (system, user, assistant).","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"],"description":"Speaker role for this turn."},"content":{"type":"string","description":"Message text for this turn."}},"required":["role","content"]}},"max_tokens":{"type":"integer","description":"Maximum tokens for the moderation response."}},"required":["messages"]},"example":{"messages":[{"role":"user","content":"Is this safe?"}],"max_tokens":64}}}},"servers":[{"url":"https://media.gedx402.com"}],"x-resource-url":"https://media.gedx402.com/v1/guard"}},"/v1/models":{"get":{"operationId":"models","summary":"Shard route catalog","description":"Free catalog for this shard with pricing and descriptions.","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Catalog JSON"}}}},"/v1/demo":{"get":{"operationId":"demo_index","summary":"Response shape previews","description":"Free cached JSON examples (not charged).","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Demo index"}}}},"/v1/health":{"get":{"operationId":"health","summary":"Service health","tags":["Catalog"],"security":[],"responses":{"200":{"description":"Health JSON"}}}}},"x-agentcash-guidance":{"llmsTxtUrl":"https://media.gedx402.com/llms.txt"},"x-agentcash-provenance":{"ownershipProofs":["0xb3C2776cE3F99cb3366520c27b4aC5D436942Ab6"]},"x-discovery":{"ownershipProofs":["0xb3C2776cE3F99cb3366520c27b4aC5D436942Ab6"]},"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"x402 v2. First POST without this header returns 402 + PAYMENT-REQUIRED. Sign the Base accept (eip155:8453) with @x402/fetch and retry once. After a rejected signature the 402 body is { reason_code, detail, next_step }."}}}}