premium
This is the public profile name. Send it as model to https://llmcode.org/v1. LLMcode routes this name to the upstream.
Input, per 1M tokens$3
Output, per 1M tokens$12
Cached input, per 1M tokens$0
Examples
cURL
curl https://llmcode.org/v1/chat/completions \
-H "Authorization: Bearer $LLMCODE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"premium","messages":[{"role":"user","content":"hi"}]}'Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llmcode.org/v1",
api_key=os.environ["LLMCODE_API_KEY"],
)
reply = client.chat.completions.create(
model="premium",
messages=[{"role": "user", "content": "hi"}],
)
print(reply.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://llmcode.org/v1",
apiKey: process.env.LLMCODE_API_KEY,
});
const reply = await client.chat.completions.create({
model: "premium",
messages: [{ role: "user", content: "hi" }],
});TypeScript
import OpenAI from "openai";
import type { ChatCompletionMessageParam } from "openai/resources/chat/completions";
const client = new OpenAI({
baseURL: "https://llmcode.org/v1",
apiKey: process.env.LLMCODE_API_KEY,
});
const messages: ChatCompletionMessageParam[] = [
{ role: "user", content: "hi" },
];
const reply = await client.chat.completions.create({
model: "premium",
messages,
});Model names in the API are LLMcode profiles with their own routing. They do not mean direct access to the same-named models of OpenAI LLC or Anthropic PBC. Trademarks belong to their owners. The service is independent and is not affiliated with OpenAI or Anthropic.