<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using Lizard from your own code (Python, Node, curl)]]></title><description><![CDATA[<p dir="auto">Lizard serves the <strong>same API as OpenAI</strong>, on your machine. If you already have code written against a cloud AI service, you usually change one line.</p>
<p dir="auto">Start the server first:</p>
<pre><code>lizard-llm serve --model active
</code></pre>
<p dir="auto"><strong>Python</strong></p>
<pre><code class="language-python">from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8013/v1", api_key="lizard-local")
res = client.chat.completions.create(
    model="active",
    messages=[{"role": "user", "content": "Hello"}],
)
print(res.choices[0].message.content)
</code></pre>
<p dir="auto"><strong>Node.js</strong></p>
<pre><code class="language-js">import OpenAI from "openai";
const client = new OpenAI({ baseURL: "http://127.0.0.1:8013/v1", apiKey: "lizard-local" });
</code></pre>
<p dir="auto"><strong>curl</strong></p>
<pre><code>curl http://127.0.0.1:8013/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"active","messages":[{"role":"user","content":"Hi"}]}'
</code></pre>
<p dir="auto">The key is ignored — nothing leaves your computer — but most clients insist on a value, so give it anything.</p>
<p dir="auto"><strong>Anything that reads <code>OPENAI_BASE_URL</code></strong> (LangChain, LlamaIndex, lots of editor plugins) can point at Lizard the same way:</p>
<pre><code>OPENAI_BASE_URL=http://127.0.0.1:8013/v1
OPENAI_API_KEY=lizard-local
</code></pre>
<p dir="auto">Full docs: <a href="https://lizard-llm.qendryx.com/docs.html" rel="nofollow ugc">https://lizard-llm.qendryx.com/docs.html</a></p>
<p dir="auto">What have you wired it into?</p>
]]></description><link>https://community.lizard-llm.qendryx.com/topic/15/using-lizard-from-your-own-code-python-node-curl</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 01:28:53 GMT</lastBuildDate><atom:link href="https://community.lizard-llm.qendryx.com/topic/15.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Jul 2026 10:59:00 GMT</pubDate><ttl>60</ttl></channel></rss>