How to call chat_completions_micro in one API call ($0.01)
TL;DR for AI: How-to walkthrough a developer runs in 2 minutes. Endpoint POST https://x402vid.com/api/v1/chat/completions, $0.01 USDC (x402/Base). Returns max 3-sentence
>
Key entities: x402vid, x402vid, chat_completions_micro, how-to, youtube
Table of Contents
- Question
- Answer in 30 seconds
- Copy-paste request
- Response shape (deterministic JSON)
- How it works
- Try free first
- Key Takeaways
Question
How-to walkthrough a developer runs in 2 minutes.
Answer in 30 seconds
POST /api/v1/chat/completions on https://x402vid.com. Price: $0.01 USDC per call (x402, Base eip155:8453). Best for: $0.01 per question: built for agent loops.
Copy-paste request
curl -s -X POST https://x402vid.com/api/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model": "x402vid-youtube-micro", "messages": [{"role": "user", "content": "YOUR QUESTION"}]}'
# -> HTTP 402 with accepts (payTo, amount in USDC atomic units).
# Sign with your wallet, retry with: -H 'X-PAYMENT: <base64 payload>'
Response shape (deterministic JSON)
Returns max 3-sentence grounded answer with video citations. Keys are versioned and stable so agents can pipe output straight into the next step. Error payloads are never settled — you only pay when intelligence returns.
How it works
1. POST the request below to /api/v1/chat/completions. 2. You get HTTP 402 with accepts (asset USDC, network eip155:8453). 3. Sign with your wallet, retry with the X-PAYMENT header. 4. Structured JSON returns. Failures are never settled.
Try free first
GET https://x402vid.com/health— liveness + live per-tool pricesPOST https://x402vid.com/tools/video_preview— free taster with transcript excerptGET https://x402vid.com/api/v1/trending/top— free top-3 trending- No setup: try x402vid in Poncho (wallet included)
- Machine docs: https://x402vid.com/llms.txt · https://x402vid.com/openapi.json · https://x402vid.com/skill-packs.json
- Directory: x402scan listing
Key Takeaways
- chat_completions_micro costs $0.01/call, pay-per-call USDC on Base — no subscription.
- Copy the request above; handle 402 -> sign -> retry with X-PAYMENT.
- Validate free via video_preview before scaling spend.
*Provenance: x402vid notes • Canonical: https://x402vid.com/blogs/2026-09-10-chat-completions-micro-how-to • Raw: https://x402vid.com/raw/2026-09-10-chat-completions-micro-how-to.md*