{"slug":"apix402data-com-api-v1-chat-completions-d898d4","title":"OpenAI-compatible POST /v1/chat/completions & /api/v1/chat/completions inference","host":"apix402data.com","method":"POST","resource":"https://apix402data.com/api/v1/chat/completions","category":"other","description":"OpenAI-compatible POST /v1/chat/completions & /api/v1/chat/completions inference powered by local GPU qwen3.5:4b with JSON mode ($0.0018/call — 10% cheaper than $0.002).","price_listed":0.0018,"price_asked":0.0018,"state":"answering","state_label":"Answering","checks_7d":3,"answered_7d":3,"latency_ms_median":281,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"max_tokens":256,"messages":[{"content":"Summarize Base x402 micropayments in one sentence.","role":"user"}],"model":"qwen3.5:4b","temperature":0.2},"bodyType":"json","inputSchema":{"properties":{"max_tokens":{"default":512,"description":"Maximum completion tokens (1-2048)","maximum":2048,"minimum":1,"type":"integer"},"messages":{"description":"List of {role: system|user|assistant, content: string} messages","items":{"additionalProperties":true,"type":"object"},"maxItems":32,"type":"array"},"model":{"default":"qwen3.5:4b","description":"Model name (routed to local GPU qwen3.5:4b)","maxLength":80,"type":"string"},"response_format":{"description":"Optional OpenAI response_format (json_object or json_schema)","type":"string"},"stop":{"description":"Optional stop sequence(s)","type":"string"},"stream":{"default":false,"description":"Streaming is unsupported over x402; must be false","type":"boolean"},"temperature":{"default":0.2,"description":"Sampling temperature (0.0-2.0)","maximum":2,"minimum":0,"type":"number"},"timeout_ms":{"description":"Optional LLM deadline in ms (504, no charge, if exceeded)","type":"string"}},"required":["messages"],"type":"object"},"method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"max_tokens":{"default":512,"description":"Maximum completion tokens (1-2048)","maximum":2048,"minimum":1,"type":"integer"},"messages":{"description":"List of {role: system|user|assistant, content: string} messages","items":{"additionalProperties":true,"type":"object"},"maxItems":32,"type":"array"},"model":{"default":"qwen3.5:4b","description":"Model name (routed to local GPU qwen3.5:4b)","maxLength":80,"type":"string"},"response_format":{"description":"Optional OpenAI response_format (json_object or json_schema)","type":"string"},"stop":{"description":"Optional stop sequence(s)","type":"string"},"stream":{"default":false,"description":"Streaming is unsupported over x402; must be false","type":"boolean"},"temperature":{"default":0.2,"description":"Sampling temperature (0.0-2.0)","maximum":2,"minimum":0,"type":"number"},"timeout_ms":{"description":"Optional LLM deadline in ms (504, no charge, if exceeded)","type":"string"}},"required":["messages"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"inputSchema":{"type":"object"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"outputSchema":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0018,"price_match":true,"latency_ms":281,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0018,"price_match":true,"latency_ms":278,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0018,"price_match":true,"latency_ms":300,"error":null}],"description_full":"OpenAI-compatible POST /v1/chat/completions & /api/v1/chat/completions inference powered by local GPU qwen3.5:4b with JSON mode ($0.0018/call — 10% cheaper than $0.002).","last_updated":"2026-11-25T01:32:46.899Z","schemes":["exact"]}