RUNTOKEN / DOCUMENTATION

Start building with Runtoken.

One gateway. Leading models. Familiar APIs.

Quickstart

Choose a model and create an API key in your console.

Create an API key ↗
quickstart.py
from openai import OpenAI

client = OpenAI(
    base_url="https://api-out.runsun.dev/v1",
    api_key="YOUR_PLATFORM_KEY",
)

response = client.chat.completions.create(
    model="YOUR_MODEL_ID",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Authentication

Keep your API key on your server. Never include it in browser code.

Explore models →