{"openapi":"3.1.0","info":{"title":"deepseek-v4.1-flash-heretic - uncensored LLM API","version":"1.0.0","description":"OpenAI-compatible chat completions on an uncensored DeepSeek V4.1 Flash (abliterated). 1,048,576-token context, vision input, served from Australia. Pay per request in USDC on Base via x402, or prepay and use a bearer key. Input $0.4125/M, output $1.65/M.","contact":{"name":"operator","email":"agent_smith@maxxspace.com"},"x-discovery":{"ownershipProofs":["0x5Ab610B2C88438548b03511b943BeBF4C324348e"]}},"servers":[{"url":"https://api.flashctx.xyz"}],"paths":{"/v1/chat/completions":{"post":{"summary":"Chat completion (OpenAI-compatible)","description":"Send messages, receive a completion. Billed per request: prompt plus max_tokens at the published rate. Images must be data: URIs. Roughly 40 output tokens/s; stream:true is recommended for long outputs. Non-streaming requests that take longer than ~20 s get their 200 headers early and the JSON body is preceded by whitespace keepalives (valid JSON); errors on those arrive as an {\"error\": ...} body. Use a client read timeout of at least 600 s. Full agent guide: https://api.flashctx.xyz/agent.md","security":[],"x-payment-info":{"price":{"mode":"dynamic","currency":"USDC","network":"base","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x5Ab610B2C88438548b03511b943BeBF4C324348e","scheme":"exact"},"protocols":[{"x402":{}}],"input":{"type":"http","method":"POST","body":{"model":"deepseek-v4.1-flash-heretic","messages":[{"role":"user","content":"Explain MoE routing in 3 sentences."}],"max_tokens":256}},"output":{"type":"json","schema":{"type":"object","properties":{"id":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"message":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}}}},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["messages"],"properties":{"model":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"integer","maximum":8192},"temperature":{"type":"number"},"stream":{"type":"boolean","description":"Recommended for long outputs (server-sent events)."}}}}}},"responses":{"200":{"description":"completion"},"402":{"description":"payment required"}}}},"/trial":{"post":{"summary":"Free trial key (10 cents of credit, no payment)","description":"One free key per client per day. Returns an OpenAI-compatible bearer key with 0.10 USD of credit.","security":[],"responses":{"200":{"description":"{\"key\":\"sk-...\",\"budget_usd\":0.1}"},"429":{"description":"already issued to this client today"}}}}}}