{"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":"jvalamis@gmail.com","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. 4 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","multi-chain"],"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/voice/sessions":{"post":{"operationId":"voice_sessions","summary":"Gedx402 Voice Session Inference","description":"Single-hop voice agent session on media.gedx402.com — one x402 payment prepays Flux WebSocket streaming plus smart-turn, chat/fast, and TTS loop 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 (header X-Voice-Session-Token, query param on flux WS, or body) — no 402 until credits exhausted. Bundle hero: GET /v1/models?bundle=voice.","tags":["Voice"],"security":[],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"1.494375","max":"28.110425"}},"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)","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/speech/transcribe":{"post":{"operationId":"speech_transcribe","summary":"Speech-to-Text","description":"Transcribe speech to text with Whisper (@cf/openai/whisper). POST audio (base64) or audio URL; returns transcript text billed by audio duration.","tags":["Audio"],"security":[],"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)","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/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":[],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.332880","max":"0.883732"}},"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)","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":[],"x-payment-info":{"protocols":[{"x402":{"network":"eip155:8453","asset":"USDC","label":"Base"}}],"price":{"mode":"dynamic","currency":"USD","min":"0.010000","max":"0.010000"}},"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)","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","9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"]},"x-discovery":{"ownershipProofs":["0xb3C2776cE3F99cb3366520c27b4aC5D436942Ab6","9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"]}}