{"openapi":"3.1.0","info":{"title":"x402engine API","version":"3.0.0","description":"Pay-per-call API gateway for AI agents using HTTP 402 payments.","contact":{"email":"moltbotxd@proton.me"},"x-guidance":"Discover models and tools at /.well-known/x402.json. Call POST chat routes with messages and an output token budget; use each /quote route for the exact prepaid price. Bare unpaid probes return a discovery-only 402 with the catalog starting price. Submit valid inputs to obtain a request-specific payment challenge, then pay with x402 using USDC on Base or Solana, or USDm on MegaETH. No subscription or provider API key is required."},"servers":[{"url":"https://x402engine.app"}],"paths":{"/api/media/jobs":{"get":{"summary":"Check an accepted video job without another payment","description":"Use the private status_url from the paid 202 response. Poll every 5 seconds; tickets expire after 24 hours.","security":[],"parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Job status: queued, processing, or completed. Completed jobs include video.url."},"404":{"description":"Invalid or expired job ticket"},"503":{"description":"Result temporarily unavailable; retain the same job ticket"}}}},"/health":{"get":{"summary":"Check x402engine service health","tags":["discovery"],"responses":{"200":{"description":"Service is healthy"}},"security":[]}},"/.well-known/x402.json":{"get":{"summary":"Fetch x402 service discovery catalog","tags":["discovery"],"responses":{"200":{"description":"Machine-readable x402 service catalog"}},"security":[]}},"/.well-known/x402":{"get":{"summary":"Fetch x402 service discovery alias","tags":["discovery"],"responses":{"200":{"description":"Machine-readable x402 service catalog"}},"security":[]}},"/api/services":{"get":{"summary":"List available x402engine services","tags":["discovery"],"responses":{"200":{"description":"Available x402engine services"}},"security":[]}},"/api/image/fast":{"post":{"summary":"Run Fast Image Generation via image-fast API","description":"Quick image generation using FLUX Schnell (~2s, good for drafts)","tags":["compute"],"x-service-id":"image-fast","x-price":"$0.015","x-payment-options":[{"scheme":"exact","price":"$0.015","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"15000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.015","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"15000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.015","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"15000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.015"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description of image to generate","example":"a red sports car"},"width":{"type":"number","description":"Image width in pixels (256-2048)","default":1024,"example":1024},"height":{"type":"number","description":"Image height in pixels (256-2048)","default":1024,"example":1024},"seed":{"type":"number","description":"Random seed for reproducibility","example":42}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/image/quality":{"post":{"summary":"Run Quality Image Generation via image-quality API","description":"High-quality image generation using FLUX.2 Pro (~5s, production-ready)","tags":["compute"],"x-service-id":"image-quality","x-price":"$0.05","x-payment-options":[{"scheme":"exact","price":"$0.05","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"50000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.05","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"50000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.05","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"50000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.05"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description of image to generate","example":"a sunset over mountains"},"width":{"type":"number","description":"Image width in pixels (256-2048)","default":1024,"example":1024},"height":{"type":"number","description":"Image height in pixels (256-2048)","default":1024,"example":1024},"seed":{"type":"number","description":"Random seed for reproducibility","example":42}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/image/text":{"post":{"summary":"Run Text-in-Image Generation via image-text API","description":"Image generation with accurate text rendering using Ideogram v3 (best for logos, signage)","tags":["compute"],"x-service-id":"image-text","x-price":"$0.12","x-payment-options":[{"scheme":"exact","price":"$0.12","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"120000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.12","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"120000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.12","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"120000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.12"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description including text to render","example":"a logo with the text \"ACME\""},"image_size":{"type":"string","description":"Output size","default":"square","example":"square"}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/image/face-swap":{"post":{"summary":"Run Face Swap via face-swap API","description":"Identity-preserving face swap using FLUX PuLID for portraits, product shots, and stylized edits","tags":["compute"],"x-service-id":"face-swap","x-price":"$0.08","x-payment-options":[{"scheme":"exact","price":"$0.08","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"80000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.08","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"80000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.08","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"80000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.08"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the final image after the face swap","example":"a studio portrait with natural skin tones and soft cinematic lighting"},"reference_image_url":{"type":"string","description":"Public image URL containing the source face to preserve","example":"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=1024"},"width":{"type":"number","description":"Image width in pixels (256-2048)","default":1024,"example":1024},"height":{"type":"number","description":"Image height in pixels (256-2048)","default":1024,"example":1024},"seed":{"type":"number","description":"Random seed for reproducibility","example":7},"negative_prompt":{"type":"string","description":"What to avoid in the final image","example":"blur, warped eyes, extra fingers"},"guidance_scale":{"type":"number","description":"Prompt guidance strength","example":4},"id_weight":{"type":"number","description":"How strongly to preserve identity from the reference face","example":1.2}},"required":["prompt","reference_image_url"],"additionalProperties":false}}}}}},"/api/image/nano-banana":{"post":{"summary":"Run Nano Banana 2 Image Generation via image-nano-banana API","description":"Google's fast, high-quality image generation with aspect ratio control and optional web search","tags":["compute"],"x-service-id":"image-nano-banana","x-price":"$0.10","x-payment-options":[{"scheme":"exact","price":"$0.10","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"100000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.10","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"100000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.10","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"100000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.10"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description of image to generate (up to 50,000 chars)","example":"a cyberpunk cityscape at sunset with neon signs"},"aspect_ratio":{"type":"string","description":"Output aspect ratio (auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16)","default":"1:1","example":"16:9"},"output_format":{"type":"string","description":"Image format: png, jpeg, or webp","default":"png","example":"png"},"seed":{"type":"number","description":"Random seed for reproducibility","example":42}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/video/fast":{"post":{"summary":"Run Fast Video Generation via video-fast API","description":"Generate a 5-second video with Kling V3 Standard in landscape, portrait, or square format","tags":["compute"],"x-service-id":"video-fast","x-price":"$0.55","x-payment-options":[{"scheme":"exact","price":"$0.55","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"550000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.55","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"550000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.55","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"550000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.55"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the scene, motion, and camera direction","example":"A cinematic drone shot rising over a misty mountain valley at sunrise"},"duration":{"type":"string","description":"Fixed video duration","default":"5","example":"5"},"aspect_ratio":{"type":"string","description":"Output aspect ratio: 16:9, 9:16, or 1:1","default":"16:9","example":"16:9"},"negative_prompt":{"type":"string","description":"Visual qualities or artifacts to avoid","example":"blur, distortion, low quality"},"generate_audio":{"type":"boolean","description":"Audio generation is fixed off for deterministic per-call pricing","default":false,"example":false}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/video/quality":{"post":{"summary":"Run Quality Video Generation via video-quality API","description":"Generate a production-quality 5-second video with Kling V3 Pro","tags":["compute"],"x-service-id":"video-quality","x-price":"$0.70","x-payment-options":[{"scheme":"exact","price":"$0.70","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"700000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.70","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"700000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.70","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"700000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.70"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the scene, motion, and camera direction","example":"Close-up of glowing fireflies moving through a forest at twilight, shallow depth of field"},"duration":{"type":"string","description":"Fixed video duration","default":"5","example":"5"},"aspect_ratio":{"type":"string","description":"Output aspect ratio: 16:9, 9:16, or 1:1","default":"16:9","example":"16:9"},"negative_prompt":{"type":"string","description":"Visual qualities or artifacts to avoid","example":"blur, distortion, low quality"},"generate_audio":{"type":"boolean","description":"Audio generation is fixed off for deterministic per-call pricing","default":false,"example":false}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/video/hailuo":{"post":{"summary":"Run Hailuo Video Generation via video-hailuo API","description":"Generate a cinematic 1080p video with MiniMax Hailuo 2.3 Pro","tags":["compute"],"x-service-id":"video-hailuo","x-price":"$0.65","x-payment-options":[{"scheme":"exact","price":"$0.65","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"650000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.65","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"650000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.65","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"650000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.65"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Detailed video prompt including subject motion and camera direction","example":"A snowboarder carving through deep powder while the camera follows from behind"}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/video/animate":{"post":{"summary":"Run Image to Video Animation via video-animate API","description":"Animate a public image into a 5-second video with Kling V3 Pro","tags":["compute"],"x-service-id":"video-animate","x-price":"$0.70","x-payment-options":[{"scheme":"exact","price":"$0.70","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"700000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.70","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"700000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.70","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"700000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.70"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"Describe the motion and camera direction to apply to the image","example":"Slow cinematic push-in while warm light moves across the scene"},"image_url":{"type":"string","description":"Public HTTP or HTTPS image URL to use as the first frame","example":"https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?w=1280"},"duration":{"type":"string","description":"Fixed video duration","default":"5","example":"5"},"negative_prompt":{"type":"string","description":"Visual qualities or artifacts to avoid","example":"blur, distortion, low quality"},"generate_audio":{"type":"boolean","description":"Audio generation is fixed off for deterministic per-call pricing","default":false,"example":false}},"required":["prompt","image_url"],"additionalProperties":false}}}}}},"/api/code/run":{"post":{"summary":"Run Code Execution via code-run API","description":"Run code in isolated sandbox — Python, JavaScript, Bash, R (up to 5 min)","tags":["compute"],"x-service-id":"code-run","x-price":"$0.005","x-payment-options":[{"scheme":"exact","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"5000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.005","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"5000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.005","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"5000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Code to execute","example":"print(\"hello\")"},"language":{"type":"string","description":"Programming language (python, javascript, bash, r)","default":"python","example":"python"},"timeout":{"type":"number","description":"Execution timeout in seconds (1-300)","default":60,"example":60}},"required":["code"],"additionalProperties":false}}}}}},"/api/transcribe":{"post":{"summary":"Run Audio Transcription via transcribe API","description":"Convert audio to text with speaker identification — covers up to 10 minutes of audio","tags":["compute"],"x-service-id":"transcribe","x-price":"$0.10","x-payment-options":[{"scheme":"exact","price":"$0.10","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"100000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.10","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"100000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.10","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"100000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.10"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"audio_url":{"type":"string","description":"URL of audio file to transcribe (provide audio_url OR audio_base64, not both)","example":"https://example.com/audio.mp3"},"audio_base64":{"type":"string","description":"Base64-encoded audio data with MIME type prefix (provide audio_url OR audio_base64, not both)","example":"data:audio/mp3;base64,SGVsbG8="},"audio_mimetype":{"type":"string","description":"MIME type when using audio_base64 (e.g. audio/mp3, audio/wav)","example":"audio/mp3"}},"anyOf":[{"required":["audio_url"]},{"required":["audio_base64"]}],"additionalProperties":false}}}}}},"/api/crypto/price":{"get":{"summary":"Fetch Crypto Price Feed via crypto-price API","description":"Real-time cryptocurrency prices for any coin in any fiat currency","tags":["crypto"],"x-service-id":"crypto-price","x-price":"$0.001","x-payment-options":[{"scheme":"exact","price":"$0.001","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.001","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.001","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"ids","in":"query","required":true,"description":"Comma-separated coin IDs (e.g. bitcoin,ethereum)","schema":{"type":"string","description":"Comma-separated coin IDs (e.g. bitcoin,ethereum)","example":"bitcoin,ethereum"},"example":"bitcoin,ethereum"},{"name":"currencies","in":"query","required":false,"description":"Comma-separated fiat currencies","schema":{"type":"string","description":"Comma-separated fiat currencies","default":"usd","example":"usd,eur"},"example":"usd,eur"},{"name":"include_24h_change","in":"query","required":false,"description":"Include 24h price change","schema":{"type":"boolean","description":"Include 24h price change","default":true}},{"name":"include_market_cap","in":"query","required":false,"description":"Include market cap","schema":{"type":"boolean","description":"Include market cap","default":false}}]}},"/api/crypto/markets":{"get":{"summary":"Fetch Crypto Market Data via crypto-markets API","description":"Market rankings with price, volume, market cap — filterable by category","tags":["crypto"],"x-service-id":"crypto-markets","x-price":"$0.002","x-payment-options":[{"scheme":"exact","price":"$0.002","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"currency","in":"query","required":false,"description":"Fiat currency for pricing","schema":{"type":"string","description":"Fiat currency for pricing","default":"usd","example":"usd"},"example":"usd"},{"name":"category","in":"query","required":false,"description":"Filter by category ID","schema":{"type":"string","description":"Filter by category ID","example":"decentralized-finance-defi"},"example":"decentralized-finance-defi"},{"name":"order","in":"query","required":false,"description":"Sort order","schema":{"type":"string","description":"Sort order","default":"market_cap_desc","example":"market_cap_desc"},"example":"market_cap_desc"},{"name":"limit","in":"query","required":false,"description":"Number of results (1-250)","schema":{"type":"number","description":"Number of results (1-250)","default":100,"example":100},"example":100},{"name":"page","in":"query","required":false,"description":"Page number (1-500)","schema":{"type":"number","description":"Page number (1-500)","default":1,"example":1},"example":1}]}},"/api/crypto/history":{"get":{"summary":"Fetch Crypto Historical Data via crypto-history API","description":"Historical price, market cap, and volume data for any coin","tags":["crypto"],"x-service-id":"crypto-history","x-price":"$0.003","x-payment-options":[{"scheme":"exact","price":"$0.003","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"id","in":"query","required":true,"description":"Coin ID","schema":{"type":"string","description":"Coin ID","example":"bitcoin"},"example":"bitcoin"},{"name":"currency","in":"query","required":false,"description":"Fiat currency","schema":{"type":"string","description":"Fiat currency","default":"usd","example":"usd"},"example":"usd"},{"name":"days","in":"query","required":false,"description":"Days of history (1-365 or \"max\")","schema":{"type":"string","description":"Days of history (1-365 or \"max\")","default":"30","example":"30"},"example":"30"},{"name":"interval","in":"query","required":false,"description":"Data interval (daily)","schema":{"type":"string","description":"Data interval (daily)","example":"daily"},"example":"daily"}]}},"/api/crypto/trending":{"get":{"summary":"Fetch Trending Crypto via crypto-trending API","description":"Currently trending coins on CoinGecko","tags":["crypto"],"x-service-id":"crypto-trending","x-price":"$0.001","x-payment-options":[{"scheme":"exact","price":"$0.001","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.001","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.001","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}}}},"/api/crypto/search":{"get":{"summary":"Fetch Crypto Search via crypto-search API","description":"Search for a coin by name or symbol to get its CoinGecko ID","tags":["crypto"],"x-service-id":"crypto-search","x-price":"$0.001","x-payment-options":[{"scheme":"exact","price":"$0.001","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.001","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.001","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"q","in":"query","required":true,"description":"Search query (coin name or symbol)","schema":{"type":"string","description":"Search query (coin name or symbol)","example":"bitcoin"},"example":"bitcoin"}]}},"/api/wallet/balances":{"post":{"summary":"Run Wallet Balances via wallet-balances API","description":"Token balances for any wallet across 20+ chains — EVM, Solana, Bitcoin","tags":["crypto"],"x-service-id":"wallet-balances","x-price":"$0.005","x-payment-options":[{"scheme":"exact","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"5000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.005","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"5000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.005","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"5000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","description":"Chain name (ethereum, polygon, base, arbitrum, etc.)","example":"ethereum"},"address":{"type":"string","description":"Wallet address","example":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}},"required":["chain","address"],"additionalProperties":false}}}}}},"/api/wallet/transactions":{"post":{"summary":"Run Wallet Transactions via wallet-transactions API","description":"Transaction history with asset transfers and labels for any wallet","tags":["crypto"],"x-service-id":"wallet-transactions","x-price":"$0.005","x-payment-options":[{"scheme":"exact","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"5000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.005","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"5000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.005","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"5000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"Wallet address","example":"0x..."},"chain":{"type":"string","description":"Chain name","example":"ethereum"},"limit":{"type":"number","description":"Max results","default":100,"example":100}},"required":["address"],"additionalProperties":false}}}}}},"/api/wallet/pnl":{"post":{"summary":"Run Wallet PnL via wallet-pnl API","description":"Realized and unrealized profit & loss per token for any wallet","tags":["crypto"],"x-service-id":"wallet-pnl","x-price":"$0.01","x-payment-options":[{"scheme":"exact","price":"$0.01","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.01","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"10000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.01","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","description":"Chain name (ethereum, polygon, base, arbitrum, etc.)","example":"ethereum"},"address":{"type":"string","description":"Wallet address","example":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}},"required":["chain","address"],"additionalProperties":false}}}}}},"/api/token/prices":{"post":{"summary":"Run Token Prices via token-prices API","description":"Real-time DEX-derived token prices with OHLC data — up to 200 tokens per request","tags":["crypto"],"x-service-id":"token-prices","x-price":"$0.005","x-payment-options":[{"scheme":"exact","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"5000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.005","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"5000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.005","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"5000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","description":"Array of token objects with chain and token_address","example":[{"chain":"ethereum","token_address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}],"items":{"type":"object","properties":{"chain":{"type":"string","example":"ethereum"},"token_address":{"type":"string","example":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},"required":["chain","token_address"],"additionalProperties":false},"minItems":1}},"required":["tokens"],"additionalProperties":false}}}}}},"/api/token/metadata":{"get":{"summary":"Fetch Token Metadata via token-metadata API","description":"Token/asset metadata — name, symbol, decimals, chain info","tags":["crypto"],"x-service-id":"token-metadata","x-price":"$0.002","x-payment-options":[{"scheme":"exact","price":"$0.002","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"chain","in":"query","required":true,"description":"Chain name","schema":{"type":"string","description":"Chain name","example":"ethereum"},"example":"ethereum"},{"name":"address","in":"query","required":true,"description":"Token contract address","schema":{"type":"string","description":"Token contract address","example":"0xdac17f958d2ee523a2206206994597c13d831ec7"},"example":"0xdac17f958d2ee523a2206206994597c13d831ec7"}]}},"/api/ipfs/pin":{"post":{"summary":"Run IPFS Pin via ipfs-pin API","description":"Pin JSON, files, or URLs to IPFS for decentralized storage","tags":["storage"],"x-service-id":"ipfs-pin","x-price":"$0.01","x-payment-options":[{"scheme":"exact","price":"$0.01","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.01","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"10000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.01","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"json":{"type":"object","description":"JSON object to pin (provide json OR url, not both)","example":{"hello":"world"}},"url":{"type":"string","description":"URL of file to pin (provide json OR url, not both)","example":"https://example.com/file.jpg"},"name":{"type":"string","description":"Base64-encoded file","example":"data:image/png;base64,..."}},"additionalProperties":false}}}}}},"/api/ipfs/get":{"get":{"summary":"Fetch IPFS Retrieve via ipfs-get API","description":"Fetch a file from IPFS by CID via gateway","tags":["storage"],"x-service-id":"ipfs-get","x-price":"$0.001","x-payment-options":[{"scheme":"exact","price":"$0.001","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.001","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.001","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"cid","in":"query","required":true,"description":"IPFS CID","schema":{"type":"string","description":"IPFS CID","example":"QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG"},"example":"QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG"}]}},"/api/llm/gpt-4o/quote":{"post":{"summary":"Quote GPT-4o without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-4o":{"post":{"summary":"Run GPT-4o via llm-gpt-4o API","description":"OpenAI's flagship multimodal model — strong all-around for text, vision, and reasoning","tags":["compute"],"x-service-id":"llm-gpt-4o","x-price":"$0.018586","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-4o/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000025","completion":"0.00001","input_cache_read":"0.00000125"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","logit_bias","logprobs","max_completion_tokens","max_tokens","prediction","presence_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_logprobs","top_p","web_search_options"],"contextWindow":128000,"maxOutputTokens":16384,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.018586","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"18586","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.018586","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"18586000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.018586","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"18586","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.018586"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-4o","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-4o-mini/quote":{"post":{"summary":"Quote GPT-4o Mini without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-4o-mini":{"post":{"summary":"Run GPT-4o Mini via llm-gpt-4o-mini API","description":"Fast, affordable GPT-4o variant — great for simple tasks and high-volume use","tags":["compute"],"x-service-id":"llm-gpt-4o-mini","x-price":"$0.002458","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-4o-mini/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000015","completion":"0.0000006","input_cache_read":"0.000000075"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","logit_bias","logprobs","max_completion_tokens","max_tokens","prediction","presence_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_logprobs","top_p","web_search_options"],"contextWindow":128000,"maxOutputTokens":16384,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.002458","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2458","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002458","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2458000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002458","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2458","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002458"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-4o-mini","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/o1/quote":{"post":{"summary":"Quote OpenAI o1 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/o1":{"post":{"summary":"Run OpenAI o1 via llm-o1 API","description":"OpenAI's reasoning model — excels at math, science, coding, and multi-step problem solving","tags":["compute"],"x-service-id":"llm-o1","x-price":"$0.104370","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/o1/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000015","completion":"0.00006","web_search":"0.01","input_cache_read":"0.0000075"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":200000,"maxOutputTokens":100000,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.104370","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"104370","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.104370","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"104370000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.104370","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"104370","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.104370"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/o1","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-opus/quote":{"post":{"summary":"Quote Claude Opus 4.6 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-opus":{"post":{"summary":"Run Claude Opus 4.6 via llm-claude-opus API","description":"Anthropic's most powerful model — best for complex analysis, coding, and extended thinking","tags":["compute"],"x-service-id":"llm-claude-opus","x-price":"$0.070034","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-opus/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000005","completion":"0.000025","web_search":"0.01","input_cache_read":"0.0000005","input_cache_write":"0.00000625","input_cache_write_1h":"0.00001"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":false,"supports_max_tokens":true,"supported_efforts":["max","high","medium","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.070034","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"70034","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.070034","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"70034000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.070034","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"70034","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.070034"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-opus-4.6","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-sonnet/quote":{"post":{"summary":"Quote Claude Sonnet 4.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-sonnet":{"post":{"summary":"Run Claude Sonnet 4.5 via llm-claude-sonnet API","description":"Anthropic's balanced model — excellent coding, reasoning, and creative writing","tags":["compute"],"x-service-id":"llm-claude-sonnet","x-price":"$0.083743","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-sonnet/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000003","completion":"0.000015","web_search":"0.01","input_cache_read":"0.0000003","input_cache_write":"0.00000375","input_cache_write_1h":"0.000006","overrides":[{"min_prompt_tokens":200000,"prompt":"0.000006","completion":"0.0000225","input_cache_read":"0.0000006","input_cache_write":"0.0000075","input_cache_write_1h":"0.000012"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","response_format","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":1000000,"maxOutputTokens":64000,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.083743","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"83743","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.083743","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"83743000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.083743","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"83743","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.083743"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-sonnet-4.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-haiku/quote":{"post":{"summary":"Quote Claude Haiku 4.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-haiku":{"post":{"summary":"Run Claude Haiku 4.5 via llm-claude-haiku API","description":"Anthropic's fastest model — affordable and quick for simple tasks and high throughput","tags":["compute"],"x-service-id":"llm-claude-haiku","x-price":"$0.015150","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-haiku/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000001","completion":"0.000005","web_search":"0.01","input_cache_read":"0.0000001","input_cache_write":"0.00000125","input_cache_write_1h":"0.000002"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","response_format","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":200000,"maxOutputTokens":64000,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.015150","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"15150","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.015150","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"15150000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.015150","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"15150","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.015150"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-haiku-4.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gemini-pro/quote":{"post":{"summary":"Quote Gemini 2.5 Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file","input_audio","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gemini-pro":{"post":{"summary":"Run Gemini 2.5 Pro via llm-gemini-pro API","description":"Google's most capable model — strong at reasoning, coding, and multimodal tasks","tags":["compute"],"x-service-id":"llm-gemini-pro","x-price":"$0.018594","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gemini-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000125","completion":"0.00001","image":"0.00000125","audio":"0.00000125","input_audio_cache":"0.000000125","web_search":"0.014","internal_reasoning":"0.00001","input_cache_read":"0.000000125","input_cache_write":"0.000000375","overrides":[{"min_prompt_tokens":200000,"prompt":"0.0000025","completion":"0.000015","audio":"0.0000025","input_audio_cache":"0.00000025","input_cache_read":"0.00000025"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file","audio","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":1048576,"maxOutputTokens":65536,"reasoning":{"mandatory":true}},"x-payment-options":[{"scheme":"exact","price":"$0.018594","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"18594","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.018594","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"18594000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.018594","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"18594","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.018594"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"google/gemini-2.5-pro","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file","input_audio","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gemini-flash/quote":{"post":{"summary":"Quote Gemini 2.5 Flash without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url","input_audio","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gemini-flash":{"post":{"summary":"Run Gemini 2.5 Flash via llm-gemini-flash API","description":"Google's fast model — great balance of speed, quality, and cost for everyday tasks","tags":["compute"],"x-service-id":"llm-gemini-flash","x-price":"$0.008290","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gemini-flash/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000003","completion":"0.0000025","image":"0.0000003","audio":"0.000001","input_audio_cache":"0.0000001","web_search":"0.014","internal_reasoning":"0.0000025","input_cache_read":"0.00000003","input_cache_write":"0.0000000833333333333333"}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text","audio","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":1048576,"maxOutputTokens":65535,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.008290","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"8290","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.008290","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"8290000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.008290","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"8290","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.008290"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"google/gemini-2.5-flash","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url","input_audio","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/deepseek/quote":{"post":{"summary":"Quote DeepSeek V3 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/deepseek":{"post":{"summary":"Run DeepSeek V3 via llm-deepseek API","description":"DeepSeek's flagship chat model — strong open-source reasoning and coding at low cost","tags":["compute"],"x-service-id":"llm-deepseek","x-price":"$0.003625","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/deepseek/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000032","completion":"0.00000089"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","logit_bias","max_tokens","min_p","presence_penalty","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":163840,"maxOutputTokens":16384,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.003625","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3625","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003625","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3625000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003625","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3625","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003625"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"deepseek/deepseek-chat","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/deepseek-r1/quote":{"post":{"summary":"Quote DeepSeek R1 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/deepseek-r1":{"post":{"summary":"Run DeepSeek R1 via llm-deepseek-r1 API","description":"DeepSeek's reasoning model — chain-of-thought reasoning competitive with o3 at fraction of cost","tags":["compute"],"x-service-id":"llm-deepseek-r1","x-price":"$0.006233","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/deepseek-r1/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000007","completion":"0.0000025"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","max_tokens","presence_penalty","reasoning","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":64000,"maxOutputTokens":16000,"reasoning":{"mandatory":true}},"x-payment-options":[{"scheme":"exact","price":"$0.006233","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"6233","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.006233","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"6233000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.006233","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"6233","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.006233"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"deepseek/deepseek-r1","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/llama/quote":{"post":{"summary":"Quote Llama 3.3 70B without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/llama":{"post":{"summary":"Run Llama 3.3 70B via llm-llama API","description":"Meta's open-source model — great general-purpose performance at very low cost","tags":["compute"],"x-service-id":"llm-llama","x-price":"$0.002115","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/llama/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000001","completion":"0.00000032"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","logit_bias","logprobs","max_tokens","min_p","presence_penalty","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":131072,"maxOutputTokens":16384,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.002115","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2115","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002115","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2115000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002115","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2115","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002115"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"meta-llama/llama-3.3-70b-instruct","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/grok/quote":{"post":{"summary":"Quote Grok 4.3 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/grok":{"post":{"summary":"Run Grok 4.3 via llm-grok API","description":"xAI's current Grok 4 route — strong reasoning and real-time knowledge","tags":["compute"],"x-service-id":"llm-grok","x-price":"$0.018578","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/grok/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000125","completion":"0.0000025","web_search":"0.005","input_cache_read":"0.0000002","overrides":[{"min_prompt_tokens":200000,"prompt":"0.0000025","completion":"0.000005","input_cache_read":"0.0000004"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","logprobs","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","temperature","tool_choice","tools","top_logprobs","top_p"],"contextWindow":1000000,"maxOutputTokens":900000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["high","medium","low","none"],"default_effort":"low"}},"x-payment-options":[{"scheme":"exact","price":"$0.018578","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"18578","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.018578","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"18578000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.018578","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"18578","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.018578"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"x-ai/grok-4.3","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/qwen/quote":{"post":{"summary":"Quote Qwen3 235B without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/qwen":{"post":{"summary":"Run Qwen3 235B via llm-qwen API","description":"Alibaba's flagship open model — excellent multilingual and coding capabilities","tags":["compute"],"x-service-id":"llm-qwen","x-price":"$0.003898","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/qwen/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000036","completion":"0.0000004"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","logit_bias","max_tokens","min_p","presence_penalty","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":32768,"maxOutputTokens":16384,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.003898","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3898","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003898","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3898000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003898","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3898","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003898"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"qwen/qwen-2.5-72b-instruct","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/mistral/quote":{"post":{"summary":"Quote Mistral Large 3 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/mistral":{"post":{"summary":"Run Mistral Large 3 via llm-mistral API","description":"Mistral's flagship model — strong European AI with great multilingual support","tags":["compute"],"x-service-id":"llm-mistral","x-price":"$0.015152","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/mistral/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000002","completion":"0.000006","input_cache_read":"0.0000002"}},"x-model-capabilities":{"available":true,"inputModalities":["text","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","max_tokens","presence_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":128000,"maxOutputTokens":102400,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.015152","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"15152","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.015152","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"15152000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.015152","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"15152","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.015152"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"mistralai/mistral-large","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/perplexity/quote":{"post":{"summary":"Quote Perplexity Sonar Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/perplexity":{"post":{"summary":"Run Perplexity Sonar Pro via llm-perplexity API","description":"Search-augmented LLM — answers grounded in real-time web search with citations","tags":["compute"],"x-service-id":"llm-perplexity","x-price":"$0.022022","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/perplexity/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000003","completion":"0.000015","web_search":"0.005"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","max_tokens","presence_penalty","temperature","top_k","top_p","web_search_options"],"contextWindow":200000,"maxOutputTokens":8000,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.022022","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"22022","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.022022","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"22022000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.022022","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"22022","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.022022"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"perplexity/sonar-pro","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.2/quote":{"post":{"summary":"Quote GPT-5.2 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.2":{"post":{"summary":"Run GPT-5.2 via llm-gpt-5.2 API","description":"OpenAI's latest flagship model — top-tier reasoning, coding, and multimodal capabilities","tags":["compute"],"x-service-id":"llm-gpt-5.2","x-price":"$0.013449","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.2/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000175","completion":"0.000014","web_search":"0.01","input_cache_read":"0.000000175"}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":400000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"supported_efforts":["xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.013449","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"13449","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.013449","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"13449000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.013449","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"13449","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.013449"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.2","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.2-codex/quote":{"post":{"summary":"Quote GPT-5.2 Codex without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.2-codex":{"post":{"summary":"Run GPT-5.2 Codex via llm-gpt-5.2-codex API","description":"OpenAI's code-specialized reasoning model — optimized for software engineering tasks","tags":["compute"],"x-service-id":"llm-gpt-5.2-codex","x-price":"$0.013449","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.2-codex/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000175","completion":"0.000014","web_search":"0.01","input_cache_read":"0.000000175"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":400000,"maxOutputTokens":128000,"reasoning":{"mandatory":true,"supported_efforts":["xhigh","high","medium","low"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.013449","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"13449","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.013449","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"13449000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.013449","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"13449","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.013449"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.2-codex","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/kimi/quote":{"post":{"summary":"Quote Kimi K2.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/kimi":{"post":{"summary":"Run Kimi K2.5 via llm-kimi API","description":"Moonshot AI's flagship model — strong reasoning and long-context capabilities","tags":["compute"],"x-service-id":"llm-kimi","x-price":"$0.004518","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/kimi/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000045","completion":"0.00000225","input_cache_read":"0.00000007"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":262144,"maxOutputTokens":235929,"reasoning":{"mandatory":false,"default_enabled":true}},"x-payment-options":[{"scheme":"exact","price":"$0.004518","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"4518","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.004518","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"4518000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.004518","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"4518","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004518"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"moonshotai/kimi-k2.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/minimax/quote":{"post":{"summary":"Quote MiniMax M2.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/minimax":{"post":{"summary":"Run MiniMax M2.5 via llm-minimax API","description":"MiniMax's efficient model — fast and affordable for everyday tasks","tags":["compute"],"x-service-id":"llm-minimax","x-price":"$0.003282","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/minimax/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000027","completion":"0.00000108","input_cache_read":"0.000000027"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":200000,"maxOutputTokens":128000,"reasoning":{"mandatory":true}},"x-payment-options":[{"scheme":"exact","price":"$0.003282","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3282","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003282","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3282000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003282","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3282","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003282"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"minimax/minimax-m2.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/glm/quote":{"post":{"summary":"Quote GLM-5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/glm":{"post":{"summary":"Run GLM-5 via llm-glm API","description":"Zhipu AI's flagship model — strong multilingual and reasoning performance","tags":["compute"],"x-service-id":"llm-glm","x-price":"$0.005546","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/glm/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000006","completion":"0.00000192","input_cache_read":"0.00000012"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":198000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true}},"x-payment-options":[{"scheme":"exact","price":"$0.005546","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"5546","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.005546","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"5546000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.005546","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"5546","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.005546"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"z-ai/glm-5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/grok-code/quote":{"post":{"summary":"Quote Grok Build 0.1 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/grok-code":{"post":{"summary":"Run Grok Build 0.1 via llm-grok-code API","description":"xAI's build-focused model — code generation, analysis, and agentic implementation work","tags":["compute"],"x-service-id":"llm-grok-code","x-price":"$0.015149","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/grok-code/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000001","completion":"0.000002","web_search":"0.005","input_cache_read":"0.0000002","overrides":[{"min_prompt_tokens":200000,"prompt":"0.000002","completion":"0.000004","input_cache_read":"0.0000004"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","logprobs","max_tokens","reasoning","response_format","seed","structured_outputs","temperature","tool_choice","tools","top_logprobs","top_p"],"contextWindow":256000,"maxOutputTokens":230400,"reasoning":{"mandatory":true}},"x-payment-options":[{"scheme":"exact","price":"$0.015149","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"15149","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.015149","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"15149000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.015149","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"15149","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.015149"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"x-ai/grok-build-0.1","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/seed/quote":{"post":{"summary":"Quote Seed 1.6 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/seed":{"post":{"summary":"Run Seed 1.6 via llm-seed API","description":"ByteDance's flagship model — competitive reasoning and generation at low cost","tags":["compute"],"x-service-id":"llm-seed","x-price":"$0.004863","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/seed/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000025","completion":"0.000002","overrides":[{"min_prompt_tokens":128000,"prompt":"0.0000005","completion":"0.000004"}]}},"x-model-capabilities":{"available":true,"inputModalities":["image","text","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","max_tokens","reasoning","response_format","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":262144,"maxOutputTokens":32768,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.004863","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"4863","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.004863","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"4863000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.004863","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"4863","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004863"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"bytedance-seed/seed-1.6","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/devstral/quote":{"post":{"summary":"Quote Devstral 2 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/devstral":{"post":{"summary":"Run Devstral 2 via llm-devstral API","description":"Mistral's code-focused model — optimized for software development and technical tasks","tags":["compute"],"x-service-id":"llm-devstral","x-price":"$0.004175","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/devstral/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000004","completion":"0.000002","input_cache_read":"0.00000004"}},"x-model-capabilities":{"available":true,"inputModalities":["text","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","max_tokens","presence_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":262144,"maxOutputTokens":209715,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.004175","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"4175","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.004175","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"4175000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.004175","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"4175","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004175"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"mistralai/devstral-2512","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/deepseek-v3.2/quote":{"post":{"summary":"Quote DeepSeek V3.2 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/deepseek-v3.2":{"post":{"summary":"Run DeepSeek V3.2 via llm-deepseek-v3.2 API","description":"DeepSeek's latest flagship model — improved reasoning and coding over V3 at same low cost","tags":["compute"],"x-service-id":"llm-deepseek-v3.2","x-price":"$0.003274","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/deepseek-v3.2/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000000269","completion":"0.0000004","input_cache_read":"0.0000001345"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":163840,"maxOutputTokens":65536,"reasoning":{"mandatory":false,"default_enabled":false}},"x-payment-options":[{"scheme":"exact","price":"$0.003274","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3274","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003274","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3274000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003274","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3274","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003274"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"deepseek/deepseek-v3.2","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gemini-3-pro/quote":{"post":{"summary":"Quote Gemini 3.1 Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","input_audio","file","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gemini-3-pro":{"post":{"summary":"Run Gemini 3.1 Pro via llm-gemini-3-pro API","description":"Google's Gemini 3.1 Pro Preview on the Gemini Pro compatibility route — advanced reasoning, coding, and multimodal understanding","tags":["compute"],"x-service-id":"llm-gemini-3-pro","x-price":"$0.028883","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gemini-3-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000002","completion":"0.000012","image":"0.000002","audio":"0.000002","input_audio_cache":"0.0000002","web_search":"0.014","internal_reasoning":"0.000012","input_cache_read":"0.0000002","input_cache_write":"0.000000375","overrides":[{"min_prompt_tokens":200000,"prompt":"0.000004","completion":"0.000018","audio":"0.000004","input_audio_cache":"0.0000004","input_cache_read":"0.0000004"}]}},"x-model-capabilities":{"available":true,"inputModalities":["audio","file","image","text","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","reasoning_effort","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":1048576,"maxOutputTokens":65536,"reasoning":{"mandatory":true,"supported_efforts":["high","medium","low"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.028883","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"28883","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.028883","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"28883000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.028883","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"28883","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.028883"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"google/gemini-3.1-pro-preview","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","input_audio","file","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gemini-3-flash/quote":{"post":{"summary":"Quote Gemini 3 Flash without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file","input_audio","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gemini-3-flash":{"post":{"summary":"Run Gemini 3 Flash via llm-gemini-3-flash API","description":"Google's next-gen flash model — fast and efficient for everyday tasks with improved quality","tags":["compute"],"x-service-id":"llm-gemini-3-flash","x-price":"$0.008290","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gemini-3-flash/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000005","completion":"0.000003","image":"0.0000005","audio":"0.000001","input_audio_cache":"0.0000001","web_search":"0.014","internal_reasoning":"0.000003","input_cache_read":"0.00000005","input_cache_write":"0.0000000833333333333333"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file","audio","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","reasoning_effort","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":1048576,"maxOutputTokens":65536,"reasoning":{"mandatory":false,"supported_efforts":["high","medium","low","minimal"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.008290","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"8290","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.008290","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"8290000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.008290","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"8290","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.008290"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"google/gemini-3-flash-preview","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file","input_audio","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-sonnet-4.6/quote":{"post":{"summary":"Quote Claude Sonnet 4.6 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-sonnet-4.6":{"post":{"summary":"Run Claude Sonnet 4.6 via llm-claude-sonnet-4.6 API","description":"Anthropic's latest balanced model — excellent coding, reasoning, and creative writing","tags":["compute"],"x-service-id":"llm-claude-sonnet-4.6","x-price":"$0.042592","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-sonnet-4.6/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000003","completion":"0.000015","web_search":"0.01","input_cache_read":"0.0000003","input_cache_write":"0.00000375","input_cache_write_1h":"0.000006"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"supported_efforts":["max","high","medium","low"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.042592","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"42592","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.042592","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"42592000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.042592","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"42592","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.042592"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-sonnet-4.6","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.2-pro/quote":{"post":{"summary":"Quote GPT-5.2 Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.2-pro":{"post":{"summary":"Run GPT-5.2 Pro via llm-gpt-5.2-pro API","description":"OpenAI's premium reasoning model — extended thinking for complex math, science, and coding problems","tags":["compute"],"x-service-id":"llm-gpt-5.2-pro","x-price":"$0.145674","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.2-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000021","completion":"0.000168","web_search":"0.01"}},"x-model-capabilities":{"available":true,"inputModalities":["image","text","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":400000,"maxOutputTokens":128000,"reasoning":{"mandatory":true,"supported_efforts":["xhigh","high","medium"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.145674","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"145674","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.145674","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"145674000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.145674","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"145674","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.145674"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.2-pro","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/qwen-coder/quote":{"post":{"summary":"Quote Qwen3 Coder without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/qwen-coder":{"post":{"summary":"Run Qwen3 Coder via llm-qwen-coder API","description":"Alibaba's code-specialized model — optimized for code generation, review, and technical tasks","tags":["compute"],"x-service-id":"llm-qwen-coder","x-price":"$0.002253","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/qwen-coder/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000012","completion":"0.0000008","input_cache_read":"0.00000007"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","logit_bias","logprobs","max_tokens","presence_penalty","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":262144,"maxOutputTokens":235929,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.002253","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2253","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002253","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2253000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002253","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2253","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002253"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"qwen/qwen3-coder-next","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.1/quote":{"post":{"summary":"Quote GPT-5.1 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.1":{"post":{"summary":"Run GPT-5.1 via llm-gpt-5.1 API","description":"OpenAI's efficient flagship model — strong all-around performance at lower cost than GPT-5.2","tags":["compute"],"x-service-id":"llm-gpt-5.1","x-price":"$0.010015","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.1/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000125","completion":"0.00001","web_search":"0.01","input_cache_read":"0.000000125"}},"x-model-capabilities":{"available":true,"inputModalities":["image","text","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":400000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["high","medium","low","none"],"default_effort":"none"}},"x-payment-options":[{"scheme":"exact","price":"$0.010015","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10015","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.010015","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"10015000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.010015","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10015","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.010015"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.1","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.4/quote":{"post":{"summary":"Quote GPT-5.4 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.4":{"post":{"summary":"Run GPT-5.4 via llm-gpt-5.4 API","description":"OpenAI's unified flagship model — 1M context, computer use, top-tier across all tasks","tags":["compute"],"x-service-id":"llm-gpt-5.4","x-price":"$0.035747","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.4/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000025","completion":"0.000015","web_search":"0.01","input_cache_read":"0.00000025","overrides":[{"min_prompt_tokens":272000,"prompt":"0.000005","completion":"0.0000225","input_cache_read":"0.0000005"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":false,"supported_efforts":["xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.035747","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"35747","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.035747","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"35747000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.035747","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"35747","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.035747"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.4","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.4-pro/quote":{"post":{"summary":"Quote GPT-5.4 Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.4-pro":{"post":{"summary":"Run GPT-5.4 Pro via llm-gpt-5.4-pro API","description":"OpenAI's max reasoning tier — extended thinking for complex analysis, math, and coding","tags":["compute"],"x-service-id":"llm-gpt-5.4-pro","x-price":"$0.413239","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.4-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00003","completion":"0.00018","web_search":"0.01","overrides":[{"min_prompt_tokens":272000,"prompt":"0.00006","completion":"0.00027"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":true,"supported_efforts":["xhigh","high","medium"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.413239","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"413239","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.413239","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"413239000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.413239","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"413239","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.413239"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.4-pro","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.3-codex/quote":{"post":{"summary":"Quote GPT-5.3 Codex without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.3-codex":{"post":{"summary":"Run GPT-5.3 Codex via llm-gpt-5.3-codex API","description":"OpenAI's SOTA agentic coding model — best-in-class for software engineering and code generation","tags":["compute"],"x-service-id":"llm-gpt-5.3-codex","x-price":"$0.013449","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.3-codex/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000175","completion":"0.000014","web_search":"0.01","input_cache_read":"0.000000175"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":400000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"supported_efforts":["xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.013449","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"13449","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.013449","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"13449000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.013449","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"13449","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.013449"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.3-codex","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-opus-4.5/quote":{"post":{"summary":"Quote Claude Opus 4.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-opus-4.5":{"post":{"summary":"Run Claude Opus 4.5 via llm-claude-opus-4.5 API","description":"Anthropic's previous-gen Opus — strong reasoning and creative writing, large context window","tags":["compute"],"x-service-id":"llm-claude-opus-4.5","x-price":"$0.070034","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-opus-4.5/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000005","completion":"0.000025","web_search":"0.01","input_cache_read":"0.0000005","input_cache_write":"0.00000625","input_cache_write_1h":"0.00001"}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","response_format","stop","structured_outputs","temperature","tool_choice","tools","top_k","verbosity"],"contextWindow":200000,"maxOutputTokens":64000,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.070034","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"70034","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.070034","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"70034000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.070034","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"70034","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.070034"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-opus-4.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gemini-3.1-pro/quote":{"post":{"summary":"Quote Gemini 3.1 Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","input_audio","file","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gemini-3.1-pro":{"post":{"summary":"Run Gemini 3.1 Pro via llm-gemini-3.1-pro API","description":"Google's latest flagship — advanced reasoning, coding, and multimodal with extended thinking","tags":["compute"],"x-service-id":"llm-gemini-3.1-pro","x-price":"$0.028883","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gemini-3.1-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000002","completion":"0.000012","image":"0.000002","audio":"0.000002","input_audio_cache":"0.0000002","web_search":"0.014","internal_reasoning":"0.000012","input_cache_read":"0.0000002","input_cache_write":"0.000000375","overrides":[{"min_prompt_tokens":200000,"prompt":"0.000004","completion":"0.000018","audio":"0.000004","input_audio_cache":"0.0000004","input_cache_read":"0.0000004"}]}},"x-model-capabilities":{"available":true,"inputModalities":["audio","file","image","text","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","reasoning_effort","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":1048576,"maxOutputTokens":65536,"reasoning":{"mandatory":true,"supported_efforts":["high","medium","low"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.028883","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"28883","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.028883","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"28883000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.028883","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"28883","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.028883"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"google/gemini-3.1-pro-preview","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","input_audio","file","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gemini-3.1-flash-lite/quote":{"post":{"summary":"Quote Gemini 3.1 Flash Lite without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","file","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gemini-3.1-flash-lite":{"post":{"summary":"Run Gemini 3.1 Flash Lite via llm-gemini-3.1-flash-lite API","description":"Google's fastest and cheapest model — ideal for high-volume, low-latency tasks","tags":["compute"],"x-service-id":"llm-gemini-3.1-flash-lite","x-price":"$0.004860","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gemini-3.1-flash-lite/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000025","completion":"0.0000015","image":"0.00000025","audio":"0.0000005","input_audio_cache":"0.00000005","web_search":"0.014","internal_reasoning":"0.0000015","input_cache_read":"0.000000025","input_cache_write":"0.0000000833333333333333"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video","file","audio"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":1048576,"maxOutputTokens":65536,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["high","medium","low","minimal"],"default_effort":"minimal"}},"x-payment-options":[{"scheme":"exact","price":"$0.004860","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"4860","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.004860","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"4860000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.004860","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"4860","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004860"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"google/gemini-3.1-flash-lite-preview","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","file","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/qwen3.5/quote":{"post":{"summary":"Quote Qwen 3.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/qwen3.5":{"post":{"summary":"Run Qwen 3.5 via llm-qwen3.5 API","description":"Alibaba's latest model — 1M context, strong multilingual and coding capabilities","tags":["compute"],"x-service-id":"llm-qwen3.5","x-price":"$0.003660","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/qwen3.5/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000026","completion":"0.00000156","overrides":[{"min_prompt_tokens":256000,"prompt":"0.000000325","completion":"0.00000195"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logprobs","max_tokens","presence_penalty","reasoning","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1000000,"maxOutputTokens":65536,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.003660","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3660","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003660","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3660000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003660","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3660","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003660"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"qwen/qwen3.5-plus-02-15","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/deepseek-v3.2-speciale/quote":{"post":{"summary":"Quote DeepSeek V3.2 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/deepseek-v3.2-speciale":{"post":{"summary":"Run DeepSeek V3.2 via llm-deepseek-v3.2-speciale API","description":"DeepSeek V3.2 served on the Speciale compatibility route — strong reasoning and coding at low cost","tags":["compute"],"x-service-id":"llm-deepseek-v3.2-speciale","x-price":"$0.003274","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/deepseek-v3.2-speciale/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000000269","completion":"0.0000004","input_cache_read":"0.0000001345"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":163840,"maxOutputTokens":65536,"reasoning":{"mandatory":false,"default_enabled":false}},"x-payment-options":[{"scheme":"exact","price":"$0.003274","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3274","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003274","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3274000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003274","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3274","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003274"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"deepseek/deepseek-v3.2","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/embeddings":{"post":{"summary":"Run Text Embeddings via embeddings API","description":"Generate text embeddings using OpenAI text-embedding-3-small — for semantic search, clustering, RAG","tags":["compute"],"x-service-id":"embeddings","x-price":"$0.001","x-payment-options":[{"scheme":"exact","price":"$0.001","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.001","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.001","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Single text to embed","example":"hello world"},"texts":{"type":"array","description":"Array of texts to embed (1-100)","example":["hello","world"],"items":{"type":"string","example":"hello"},"minItems":1,"maxItems":100}},"anyOf":[{"required":["text"]},{"required":["texts"]}],"additionalProperties":false}}}}}},"/api/web/scrape":{"get":{"summary":"Fetch Web Scrape via web-scrape API","description":"Scrape any URL and get clean markdown content — ideal for extracting readable text from web pages","tags":["web"],"x-service-id":"web-scrape","x-price":"$0.005","x-payment-options":[{"scheme":"exact","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"5000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.005","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"5000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.005","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"5000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"url","in":"query","required":true,"description":"URL to scrape","schema":{"type":"string","description":"URL to scrape","example":"https://example.com"},"example":"https://example.com"}]}},"/api/web/screenshot":{"get":{"summary":"Fetch Web Screenshot via web-screenshot API","description":"Capture a screenshot of any URL — returns base64-encoded image, supports full-page capture","tags":["web"],"x-service-id":"web-screenshot","x-price":"$0.01","x-payment-options":[{"scheme":"exact","price":"$0.01","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.01","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"10000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.01","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"url","in":"query","required":true,"description":"URL to screenshot","schema":{"type":"string","description":"URL to screenshot","example":"https://example.com"},"example":"https://example.com"},{"name":"fullPage","in":"query","required":false,"description":"Capture full page","schema":{"type":"boolean","description":"Capture full page","default":false}}]}},"/api/search/web":{"post":{"summary":"Run Web Search via search-web API","description":"Neural web search with highlighted snippets — find articles, news, research, and any web content","tags":["web"],"x-service-id":"search-web","x-price":"$0.010","x-payment-options":[{"scheme":"exact","price":"$0.010","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.010","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"10000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.010","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.010"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Search query","example":"latest ethereum news"},"numResults":{"type":"number","description":"Number of results (1-30)","default":10,"example":10},"includeDomains":{"type":"array","description":"Only include results from these domains","example":["arxiv.org","github.com"],"items":{"type":"string","example":"arxiv.org"}},"category":{"type":"string","description":"Content category filter (news, research paper, company, tweet, github, pdf)","example":"news"},"includeText":{"type":"boolean","description":"Include full page text in results","default":false}},"required":["query"],"additionalProperties":false}}}}}},"/api/search/contents":{"post":{"summary":"Run Web Content Fetch via search-contents API","description":"Fetch full text content from URLs — extract clean text from up to 10 pages at once","tags":["web"],"x-service-id":"search-contents","x-price":"$0.005","x-payment-options":[{"scheme":"exact","price":"$0.005","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"5000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.005","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"5000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.005","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"5000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"urls":{"type":"array","description":"Array of URLs to fetch content from (max 10)","example":["https://example.com/article"],"items":{"type":"string","example":"https://example.com/article"},"minItems":1}},"required":["urls"],"additionalProperties":false}}}}}},"/api/tts/elevenlabs":{"post":{"summary":"Run Text-to-Speech (ElevenLabs) via tts-elevenlabs API","description":"Premium text-to-speech with ElevenLabs — ultra-realistic voices, multilingual support, custom voice IDs","tags":["compute"],"x-service-id":"tts-elevenlabs","x-price":"$0.02","x-payment-options":[{"scheme":"exact","price":"$0.02","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"20000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.02","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"20000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.02","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"20000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["audio","format"],"properties":{"audio":{"type":"string","description":"Base64-encoded audio bytes. Decode to save or play the audio."},"format":{"type":"string","description":"The audio encoding selected for this request."}}},"example":{"audio":"<base64-encoded audio>","format":"mp3_44100_128"}}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Non-empty text to convert to speech (max 5000 characters)","example":"Hello world"},"voice_id":{"type":"string","description":"ElevenLabs voice ID","example":"21m00Tcm4TlvDq8ikWAM"},"format":{"type":"string","description":"Audio output format","enum":["mp3_44100_128","mp3_44100_64","pcm_16000","pcm_22050","pcm_24000","pcm_44100","ulaw_8000"],"default":"mp3_44100_128"},"model_id":{"type":"string","description":"ElevenLabs synthesis model ID","default":"eleven_multilingual_v2"}},"required":["text"],"additionalProperties":false}}}}}},"/api/ens/resolve":{"get":{"summary":"Fetch ENS Resolve via ens-resolve API","description":"Resolve an ENS name to an Ethereum address","tags":["crypto"],"x-service-id":"ens-resolve","x-price":"$0.001","x-payment-options":[{"scheme":"exact","price":"$0.001","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.001","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.001","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"name","in":"query","required":true,"description":"ENS name to resolve","schema":{"type":"string","description":"ENS name to resolve","example":"vitalik.eth"},"example":"vitalik.eth"}]}},"/api/ens/reverse":{"get":{"summary":"Fetch ENS Reverse Lookup via ens-reverse API","description":"Reverse-resolve an Ethereum address to its ENS name","tags":["crypto"],"x-service-id":"ens-reverse","x-price":"$0.001","x-payment-options":[{"scheme":"exact","price":"$0.001","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.001","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.001","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"address","in":"query","required":true,"description":"Ethereum address (0x...)","schema":{"type":"string","description":"Ethereum address (0x...)","example":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"},"example":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}]}},"/api/tx/simulate":{"post":{"summary":"Run Transaction Simulation via tx-simulate API","description":"Simulate EVM transactions before sending — get gas estimates, execution traces, and revert reasons","tags":["crypto"],"x-service-id":"tx-simulate","x-price":"$0.01","x-payment-options":[{"scheme":"exact","price":"$0.01","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.01","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"10000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.01","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"network_id":{"type":"string","description":"Network ID (1=mainnet, 8453=Base, 10=Optimism, etc.)","example":"1"},"from":{"type":"string","description":"Sender address","example":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"},"to":{"type":"string","description":"Recipient/contract address","example":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},"value":{"type":"string","description":"ETH value in wei","example":"0"},"data":{"type":"string","description":"Transaction calldata (hex string)"},"gas":{"type":"number","description":"Gas limit"}},"required":["network_id","from","to"],"additionalProperties":false}}}}}},"/api/travel/flights":{"get":{"summary":"Fetch Flight Search via travel-flights API","description":"Search flights via Google Flights (SerpApi). Returns best flights, prices, airlines, and price insights.","tags":["travel"],"x-service-id":"travel-flights","x-price":"$0.02","x-payment-options":[{"scheme":"exact","price":"$0.02","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"20000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.02","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"20000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.02","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"20000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"origin","in":"query","required":true,"description":"Departure airport IATA code","schema":{"type":"string","description":"Departure airport IATA code","example":"JFK"},"example":"JFK"},{"name":"destination","in":"query","required":true,"description":"Arrival airport IATA code","schema":{"type":"string","description":"Arrival airport IATA code","example":"LAX"},"example":"LAX"},{"name":"departureDate","in":"query","required":true,"description":"Departure date (YYYY-MM-DD); today or a future date","schema":{"type":"string","description":"Departure date (YYYY-MM-DD); today or a future date","example":"2026-12-08"},"example":"2026-12-08"},{"name":"returnDate","in":"query","required":false,"description":"Return date for round trips (YYYY-MM-DD)","schema":{"type":"string","description":"Return date for round trips (YYYY-MM-DD)","example":"2026-12-11"},"example":"2026-12-11"},{"name":"adults","in":"query","required":false,"description":"Number of adult passengers","schema":{"type":"string","description":"Number of adult passengers","default":"1"}},{"name":"children","in":"query","required":false,"description":"Number of children","schema":{"type":"string","description":"Number of children"}},{"name":"travelClass","in":"query","required":false,"description":"1=Economy, 2=Premium Economy, 3=Business, 4=First","schema":{"type":"string","description":"1=Economy, 2=Premium Economy, 3=Business, 4=First","default":"1"}},{"name":"stops","in":"query","required":false,"description":"0=Any stops, 1=Nonstop, 2=Up to 1 stop, 3=Up to 2 stops","schema":{"type":"string","description":"0=Any stops, 1=Nonstop, 2=Up to 1 stop, 3=Up to 2 stops"}},{"name":"maxPrice","in":"query","required":false,"description":"Maximum price filter","schema":{"type":"string","description":"Maximum price filter"}},{"name":"currency","in":"query","required":false,"description":"Currency code (e.g. USD, EUR)","schema":{"type":"string","description":"Currency code (e.g. USD, EUR)","default":"USD"}}]}},"/api/travel/hotels":{"get":{"summary":"Fetch Hotel Search via travel-hotels API","description":"Search hotels via Google Hotels (SerpApi). Returns properties with prices, ratings, and amenities.","tags":["travel"],"x-service-id":"travel-hotels","x-price":"$0.02","x-payment-options":[{"scheme":"exact","price":"$0.02","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"20000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.02","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"20000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.02","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"20000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"parameters":[{"name":"q","in":"query","required":true,"description":"Search query — city name or hotel name","schema":{"type":"string","description":"Search query — city name or hotel name","example":"hotels in Paris"},"example":"hotels in Paris"},{"name":"checkInDate","in":"query","required":true,"description":"Check-in date (YYYY-MM-DD); today or a future date","schema":{"type":"string","description":"Check-in date (YYYY-MM-DD); today or a future date","example":"2026-12-08"},"example":"2026-12-08"},{"name":"checkOutDate","in":"query","required":true,"description":"Check-out date (YYYY-MM-DD)","schema":{"type":"string","description":"Check-out date (YYYY-MM-DD)","example":"2026-12-11"},"example":"2026-12-11"},{"name":"adults","in":"query","required":false,"description":"Number of adults","schema":{"type":"string","description":"Number of adults","default":"2"}},{"name":"children","in":"query","required":false,"description":"Number of children","schema":{"type":"string","description":"Number of children","example":"2"},"example":"2"},{"name":"sortBy","in":"query","required":false,"description":"3=Lowest price, 8=Highest rating, 13=Most reviewed","schema":{"type":"string","description":"3=Lowest price, 8=Highest rating, 13=Most reviewed"}},{"name":"minPrice","in":"query","required":false,"description":"Minimum price per night","schema":{"type":"string","description":"Minimum price per night"}},{"name":"maxPrice","in":"query","required":false,"description":"Maximum price per night","schema":{"type":"string","description":"Maximum price per night"}},{"name":"hotelClass","in":"query","required":false,"description":"Star rating (2-5)","schema":{"type":"string","description":"Star rating (2-5)"}},{"name":"currency","in":"query","required":false,"description":"Currency code (e.g. USD, EUR)","schema":{"type":"string","description":"Currency code (e.g. USD, EUR)","default":"USD"}},{"name":"childrenAges","in":"query","required":false,"description":"Comma-separated child ages 1–17; required when children > 0, one age per child","schema":{"type":"string","description":"Comma-separated child ages 1–17; required when children > 0, one age per child","example":"7,10"},"example":"7,10"}]}},"/api/llm/minimax-m2.7/quote":{"post":{"summary":"Quote MiniMax M2.7 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/minimax-m2.7":{"post":{"summary":"Run MiniMax M2.7 via llm-minimax-m2.7 API","description":"MiniMax's latest model — improved reasoning and generation with 204k context","tags":["compute"],"x-service-id":"llm-minimax-m2.7","x-price":"$0.003488","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/minimax-m2.7/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000003","completion":"0.0000012","input_cache_read":"0.00000006"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":204800,"maxOutputTokens":131072,"reasoning":{"mandatory":true}},"x-payment-options":[{"scheme":"exact","price":"$0.003488","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3488","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003488","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3488000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003488","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3488","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003488"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"minimax/minimax-m2.7","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/llama-4-maverick/quote":{"post":{"summary":"Quote Llama 4 Maverick without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/llama-4-maverick":{"post":{"summary":"Run Llama 4 Maverick via llm-llama-4-maverick API","description":"Meta's latest open model — 1M context, strong multilingual and reasoning at very low cost","tags":["compute"],"x-service-id":"llm-llama-4-maverick","x-price":"$0.002801","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/llama-4-maverick/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000002","completion":"0.000000696"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","logit_bias","logprobs","max_tokens","min_p","presence_penalty","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":128000,"maxOutputTokens":115200,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.002801","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2801","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002801","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2801000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002801","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2801","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002801"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"meta-llama/llama-4-maverick","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5-nano/quote":{"post":{"summary":"Quote GPT-5 Nano without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5-nano":{"post":{"summary":"Run GPT-5 Nano via llm-gpt-5-nano API","description":"OpenAI's cheapest GPT-5 tier — ultra-affordable for high-volume agent tasks","tags":["compute"],"x-service-id":"llm-gpt-5-nano","x-price":"$0.001773","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5-nano/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000005","completion":"0.0000004","web_search":"0.01","input_cache_read":"0.000000005"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":400000,"maxOutputTokens":128000,"reasoning":{"mandatory":true,"supported_efforts":["high","medium","low","minimal"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.001773","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1773","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.001773","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1773000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.001773","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1773","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.001773"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5-nano","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/o4-mini/quote":{"post":{"summary":"Quote OpenAI o4-mini without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/o4-mini":{"post":{"summary":"Run OpenAI o4-mini via llm-o4-mini API","description":"OpenAI's latest small reasoning model — fast chain-of-thought for math, coding, and analysis","tags":["compute"],"x-service-id":"llm-o4-mini","x-price":"$0.008978","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/o4-mini/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000011","completion":"0.0000044","web_search":"0.01","input_cache_read":"0.000000275"}},"x-model-capabilities":{"available":true,"inputModalities":["image","text","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":200000,"maxOutputTokens":100000,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.008978","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"8978","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.008978","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"8978000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.008978","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"8978","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.008978"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/o4-mini","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/command-a/quote":{"post":{"summary":"Quote Cohere Command A without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/command-a":{"post":{"summary":"Run Cohere Command A via llm-command-a API","description":"Cohere's flagship model — 256k context, strong for enterprise RAG and structured generation","tags":["compute"],"x-service-id":"llm-command-a","x-price":"$0.018586","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/command-a/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000025","completion":"0.00001"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","max_tokens","presence_penalty","response_format","seed","stop","structured_outputs","temperature","top_k","top_p"],"contextWindow":256000,"maxOutputTokens":8192,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.018586","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"18586","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.018586","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"18586000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.018586","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"18586","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.018586"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"cohere/command-a","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-opus-4.8/quote":{"post":{"summary":"Quote Claude Opus 4.8 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-opus-4.8":{"post":{"summary":"Run Claude Opus 4.8 via llm-claude-opus-4.8 API","description":"Anthropic's latest Opus model — premium analysis, coding, and long-context autonomous work","tags":["compute"],"x-service-id":"llm-claude-opus-4.8","x-price":"$0.070034","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-opus-4.8/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000005","completion":"0.000025","web_search":"0.01","input_cache_read":"0.0000005","input_cache_write":"0.00000625","input_cache_write_1h":"0.00001"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","temperature","tool_choice","tools","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":false,"supported_efforts":["max","xhigh","high","medium","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.070034","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"70034","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.070034","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"70034000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.070034","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"70034","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.070034"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-opus-4.8","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/qwen3.7-plus/quote":{"post":{"summary":"Quote Qwen 3.7 Plus without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/qwen3.7-plus":{"post":{"summary":"Run Qwen 3.7 Plus via llm-qwen3.7-plus API","description":"Alibaba's cost-effective Qwen 3.7 model — 1M context with strong coding and multilingual support","tags":["compute"],"x-service-id":"llm-qwen3.7-plus","x-price":"$0.009663","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/qwen3.7-plus/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000032","completion":"0.00000128","input_cache_read":"0.000000064","input_cache_write":"0.0000004","overrides":[{"min_prompt_tokens":256000,"prompt":"0.00000096","completion":"0.00000384","input_cache_read":"0.000000192","input_cache_write":"0.0000012"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logprobs","max_tokens","presence_penalty","reasoning","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1000000,"maxOutputTokens":131072,"reasoning":{"mandatory":false,"default_enabled":true}},"x-payment-options":[{"scheme":"exact","price":"$0.009663","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"9663","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.009663","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"9663000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.009663","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"9663","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.009663"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"qwen/qwen3.7-plus","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/qwen3.7-max/quote":{"post":{"summary":"Quote Qwen 3.7 Max without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/qwen3.7-max":{"post":{"summary":"Run Qwen 3.7 Max via llm-qwen3.7-max API","description":"Alibaba's flagship Qwen 3.7 model — 1M context for agent-centric coding and productivity tasks","tags":["compute"],"x-service-id":"llm-qwen3.7-max","x-price":"$0.014078","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/qwen3.7-max/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000001475","completion":"0.000004425","input_cache_read":"0.000000295","input_cache_write":"0.00000184375"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logprobs","max_tokens","presence_penalty","reasoning","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1000000,"maxOutputTokens":131072,"reasoning":{"mandatory":false,"default_enabled":true}},"x-payment-options":[{"scheme":"exact","price":"$0.014078","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"14078","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.014078","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"14078000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.014078","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"14078","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.014078"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"qwen/qwen3.7-max","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/glm-5.2/quote":{"post":{"summary":"Quote GLM 5.2 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"parallel_tool_calls":{"type":"boolean","description":"Model-supported parallel_tool_calls; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/glm-5.2":{"post":{"summary":"Run GLM 5.2 via llm-glm-5.2 API","description":"Z.ai's large-scale reasoning model — 1M context for long-horizon agent workflows and software engineering","tags":["compute"],"x-service-id":"llm-glm-5.2","x-price":"$0.008057","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/glm-5.2/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000000966","completion":"0.000003036","input_cache_read":"0.0000001932"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","parallel_tool_calls","presence_penalty","reasoning","reasoning_effort","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1048576,"maxOutputTokens":131072,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["xhigh","high"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.008057","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"8057","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.008057","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"8057000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.008057","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"8057","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.008057"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"z-ai/glm-5.2","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"parallel_tool_calls":{"type":"boolean","description":"Model-supported parallel_tool_calls; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/deepseek-v4-flash/quote":{"post":{"summary":"Quote DeepSeek V4 Flash without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/deepseek-v4-flash":{"post":{"summary":"Run DeepSeek V4 Flash via llm-deepseek-v4-flash API","description":"DeepSeek's low-latency V4 model — ultra-low-cost reasoning and coding with 1M context","tags":["compute"],"x-service-id":"llm-deepseek-v4-flash","x-price":"$0.002004","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/deepseek-v4-flash/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000008386","completion":"0.00000016772","input_cache_read":"0.000000016772"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_completion_tokens","max_tokens","min_p","presence_penalty","reasoning","reasoning_effort","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_a","top_k","top_logprobs","top_p"],"contextWindow":1024000,"maxOutputTokens":384000,"reasoning":{"mandatory":false,"supported_efforts":["xhigh","high"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.002004","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2004","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002004","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2004000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002004","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2004","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002004"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"deepseek/deepseek-v4-flash","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/deepseek-v4-flash-0731/quote":{"post":{"summary":"Quote DeepSeek V4 Flash 0731 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"parallel_tool_calls":{"type":"boolean","description":"Model-supported parallel_tool_calls; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/deepseek-v4-flash-0731":{"post":{"summary":"Run DeepSeek V4 Flash 0731 via llm-deepseek-v4-flash-0731 API","description":"DeepSeek's re-post-trained V4 Flash revision — substantially enhanced agentic capabilities, coding, and reasoning with 1M context","tags":["compute"],"x-service-id":"llm-deepseek-v4-flash-0731","x-price":"$0.001875","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/deepseek-v4-flash-0731/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000000065","completion":"0.00000018","input_cache_read":"0.000000016"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","parallel_tool_calls","presence_penalty","reasoning","reasoning_effort","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_a","top_k","top_logprobs","top_p"],"contextWindow":1048576,"maxOutputTokens":943718,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","high","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.001875","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1875","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.001875","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1875000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.001875","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1875","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.001875"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"deepseek/deepseek-v4-flash-0731","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"parallel_tool_calls":{"type":"boolean","description":"Model-supported parallel_tool_calls; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/deepseek-v4-pro/quote":{"post":{"summary":"Quote DeepSeek V4 Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/deepseek-v4-pro":{"post":{"summary":"Run DeepSeek V4 Pro via llm-deepseek-v4-pro API","description":"DeepSeek's stronger V4 model — advanced reasoning, coding, and long-context analysis","tags":["compute"],"x-service-id":"llm-deepseek-v4-pro","x-price":"$0.007050","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/deepseek-v4-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000000819366","completion":"0.000001638732","input_cache_read":"0.0000000682805"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_completion_tokens","max_tokens","min_p","presence_penalty","reasoning","reasoning_effort","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1024000,"maxOutputTokens":384000,"reasoning":{"mandatory":false,"supported_efforts":["xhigh","high"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.007050","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"7050","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.007050","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"7050000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.007050","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"7050","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.007050"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"deepseek/deepseek-v4-pro","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/minimax-m3/quote":{"post":{"summary":"Quote MiniMax M3 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/minimax-m3":{"post":{"summary":"Run MiniMax M3 via llm-minimax-m3 API","description":"MiniMax's multimodal foundation model — 1M context for agentic work, coding, and long-document tasks","tags":["compute"],"x-service-id":"llm-minimax-m3","x-price":"$0.003488","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/minimax-m3/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000003","completion":"0.0000012","input_cache_read":"0.00000006"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":524288,"maxOutputTokens":512000,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.003488","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3488","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003488","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3488000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003488","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3488","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003488"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"minimax/minimax-m3","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.6-luna/quote":{"post":{"summary":"Quote GPT-5.6 Luna without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.6-luna":{"post":{"summary":"Run GPT-5.6 Luna via llm-gpt-5.6-luna API","description":"OpenAI's efficient GPT-5.6 tier with a 1M-token context window","tags":["compute"],"x-service-id":"llm-gpt-5.6-luna","x-price":"$0.004860","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.6-luna/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000002","completion":"0.0000012","web_search":"0.01","input_cache_read":"0.00000002","input_cache_write":"0.00000025","overrides":[{"min_prompt_tokens":272000,"prompt":"0.0000004","completion":"0.0000018","input_cache_read":"0.00000004","input_cache_write":"0.0000005"}]}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.004860","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"4860","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.004860","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"4860000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.004860","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"4860","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004860"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.6-luna","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.6-luna-pro/quote":{"post":{"summary":"Quote GPT-5.6 Luna Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.6-luna-pro":{"post":{"summary":"Run GPT-5.6 Luna Pro via llm-gpt-5.6-luna-pro API","description":"OpenAI's higher-compute Luna tier for efficient long-context reasoning","tags":["compute"],"x-service-id":"llm-gpt-5.6-luna-pro","x-price":"$0.004860","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.6-luna-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000002","completion":"0.0000012","web_search":"0.01","input_cache_read":"0.00000002","input_cache_write":"0.00000025","overrides":[{"min_prompt_tokens":272000,"prompt":"0.0000004","completion":"0.0000018","input_cache_read":"0.00000004","input_cache_write":"0.0000005"}]}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.004860","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"4860","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.004860","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"4860000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.004860","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"4860","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004860"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.6-luna-pro","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.6-terra/quote":{"post":{"summary":"Quote GPT-5.6 Terra without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.6-terra":{"post":{"summary":"Run GPT-5.6 Terra via llm-gpt-5.6-terra API","description":"OpenAI's balanced GPT-5.6 tier for advanced reasoning and agent workflows","tags":["compute"],"x-service-id":"llm-gpt-5.6-terra","x-price":"$0.035740","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.6-terra/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000002","completion":"0.000012","web_search":"0.01","input_cache_read":"0.0000002","input_cache_write":"0.0000025","overrides":[{"min_prompt_tokens":272000,"prompt":"0.000004","completion":"0.000018","input_cache_read":"0.0000004","input_cache_write":"0.000005"}]}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.035740","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"35740","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.035740","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"35740000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.035740","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"35740","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.035740"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.6-terra","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.6-terra-pro/quote":{"post":{"summary":"Quote GPT-5.6 Terra Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.6-terra-pro":{"post":{"summary":"Run GPT-5.6 Terra Pro via llm-gpt-5.6-terra-pro API","description":"OpenAI's higher-compute Terra tier for demanding reasoning workloads","tags":["compute"],"x-service-id":"llm-gpt-5.6-terra-pro","x-price":"$0.035740","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.6-terra-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000002","completion":"0.000012","web_search":"0.01","input_cache_read":"0.0000002","input_cache_write":"0.0000025","overrides":[{"min_prompt_tokens":272000,"prompt":"0.000004","completion":"0.000018","input_cache_read":"0.0000004","input_cache_write":"0.000005"}]}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.035740","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"35740","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.035740","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"35740000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.035740","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"35740","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.035740"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.6-terra-pro","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.6-sol/quote":{"post":{"summary":"Quote GPT-5.6 Sol without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.6-sol":{"post":{"summary":"Run GPT-5.6 Sol via llm-gpt-5.6-sol API","description":"OpenAI's flagship GPT-5.6 tier for complex analysis, coding, and planning","tags":["compute"],"x-service-id":"llm-gpt-5.6-sol","x-price":"$0.035735","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.6-sol/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000002","completion":"0.00001","web_search":"0.01","input_cache_read":"0.0000002","input_cache_write":"0.0000025","overrides":[{"min_prompt_tokens":272000,"prompt":"0.000004","completion":"0.000015","input_cache_read":"0.0000004","input_cache_write":"0.000005"}]}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.035735","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"35735","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.035735","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"35735000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.035735","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"35735","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.035735"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.6-sol","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-5.6-sol-pro/quote":{"post":{"summary":"Quote GPT-5.6 Sol Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-5.6-sol-pro":{"post":{"summary":"Run GPT-5.6 Sol Pro via llm-gpt-5.6-sol-pro API","description":"OpenAI's maximum-compute GPT-5.6 tier for the hardest agent tasks","tags":["compute"],"x-service-id":"llm-gpt-5.6-sol-pro","x-price":"$0.035735","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-5.6-sol-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000002","completion":"0.00001","web_search":"0.01","input_cache_read":"0.0000002","input_cache_write":"0.0000025","overrides":[{"min_prompt_tokens":272000,"prompt":"0.000004","completion":"0.000015","input_cache_read":"0.0000004","input_cache_write":"0.000005"}]}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.035735","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"35735","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.035735","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"35735000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.035735","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"35735","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.035735"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-5.6-sol-pro","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-opus-5/quote":{"post":{"summary":"Quote Claude Opus 5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-opus-5":{"post":{"summary":"Run Claude Opus 5 via llm-claude-opus-5 API","description":"Anthropic's flagship model with 1M context for coding, analysis, and autonomous work","tags":["compute"],"x-service-id":"llm-claude-opus-5","x-price":"$0.070034","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-opus-5/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000005","completion":"0.000025","web_search":"0.01","input_cache_read":"0.0000005","input_cache_write":"0.00000625","input_cache_write_1h":"0.00001"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","temperature","tool_choice","tools","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.070034","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"70034","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.070034","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"70034000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.070034","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"70034","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.070034"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-opus-5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-opus-5-fast":{"post":{"summary":"Run Claude Opus 5 Fast via llm-claude-opus-5-fast API","description":"Low-latency Claude Opus 5 delivery for premium interactive workloads","tags":["compute"],"x-service-id":"llm-claude-opus-5-fast","x-price":"$0.12","x-model-capabilities":{"available":false,"reason":"Upstream pricing unavailable"},"x-payment-options":[{"scheme":"exact","price":"$0.12","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"120000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.12","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"120000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.12","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"120000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.12"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"Array of message objects with role and content","example":[{"role":"user","content":"Hello"}],"items":{"type":"object","properties":{"role":{"type":"string","example":"user"},"content":{"type":"string","example":"Hello"}},"required":["role","content"],"additionalProperties":false},"minItems":1},"max_tokens":{"type":"number","description":"Maximum tokens to generate","default":1024,"example":1024}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-sonnet-5/quote":{"post":{"summary":"Quote Claude Sonnet 5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-sonnet-5":{"post":{"summary":"Run Claude Sonnet 5 via llm-claude-sonnet-5 API","description":"Anthropic's balanced frontier model with 1M context and strong coding performance","tags":["compute"],"x-service-id":"llm-claude-sonnet-5","x-price":"$0.028871","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-sonnet-5/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000002","completion":"0.00001","web_search":"0.01","input_cache_read":"0.0000002","input_cache_write":"0.0000025","input_cache_write_1h":"0.000004"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","tool_choice","tools","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.028871","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"28871","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.028871","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"28871000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.028871","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"28871","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.028871"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-sonnet-5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gemini-3.6-flash/quote":{"post":{"summary":"Quote Gemini 3.6 Flash without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","file","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gemini-3.6-flash":{"post":{"summary":"Run Gemini 3.6 Flash via llm-gemini-3.6-flash API","description":"Google's latest fast multimodal model with a 1M-token context window","tags":["compute"],"x-service-id":"llm-gemini-3.6-flash","x-price":"$0.006577","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gemini-3.6-flash/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000075","completion":"0.00000375","image":"0.00000075","audio":"0.00000075","input_audio_cache":"0.000000075","web_search":"0.014","internal_reasoning":"0.00000375","input_cache_read":"0.000000075","input_cache_write":"0.0000000416666666666667"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video","file","audio"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","reasoning_effort","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":1048576,"maxOutputTokens":65536,"reasoning":{"mandatory":true,"default_enabled":true,"supported_efforts":["high","medium","low","minimal"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.006577","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"6577","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.006577","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"6577000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.006577","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"6577","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.006577"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"google/gemini-3.6-flash","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","file","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gemini-3.5-flash-lite/quote":{"post":{"summary":"Quote Gemini 3.5 Flash Lite without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","file","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gemini-3.5-flash-lite":{"post":{"summary":"Run Gemini 3.5 Flash Lite via llm-gemini-3.5-flash-lite API","description":"Google's low-cost multimodal model for high-volume agent workloads","tags":["compute"],"x-service-id":"llm-gemini-3.5-flash-lite","x-price":"$0.003490","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gemini-3.5-flash-lite/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000003","completion":"0.0000025","image":"0.0000003","audio":"0.0000003","input_audio_cache":"0.00000003","web_search":"0.014","internal_reasoning":"0.0000025","input_cache_read":"0.00000003","input_cache_write":"0.0000000833333333333333"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video","file","audio"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","reasoning_effort","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_p"],"contextWindow":1048576,"maxOutputTokens":65536,"reasoning":{"mandatory":true,"default_enabled":true,"supported_efforts":["high","medium","low","minimal"],"default_effort":"minimal"}},"x-payment-options":[{"scheme":"exact","price":"$0.003490","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3490","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003490","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3490000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003490","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3490","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003490"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"google/gemini-3.5-flash-lite","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","file","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/kimi-k3/quote":{"post":{"summary":"Quote Kimi K3 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/kimi-k3":{"post":{"summary":"Run Kimi K3 via llm-kimi-k3 API","description":"MoonshotAI's frontier multimodal model with 1M context for agentic tasks","tags":["compute"],"x-service-id":"llm-kimi-k3","x-price":"$0.022022","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/kimi-k3/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000003","completion":"0.000015","input_cache_read":"0.0000003"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","reasoning_effort","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1048576,"maxOutputTokens":943718,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","high","low"],"default_effort":"max"}},"x-payment-options":[{"scheme":"exact","price":"$0.022022","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"22022","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.022022","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"22022000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.022022","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"22022","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.022022"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"moonshotai/kimi-k3","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/grok-4.5/quote":{"post":{"summary":"Quote Grok 4.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/grok-4.5":{"post":{"summary":"Run Grok 4.5 via llm-grok-4.5 API","description":"xAI's latest multimodal model with 500k context and strong tool use","tags":["compute"],"x-service-id":"llm-grok-4.5","x-price":"$0.028874","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/grok-4.5/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000002","completion":"0.000006","web_search":"0.005","input_cache_read":"0.0000003","overrides":[{"min_prompt_tokens":200000,"prompt":"0.000004","completion":"0.000012","input_cache_read":"0.0000006"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","logprobs","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","temperature","tool_choice","tools","top_logprobs","top_p"],"contextWindow":500000,"maxOutputTokens":450000,"reasoning":{"mandatory":true,"default_enabled":true,"supported_efforts":["high","medium","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.028874","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"28874","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.028874","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"28874000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.028874","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"28874","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.028874"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"x-ai/grok-4.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/kat-coder-air-v2.5":{"post":{"summary":"Run KAT-Coder-Air V2.5 via llm-kat-coder-air-v2.5 API","description":"Kwaipilot's efficient coding model for repository and agent workflows","tags":["compute"],"x-service-id":"llm-kat-coder-air-v2.5","x-price":"$0.003","x-model-capabilities":{"available":false,"reason":"Upstream pricing unavailable"},"x-payment-options":[{"scheme":"exact","price":"$0.003","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"Array of message objects with role and content","example":[{"role":"user","content":"Hello"}],"items":{"type":"object","properties":{"role":{"type":"string","example":"user"},"content":{"type":"string","example":"Hello"}},"required":["role","content"],"additionalProperties":false},"minItems":1},"max_tokens":{"type":"number","description":"Maximum tokens to generate","default":1024,"example":1024}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/kat-coder-pro-v2.5/quote":{"post":{"summary":"Quote KAT-Coder-Pro V2.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/kat-coder-pro-v2.5":{"post":{"summary":"Run KAT-Coder-Pro V2.5 via llm-kat-coder-pro-v2.5 API","description":"Kwaipilot's stronger coding model for complex software engineering tasks","tags":["compute"],"x-service-id":"llm-kat-coder-pro-v2.5","x-price":"$0.006508","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/kat-coder-pro-v2.5/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000074","completion":"0.00000296","input_cache_read":"0.00000015"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","logit_bias","max_tokens","min_p","presence_penalty","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":262144,"maxOutputTokens":235929,"reasoning":null},"x-payment-options":[{"scheme":"exact","price":"$0.006508","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"6508","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.006508","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"6508000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.006508","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"6508","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.006508"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"kwaipilot/kat-coder-pro-v2.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/longcat-2/quote":{"post":{"summary":"Quote LongCat 2.0 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/longcat-2":{"post":{"summary":"Run LongCat 2.0 via llm-longcat-2 API","description":"Meituan's long-context model for reasoning, coding, and high-volume inference","tags":["compute"],"x-service-id":"llm-longcat-2","x-price":"$0.003488","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/longcat-2/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000003","completion":"0.0000012","input_cache_read":"0.000000006"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","max_tokens","min_p","presence_penalty","reasoning","repetition_penalty","seed","stop","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":1048756,"maxOutputTokens":262144,"reasoning":{"mandatory":false,"default_enabled":true,"supports_max_tokens":true}},"x-payment-options":[{"scheme":"exact","price":"$0.003488","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3488","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003488","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3488000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003488","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3488","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003488"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"meituan/longcat-2.0","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/inkling/quote":{"post":{"summary":"Quote Inkling without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/inkling":{"post":{"summary":"Run Inkling via llm-inkling API","description":"Thinking Machines' multimodal model for text, image, and audio understanding","tags":["compute"],"x-service-id":"llm-inkling","x-price":"$0.008292","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/inkling/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000001","completion":"0.00000405","input_cache_read":"0.00000017"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","audio"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","max_tokens","min_p","presence_penalty","reasoning","reasoning_effort","repetition_penalty","response_format","seed","stop","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":524288,"maxOutputTokens":471859,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","high","medium","low","minimal","none"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.008292","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"8292","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.008292","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"8292000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.008292","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"8292","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.008292"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"thinkingmachines/inkling","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/muse-spark-1.1/quote":{"post":{"summary":"Quote Muse Spark 1.1 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","file","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/muse-spark-1.1":{"post":{"summary":"Run Muse Spark 1.1 via llm-muse-spark-1.1 API","description":"Meta's broad multimodal model with 1M context for media-rich agent workflows","tags":["compute"],"x-service-id":"llm-muse-spark-1.1","x-price":"$0.010006","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/muse-spark-1.1/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000125","completion":"0.00000425","web_search":"0.0025","input_cache_read":"0.00000015"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video","file","audio"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","reasoning_effort","repetition_penalty","response_format","structured_outputs","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":1048576,"maxOutputTokens":943718,"reasoning":{"mandatory":true,"supported_efforts":["xhigh","high","medium","low","minimal"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.010006","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"10006","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.010006","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"10006000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.010006","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10006","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.010006"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"meta/muse-spark-1.1","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","file","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/aion-3.0/quote":{"post":{"summary":"Quote Aion 3.0 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/aion-3.0":{"post":{"summary":"Run Aion 3.0 via llm-aion-3.0 API","description":"AionLabs' full reasoning model for analysis and structured generation","tags":["compute"],"x-service-id":"llm-aion-3.0","x-price":"$0.022008","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/aion-3.0/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.000003","completion":"0.000006","input_cache_read":"0.00000075"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","response_format","temperature","tool_choice","tools","top_p"],"contextWindow":131072,"maxOutputTokens":32768,"reasoning":{"mandatory":true}},"x-payment-options":[{"scheme":"exact","price":"$0.022008","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"22008","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.022008","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"22008000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.022008","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"22008","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.022008"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"aion-labs/aion-3.0","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/aion-3.0-mini/quote":{"post":{"summary":"Quote Aion 3.0 Mini without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/aion-3.0-mini":{"post":{"summary":"Run Aion 3.0 Mini via llm-aion-3.0-mini API","description":"AionLabs' compact reasoning model for efficient general-purpose inference","tags":["compute"],"x-service-id":"llm-aion-3.0-mini","x-price":"$0.006231","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/aion-3.0-mini/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000007","completion":"0.0000014","input_cache_read":"0.00000018"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_tokens","reasoning","response_format","temperature","tool_choice","tools","top_p"],"contextWindow":131072,"maxOutputTokens":32768,"reasoning":{"mandatory":true}},"x-payment-options":[{"scheme":"exact","price":"$0.006231","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"6231","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.006231","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"6231000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.006231","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"6231","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.006231"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"aion-labs/aion-3.0-mini","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/hy3/quote":{"post":{"summary":"Quote Tencent HY3 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/hy3":{"post":{"summary":"Run Tencent HY3 via llm-hy3 API","description":"Tencent's efficient reasoning model with a 262k-token context window","tags":["compute"],"x-service-id":"llm-hy3","x-price":"$0.002335","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/hy3/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000000825","completion":"0.00000033","input_cache_read":"0.000000020625","overrides":[{"utc_start":0,"utc_end":1600,"prompt":"0.000000132","completion":"0.000000528","input_cache_read":"0.000000033"},{"utc_start":1600,"utc_end":0,"prompt":"0.0000000825","completion":"0.00000033","input_cache_read":"0.000000020625"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","max_completion_tokens","max_tokens","min_p","presence_penalty","reasoning","reasoning_effort","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_p"],"contextWindow":262144,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["high","low","none"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.002335","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2335","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002335","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2335000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002335","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2335","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002335"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"tencent/hy3","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/ling-3-flash":{"post":{"summary":"Run Ling 3.0 Flash via llm-ling-3-flash API","description":"InclusionAI's fast open model for low-cost reasoning and tool use","tags":["compute"],"x-service-id":"llm-ling-3-flash","x-price":"$0.002","x-model-capabilities":{"available":false,"reason":"Upstream pricing unavailable"},"x-payment-options":[{"scheme":"exact","price":"$0.002","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"security":[],"responses":{"200":{"description":"Successful paid response"},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","description":"Array of message objects with role and content","example":[{"role":"user","content":"Hello"}],"items":{"type":"object","properties":{"role":{"type":"string","example":"user"},"content":{"type":"string","example":"Hello"}},"required":["role","content"],"additionalProperties":false},"minItems":1},"max_tokens":{"type":"number","description":"Maximum tokens to generate","default":1024,"example":1024}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/glm-5.3/quote":{"post":{"summary":"Quote GLM 5.3 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"parallel_tool_calls":{"type":"boolean","description":"Model-supported parallel_tool_calls; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/glm-5.3":{"post":{"summary":"Run GLM 5.3 via llm-glm-5.3 API","description":"GLM-5.3 is a large-scale reasoning model from Z.ai, built for complex software engineering and long-horizon agent tasks. It supports text input and output with a 1M-token context window, and improves","tags":["compute"],"x-service-id":"llm-glm-5.3","x-price":"$0.011035","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/glm-5.3/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.0000014","completion":"0.0000044","input_cache_read":"0.00000014"}},"x-model-capabilities":{"available":true,"inputModalities":["text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","parallel_tool_calls","presence_penalty","reasoning","reasoning_effort","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1048576,"maxOutputTokens":262144,"reasoning":{"mandatory":true,"default_enabled":true,"supported_efforts":["max","high","low"],"default_effort":"max"}},"x-payment-options":[{"scheme":"exact","price":"$0.011035","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"11035","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.011035","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"11035000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.011035","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"11035","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.011035"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"z-ai/glm-5.3","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"parallel_tool_calls":{"type":"boolean","description":"Model-supported parallel_tool_calls; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/glm-5.3-flash/quote":{"post":{"summary":"Quote GLM 5.3 Flash without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/glm-5.3-flash":{"post":{"summary":"Run GLM 5.3 Flash via llm-glm-5.3-flash API","description":"GLM-5.3-Flash is a native multimodal model from Z.ai. It is suited for efficient coding and long-horizon agent tasks. Its hybrid sparse and linear attention architecture maintains accurate long-context behavior while","tags":["compute"],"x-service-id":"llm-glm-5.3-flash","x-price":"$0.002458","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/glm-5.3-flash/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00000015","completion":"0.0000005","input_cache_read":"0.00000005"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","reasoning_effort","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1048576,"maxOutputTokens":131072,"reasoning":{"mandatory":true,"default_enabled":true,"supported_efforts":["max","high","low"],"default_effort":"max"}},"x-payment-options":[{"scheme":"exact","price":"$0.002458","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2458","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002458","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2458000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002458","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2458","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002458"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"z-ai/glm-5.3-flash","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-6-astra/quote":{"post":{"summary":"Quote GPT-6 Astra without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-6-astra":{"post":{"summary":"Run GPT-6 Astra via llm-gpt-6-astra API","description":"GPT-6 Astra is OpenAI's flagship model for demanding end-to-end work. It is suited for advanced analysis, software engineering, deep research, scientific work, and document creation, with particular strengths in long-horizon","tags":["compute"],"x-service-id":"llm-gpt-6-astra","x-price":"$0.172960","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-6-astra/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00001","completion":"0.00005","web_search":"0.01","input_cache_read":"0.000001","input_cache_write":"0.0000125","overrides":[{"min_prompt_tokens":272000,"prompt":"0.00002","completion":"0.000075","input_cache_read":"0.000002","input_cache_write":"0.000025"}]}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":true,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.172960","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"172960","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.172960","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"172960000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.172960","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"172960","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.172960"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-6-astra","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-fable-5.1/quote":{"post":{"summary":"Quote Claude Fable 5.1 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-fable-5.1":{"post":{"summary":"Run Claude Fable 5.1 via llm-claude-fable-5.1 API","description":"Claude Fable 5.1 improves on Claude Fable 5 across the board, with the biggest gains in agentic coding, long-running agentic workflows, and knowledge work: long code refactors, front-end and visual","tags":["compute"],"x-service-id":"llm-claude-fable-5.1","x-price":"$0.138638","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-fable-5.1/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-09-05","upstreamRates":{"prompt":"0.00001","completion":"0.00005","web_search":"0.01","input_cache_read":"0.00000025","input_cache_write":"0.0000125","input_cache_write_1h":"0.00002"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","tools","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":true,"supported_efforts":["max","xhigh","high","medium","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.138638","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"138638","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.138638","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"138638000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.138638","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"138638","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.138638"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-fable-5.1","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-haiku-5.5/quote":{"post":{"summary":"Quote Claude Haiku 5.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-haiku-5.5":{"post":{"summary":"Run Claude Haiku 5.5 via llm-claude-haiku-5.5 API","description":"Claude Haiku 5.5 is Anthropic's small, fast model for high-volume, cost-sensitive work such as summarization, subagents, and browser use. It succeeds Claude Haiku 4.5 with stronger coding, computer use, and...","tags":["compute"],"x-service-id":"llm-claude-haiku-5.5","x-price":"$0.008290","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-haiku-5.5/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.0000001","completion":"0.0000005","web_search":"0.01","input_cache_read":"0.00000001","input_cache_write":"0.000000125","input_cache_write_1h":"0.0000002","overrides":[{"min_prompt_tokens":100000,"prompt":"0.0000005","completion":"0.0000025","input_cache_read":"0.00000005","input_cache_write":"0.000000625","input_cache_write_1h":"0.000001"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","tool_choice","tools","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"supported_efforts":["max","xhigh","high","medium","low"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.008290","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"8290","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.008290","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"8290000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.008290","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"8290","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.008290"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-haiku-5.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-sonnet-5.5/quote":{"post":{"summary":"Quote Claude Sonnet 5.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-sonnet-5.5":{"post":{"summary":"Run Claude Sonnet 5.5 via llm-claude-sonnet-5.5 API","description":"Claude Sonnet 5.5 is Anthropic's Sonnet-class model for well-scoped everyday work, succeeding Claude Sonnet 5 as a direct upgrade. It is especially strong at building features, fixing bugs, and producing...","tags":["compute"],"x-service-id":"llm-claude-sonnet-5.5","x-price":"$0.028871","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-sonnet-5.5/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.000002","completion":"0.00001","web_search":"0.01","input_cache_read":"0.0000001","input_cache_write":"0.0000025","input_cache_write_1h":"0.000004"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","tool_choice","tools","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":true,"supported_efforts":["max","xhigh","high","medium","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.028871","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"28871","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.028871","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"28871000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.028871","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"28871","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.028871"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-sonnet-5.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/claude-opus-5.5/quote":{"post":{"summary":"Quote Claude Opus 5.5 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/claude-opus-5.5":{"post":{"summary":"Run Claude Opus 5.5 via llm-claude-opus-5.5 API","description":"Claude Opus 5.5 is Anthropic's flagship model for demanding reasoning, coding, and long-horizon agentic work, succeeding Claude Opus 5. It is particularly strong at multi-step changes in large codebases, code...","tags":["compute"],"x-service-id":"llm-claude-opus-5.5","x-price":"$0.056313","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/claude-opus-5.5/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.000004","completion":"0.00002","web_search":"0.01","input_cache_read":"0.0000002","input_cache_write":"0.000005","input_cache_write_1h":"0.000008"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","stop","structured_outputs","tool_choice","tools","verbosity"],"contextWindow":1000000,"maxOutputTokens":128000,"reasoning":{"mandatory":true,"supported_efforts":["max","xhigh","high","medium","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.056313","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"56313","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.056313","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"56313000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.056313","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"56313","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.056313"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"anthropic/claude-opus-5.5","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-6.1-sol/quote":{"post":{"summary":"Quote GPT-6.1 Sol without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-6.1-sol":{"post":{"summary":"Run GPT-6.1 Sol via llm-gpt-6.1-sol API","description":"GPT-6.1 Sol is an upgrade to GPT-6 Sol from OpenAI, positioned below the flagship GPT-6 Astra in the GPT-6 series. It is suited for agentic coding, computer use, document-heavy professional...","tags":["compute"],"x-service-id":"llm-gpt-6.1-sol","x-price":"$0.035735","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-6.1-sol/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.000002","completion":"0.00001","web_search":"0.01","input_cache_read":"0.0000001","input_cache_write":"0.0000025","overrides":[{"min_prompt_tokens":272000,"prompt":"0.000004","completion":"0.000015","input_cache_read":"0.0000002","input_cache_write":"0.000005"}]}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools","verbosity"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":true,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.035735","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"35735","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.035735","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"35735000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.035735","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"35735","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.035735"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-6.1-sol","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/gpt-6-luna/quote":{"post":{"summary":"Quote GPT-6 Luna without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/gpt-6-luna":{"post":{"summary":"Run GPT-6 Luna via llm-gpt-6-luna API","description":"GPT-6 Luna is the fast, cost-efficient model in OpenAI's GPT-6 series, positioned below GPT-6 Sol. It is suited for high-volume and latency-sensitive workloads such as chat, classification, and lightweight agentic...","tags":["compute"],"x-service-id":"llm-gpt-6-luna","x-price":"$0.003144","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/gpt-6-luna/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.0000001","completion":"0.0000005","web_search":"0.01","input_cache_read":"0.00000001","input_cache_write":"0.000000125","overrides":[{"min_prompt_tokens":272000,"prompt":"0.0000002","completion":"0.00000075","input_cache_read":"0.00000002","input_cache_write":"0.00000025"}]}},"x-model-capabilities":{"available":true,"inputModalities":["file","image","text"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","max_completion_tokens","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","tool_choice","tools","verbosity"],"contextWindow":1050000,"maxOutputTokens":128000,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["max","xhigh","high","medium","low","none"],"default_effort":"medium"}},"x-payment-options":[{"scheme":"exact","price":"$0.003144","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3144","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.003144","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3144000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.003144","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3144","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.003144"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"openai/gpt-6-luna","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","file","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"verbosity":{"type":"string","description":"Model-supported verbosity; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/mistral-large-4/quote":{"post":{"summary":"Quote Mistral Large 4 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/mistral-large-4":{"post":{"summary":"Run Mistral Large 4 via llm-mistral-large-4 API","description":"Mistral Large 4 is a frontier multimodal (text and image input) model from Mistral AI built for reasoning, coding, and agentic workloads. It offers a 512K-token context window with up...","tags":["compute"],"x-service-id":"llm-mistral-large-4","x-price":"$0.006095","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/mistral-large-4/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.00000068","completion":"0.00000209","input_cache_read":"0.00000007"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logprobs","max_tokens","presence_penalty","reasoning","reasoning_effort","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_logprobs","top_p"],"contextWindow":524288,"maxOutputTokens":262144,"reasoning":{"mandatory":false,"default_enabled":true,"supported_efforts":["high","none"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.006095","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"6095","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.006095","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"6095000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.006095","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"6095","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.006095"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"mistralai/mistral-large-4-0","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/grok-4.7/quote":{"post":{"summary":"Quote Grok 4.7 without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/grok-4.7":{"post":{"summary":"Run Grok 4.7 via llm-grok-4.7 API","description":"Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...","tags":["compute"],"x-service-id":"llm-grok-4.7","x-price":"$0.028874","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/grok-4.7/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.000002","completion":"0.000006","web_search":"0.005","input_cache_read":"0.0000005","overrides":[{"min_prompt_tokens":200000,"prompt":"0.000004","completion":"0.000012","input_cache_read":"0.000001"}]}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","file"],"outputModalities":["text"],"streaming":true,"supportedParameters":["include_reasoning","logprobs","max_tokens","reasoning","reasoning_effort","response_format","seed","structured_outputs","temperature","tool_choice","tools","top_logprobs","top_p"],"contextWindow":500000,"maxOutputTokens":450000,"reasoning":{"mandatory":true,"default_enabled":true,"supported_efforts":["xhigh","high","medium","low"],"default_effort":"high"}},"x-payment-options":[{"scheme":"exact","price":"$0.028874","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"28874","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.028874","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"28874000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.028874","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"28874","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.028874"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"x-ai/grok-4.7","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","file"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"reasoning_effort":{"type":"string","description":"Model-supported reasoning_effort; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"plugins":{"type":"array","description":"Optional native PDF parser only; automatically enabled for file inputs.","items":{"type":"object","properties":{"id":{"type":"string","enum":["file-parser"]},"pdf":{"type":"object","properties":{"engine":{"type":"string","enum":["native"]}}}},"required":["pdf"]}}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/qwen3.8-omni-flash/quote":{"post":{"summary":"Quote Qwen3.8 Omni Flash without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","input_audio","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/qwen3.8-omni-flash":{"post":{"summary":"Run Qwen3.8 Omni Flash via llm-qwen3.8-omni-flash API","description":"Qwen3.8 Omni Flash is an omni-modal reasoning model from Alibaba, the first Qwen model built around agentic capabilities with native audio-video understanding. It is suited for audio-video analysis and summarization,...","tags":["compute"],"x-service-id":"llm-qwen3.8-omni-flash","x-price":"$0.002458","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/qwen3.8-omni-flash/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.00000015","completion":"0.00000047","input_cache_read":"0.000000016"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","audio","video"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logprobs","max_tokens","presence_penalty","reasoning","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1000000,"maxOutputTokens":131072,"reasoning":{"mandatory":false,"default_enabled":true,"supports_max_tokens":true}},"x-payment-options":[{"scheme":"exact","price":"$0.002458","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2458","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002458","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2458000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002458","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2458","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002458"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"qwen/qwen3.8-omni-flash","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","input_audio","video_url"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/mimo-v2.6-flash/quote":{"post":{"summary":"Quote MiMo-V2.6-Flash without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/mimo-v2.6-flash":{"post":{"summary":"Run MiMo-V2.6-Flash via llm-mimo-v2.6-flash API","description":"MiMo-V2.6-Flash is an open-source foundation model developed by Xiaomi. Built on a Mixture-of-Experts architecture with 309B total parameters and 15B activated per token, it employs a hybrid attention mechanism for...","tags":["compute"],"x-service-id":"llm-mimo-v2.6-flash","x-price":"$0.002389","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/mimo-v2.6-flash/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.00000014","completion":"0.00000028","input_cache_read":"0.0000000028"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video","audio"],"outputModalities":["text"],"streaming":true,"supportedParameters":["frequency_penalty","include_reasoning","logit_bias","logprobs","max_tokens","min_p","presence_penalty","reasoning","repetition_penalty","response_format","seed","stop","structured_outputs","temperature","tool_choice","tools","top_k","top_logprobs","top_p"],"contextWindow":1048576,"maxOutputTokens":131072,"reasoning":{"mandatory":false}},"x-payment-options":[{"scheme":"exact","price":"$0.002389","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2389","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.002389","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"2389000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.002389","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"2389","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.002389"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"xiaomi/mimo-v2.6-flash","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"logit_bias":{"type":"object","description":"Model-supported logit_bias; see /docs/llm-capabilities.md."},"logprobs":{"type":"boolean","description":"Model-supported logprobs; see /docs/llm-capabilities.md."},"min_p":{"type":"number","description":"Model-supported min_p; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"repetition_penalty":{"type":"number","description":"Model-supported repetition_penalty; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"seed":{"type":"integer","description":"Model-supported seed; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"tool_choice":{"oneOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object"}],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"top_k":{"type":"integer","description":"Model-supported top_k; see /docs/llm-capabilities.md."},"top_logprobs":{"type":"integer","description":"Model-supported top_logprobs; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/llm/mimo-v2.6-pro/quote":{"post":{"summary":"Quote MiMo-V2.6-Pro without payment","tags":["discovery"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"tool_choice":{"type":"string","enum":["auto","required"],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}},"responses":{"200":{"description":"Prepaid request quote in USD"},"400":{"description":"Unsupported request"}}}},"/api/llm/mimo-v2.6-pro":{"post":{"summary":"Run MiMo-V2.6-Pro via llm-mimo-v2.6-pro API","description":"MiMo-V2.6-Pro is the flagship foundation model developed by Xiaomi. Built at a scale of over 1T parameters, it is designed to push the ceiling of capability for the most demanding...","tags":["compute"],"x-service-id":"llm-mimo-v2.6-pro","x-price":"$0.004413","x-pricing":{"type":"request_quote","minimumGrossMargin":0.3,"quoteEndpoint":"/api/llm/mimo-v2.6-pro/quote","settlement":"prepaid","priceDescription":"Starting price for a one-token text request; POST the exact body to the quote endpoint or read PAYMENT-REQUIRED. Media reserves full context. No automatic refunds after settlement.","verifiedAt":"2026-10-08","upstreamRates":{"prompt":"0.000000435","completion":"0.00000087","input_cache_read":"0.0000000036"}},"x-model-capabilities":{"available":true,"inputModalities":["text","image","video","audio"],"outputModalities":["text"],"streaming":true,"supportedParameters":["reasoning","include_reasoning","max_tokens","temperature","top_p","stop","response_format","tools","tool_choice","frequency_penalty","presence_penalty","structured_outputs"],"contextWindow":1048576,"maxOutputTokens":131072,"reasoning":{"mandatory":false},"supportedToolChoices":["auto","required"]},"x-payment-options":[{"scheme":"exact","price":"$0.004413","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"4413","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.004413","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"4413000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.004413","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"4413","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","min":"0.004413"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["choices","content"],"properties":{"model":{"type":"string"},"content":{"type":"string","description":"Convenience copy of the first assistant message's text."},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":["string","null"]},"tool_calls":{"type":"array","items":{"type":"object"}}}},"finish_reason":{"type":["string","null"]}}}},"usage":{"type":"object","description":"Provider token and usage accounting, when returned."}}},"example":{"model":"xiaomi/mimo-v2.6-pro","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}],"content":"Hello!"}},"text/event-stream":{}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["role"],"anyOf":[{"required":["content"]},{"required":["tool_calls"]}],"properties":{"role":{"type":"string","enum":["system","developer","user","assistant","tool"]},"content":{"oneOf":[{"type":"string"},{"type":"null"},{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["text","image_url","video_url","input_audio"]}},"additionalProperties":true}}]},"refusal":{"type":["string","null"]},"cache_control":{"type":"object"},"name":{"type":"string"},"tool_call_id":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object"}},"reasoning":{"type":"string"},"reasoning_details":{"type":"array","items":{"type":"object"}},"annotations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"description":"Text or model-supported multimodal messages; assistant tool calls may have null content"},"max_tokens":{"type":"integer","description":"Total output budget, including reasoning. Use this or max_completion_tokens.","example":1024},"max_completion_tokens":{"type":"integer","description":"Alias for total output budget; bounded by model maxOutputTokens."},"stream":{"type":"boolean","description":"Return live OpenAI-compatible SSE after payment settlement."},"stream_options":{"type":"object","description":"Optional include_usage boolean; usage is always requested upstream."},"reasoning":{"type":"object","description":"Model-supported reasoning; see /docs/llm-capabilities.md."},"include_reasoning":{"type":"boolean","description":"Model-supported include_reasoning; see /docs/llm-capabilities.md."},"temperature":{"type":"number","description":"Model-supported temperature; see /docs/llm-capabilities.md."},"top_p":{"type":"number","description":"Model-supported top_p; see /docs/llm-capabilities.md."},"stop":{"oneOf":[{"type":"string"},{"type":"array","maxItems":4,"items":{"type":"string"}}],"description":"Model-supported stop; see /docs/llm-capabilities.md."},"response_format":{"type":"object","description":"Model-supported response_format; see /docs/llm-capabilities.md."},"tools":{"type":"array","description":"Client-executed function definitions; return results using role=tool and tool_call_id.","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object"},"strict":{"type":"boolean"}}}},"required":["function"]}},"tool_choice":{"type":"string","enum":["auto","required"],"description":"Model-supported tool_choice; see /docs/llm-capabilities.md."},"frequency_penalty":{"type":"number","description":"Model-supported frequency_penalty; see /docs/llm-capabilities.md."},"presence_penalty":{"type":"number","description":"Model-supported presence_penalty; see /docs/llm-capabilities.md."}},"required":["messages"],"additionalProperties":false}}}}}},"/api/image/gpt-image-2.5":{"post":{"summary":"Run GPT Image 2.5 via image-gpt-image-2.5 API","description":"Generate one 1024×1024 PNG with GPT Image 2.5 Flare at high quality","tags":["compute"],"x-service-id":"image-gpt-image-2.5","x-price":"$0.25","x-pricing":{"type":"fixed","verifiedAt":"2026-10-08","source":"https://fal.ai/models/openai/gpt-image-2.5/flare/text-to-image","notes":"$0.05268 listed image output at 1024×1024/high, plus text tokens. $0.15 conservative allowance with a 2,000 UTF-8-byte prompt cap; actual token usage must be checked in live validation."},"x-model-capabilities":{"inputModalities":["text"],"outputModalities":["image"],"fixedSettings":{"image_size":{"width":1024,"height":1024},"quality":"high","num_images":1,"output_format":"png","background":"auto"}},"x-payment-options":[{"scheme":"exact","price":"$0.25","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"250000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.25","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"250000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.25","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"250000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.25"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["images"],"properties":{"model":{"type":"string"},"request_id":{"type":"string"},"inference_time_ms":{"type":"number"},"images":{"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"width":{"type":"integer"},"height":{"type":"integer"}}}}}},"example":{"images":[{"url":"https://example.com/generated-image.png","width":1024,"height":1024}]}}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":2000,"pattern":"\\S","description":"Text prompt; non-empty, at most 2000 UTF-8 bytes. Output settings are fixed; no other fields accepted."}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/video/seedance-2.5":{"post":{"summary":"Run Seedance 2.5 via video-seedance-2.5 API","description":"Generate a 5-second 720p landscape video with synchronized audio using Seedance 2.5","tags":["compute"],"x-service-id":"video-seedance-2.5","x-price":"$3.79","x-pricing":{"type":"fixed","verifiedAt":"2026-10-08","source":"https://fal.ai/models/bytedance/seedance-2.5/text-to-video","notes":"$0.0214/1,000 output tokens; 1280×720×5×24/1024 = 108,000 tokens ($2.3112). $2.50 allowance covers the provider's higher approximate per-second figure. Fixed size, duration and ratio."},"x-model-capabilities":{"inputModalities":["text"],"outputModalities":["video"],"fixedSettings":{"duration":"5","resolution":"720p","aspect_ratio":"16:9","generate_audio":true,"draft":false,"bitrate_mode":"standard","codec":"H264"},"asynchronous":true,"statusEndpoint":"/api/media/jobs","ticketLifetimeSeconds":86400},"x-payment-options":[{"scheme":"exact","price":"$3.79","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"3790000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$3.79","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"3790000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$3.79","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"3790000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"3.79"}},"security":[],"responses":{"202":{"description":"Video job accepted; poll status_url without another payment","content":{"application/json":{"schema":{"type":"object","required":["status","request_id","status_url"],"properties":{"model":{"type":"string"},"request_id":{"type":"string"},"status":{"type":"string","enum":["queued"]},"status_url":{"type":"string","description":"Private signed URL. GET without payment every 5 seconds until status is completed and video.url is present. Valid for 24 hours."},"poll_after_seconds":{"type":"integer"},"expires_in_seconds":{"type":"integer"}}},"example":{"status":"queued","request_id":"example-job","status_url":"https://x402engine.app/api/media/jobs?token=<job-ticket>","poll_after_seconds":5,"expires_in_seconds":86400}}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":2000,"pattern":"\\S","description":"Text prompt; non-empty, at most 2000 UTF-8 bytes. Output settings are fixed; no other fields accepted."}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/video/minimax-h3":{"post":{"summary":"Run MiniMax H3 via video-minimax-h3 API","description":"Generate a 5-second 768P landscape video with native audio using MiniMax H3","tags":["compute"],"x-service-id":"video-minimax-h3","x-price":"$1.22","x-pricing":{"type":"fixed","verifiedAt":"2026-10-08","source":"https://fal.ai/learn/devs/minimax-h3-vs-minimax-h3-max","notes":"Current comparison lists $0.06/s at 768P; older official comparison lists $0.16/s. Reserve the higher $0.16×5=$0.80 until authenticated billing is verified."},"x-model-capabilities":{"inputModalities":["text"],"outputModalities":["video"],"fixedSettings":{"duration":5,"resolution":"768P","aspect_ratio":"16:9","prompt_expansion_mode":"disabled","enable_safety_checker":true},"asynchronous":true,"statusEndpoint":"/api/media/jobs","ticketLifetimeSeconds":86400},"x-payment-options":[{"scheme":"exact","price":"$1.22","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"1220000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$1.22","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"1220000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$1.22","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"1220000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"1.22"}},"security":[],"responses":{"202":{"description":"Video job accepted; poll status_url without another payment","content":{"application/json":{"schema":{"type":"object","required":["status","request_id","status_url"],"properties":{"model":{"type":"string"},"request_id":{"type":"string"},"status":{"type":"string","enum":["queued"]},"status_url":{"type":"string","description":"Private signed URL. GET without payment every 5 seconds until status is completed and video.url is present. Valid for 24 hours."},"poll_after_seconds":{"type":"integer"},"expires_in_seconds":{"type":"integer"}}},"example":{"status":"queued","request_id":"example-job","status_url":"https://x402engine.app/api/media/jobs?token=<job-ticket>","poll_after_seconds":5,"expires_in_seconds":86400}}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":2000,"pattern":"\\S","description":"Text prompt; non-empty, at most 2000 UTF-8 bytes. Output settings are fixed; no other fields accepted."}},"required":["prompt"],"additionalProperties":false}}}}}},"/api/tts/openrouter":{"post":{"summary":"Run Text-to-Speech (OpenRouter) via tts-openrouter API","description":"Voxtral Mini TTS through OpenRouter; 30 voices, MP3 audio, up to 2000 UTF-8 bytes of text","tags":["compute"],"x-service-id":"tts-openrouter","x-price":"$0.06","x-payment-options":[{"scheme":"exact","price":"$0.06","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"60000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USD Coin","version":"2"}},{"scheme":"exact","price":"$0.06","network":"eip155:4326","asset":"0xFAfDdbb3FC7688494971a79cc65DCa3EF82079E7","amount":"60000000000000000","payTo":"0x7dd5Be069f2d2eAd75eC7C3423B116fF043c2629","maxTimeoutSeconds":300,"extra":{"name":"USDm","version":"2"}},{"scheme":"exact","price":"$0.06","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"60000","payTo":"Gzehfseq1k9AcHFSoV7qHmDGQx92nLMw78XXdqVWQQWa","maxTimeoutSeconds":300,"extra":{"feePayer":"GVJJ7rdGiXr5xaYbRwRbjfaJL7fmwRygFi1H6aGqDveb"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.06"}},"security":[],"responses":{"200":{"description":"Successful paid response","content":{"application/json":{"schema":{"type":"object","required":["audio","format"],"properties":{"audio":{"type":"string","description":"Base64-encoded audio bytes. Decode to save or play the audio."},"format":{"type":"string","description":"The audio encoding selected for this request."}}},"example":{"audio":"<base64-encoded audio>","format":"mp3"}}}},"402":{"description":"Payment required"},"4XX":{"description":"Invalid request or payment"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Non-empty text, at most 2000 UTF-8 bytes","example":"Hello world"},"voice":{"type":"string","description":"Voxtral preset voice","enum":["en_paul_sad","en_paul_neutral","en_paul_happy","en_paul_frustrated","en_paul_excited","en_paul_confident","en_paul_cheerful","en_paul_angry","gb_oliver_neutral","gb_oliver_sad","gb_oliver_excited","gb_oliver_curious","gb_oliver_confident","gb_oliver_cheerful","gb_oliver_angry","gb_jane_sarcasm","gb_jane_confused","gb_jane_shameful","gb_jane_sad","gb_jane_neutral","gb_jane_jealousy","gb_jane_frustrated","gb_jane_curious","gb_jane_confident","fr_marie_sad","fr_marie_neutral","fr_marie_happy","fr_marie_excited","fr_marie_curious","fr_marie_angry"],"default":"en_paul_neutral"},"format":{"type":"string","description":"Fixed MP3 output","enum":["mp3"],"default":"mp3"}},"required":["text"],"additionalProperties":false}}}}}}},"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"X-PAYMENT","description":"Base64-encoded x402 payment payload."}}}}