ashllm.comGo to chat

The OpenAI and Anthropic SDKs

Change the base URL and the key. Streaming, tool calling and JSON output work the way they do anywhere else.

OpenAI SDK, Python

from openai import OpenAI

client = OpenAI(
    base_url="https://ashllm.com/v1",
    api_key="sk-kn-...",
)

reply = client.chat.completions.create(
    model="deepseek-v4.1-flash-1017-uncensored",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)

OpenAI SDK, TypeScript

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://ashllm.com/v1",
  apiKey: process.env.ASHLLM_API_KEY,
});

const reply = await client.chat.completions.create({
  model: "deepseek-v4.1-flash-1017-uncensored",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(reply.choices[0].message.content);

Anthropic format

The Messages API is served at https://ashllm.com/v1/messages, so anything built on the Anthropic SDK works with a changed base URL.

curl https://ashllm.com/v1/messages \
  -H "x-api-key: $ASHLLM_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash-1017-uncensored",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'