Raon
Meet Raon-1 nano (E1.5B), smaller and faster!View on Hugging Face (new tab)
Docs

SDKs and frameworks

Point the OpenAI and Anthropic SDKs, LangChain or the Vercel AI SDK at Raon.

Use the official OpenAI and Anthropic SDKs for Raon's supported text generation features. Set the base URL, API key and model ID, then check the supported features and limits when migrating existing code. Matching an API format does not imply support for every feature of its original provider.

ClientBase URLKey
OpenAI SDKs, and frameworks built on themhttps://raon-api.krafton.ai/v1api_key / apiKey
Anthropic SDKshttps://raon-api.krafton.ai (the SDK adds /v1)api_key / apiKey

OpenAI SDK

# pip install openai
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://raon-api.krafton.ai/v1",
    api_key=os.environ["RAON_API_KEY"],
)

The same client calls both Chat Completions and Responses.

Anthropic SDK

# pip install anthropic
import os
from anthropic import Anthropic

client = Anthropic(
    base_url="https://raon-api.krafton.ai",
    api_key=os.environ["RAON_API_KEY"],
)

This client calls Messages.

LangChain

ChatOpenAI takes Raon's base URL:

# pip install langchain-openai
import os
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    model="raon-1-mini",
    base_url="https://raon-api.krafton.ai/v1",
    api_key=os.environ["RAON_API_KEY"],
)
print(llm.invoke("Hello!").content)

Vercel AI SDK

Use the OpenAI-compatible provider. It returns the model's reasoning as reasoningText:

// npm install ai @ai-sdk/openai-compatible
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
import { generateText } from "ai";

const raon = createOpenAICompatible({
  name: "raon",
  baseURL: "https://raon-api.krafton.ai/v1",
  apiKey: process.env.RAON_API_KEY,
});

const { text } = await generateText({
  model: raon("raon-1-mini"),
  prompt: "Hello!",
});
console.log(text);

Moving code from OpenAI or Anthropic

  • Model ID. Use raon-1-mini. Other providers' model names, such as gpt-4o or claude-sonnet-4-5, return 403 model_not_allowed.
  • Parameters. Raon always uses temperature=1.0, top_p=0.95, top_k=20, min_p=0, frequency_penalty=0 and repetition_penalty=1.0; a value you send is replaced. presence_penalty accepts 0 to 1.5, a value outside that range is clamped, and 1.5 applies when you omit it; on the Messages API it has no effect. The output limit (max_tokens, max_completion_tokens or max_output_tokens) and other parameters such as stop, seed and response_format are passed to the model as they are. Reasoning effort is set with none, low, medium, high, xhigh or max, and none turns reasoning off; see Reasoning.
  • No server-side state. store is always off. Send the whole conversation on every request; see What is refused.
  • Tools. Function tools work on all three APIs. Of the tools a provider runs for you, only web search and page fetch are available.
  • Text only. The model does not read images, audio or files.

On this page