Quickstart

You need credit and an API key before making a request.

  1. Create an account, confirm you are 18 or older, and add credit from Billing.
  2. Create a key under API keys. Copy the secret when it appears. Arscelare cannot show it again.
  3. Use https://api.arscelare.ai/v1 as the base URL in your client. Send the key as a bearer token.

curl

curl https://api.arscelare.ai/v1/chat/completions \
  -H "Authorization: Bearer $ARSCELARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"ars-1","messages":[{"role":"user","content":"Continue the scene."}]}'

JavaScript

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.ARSCELARE_API_KEY,
  baseURL: "https://api.arscelare.ai/v1",
});

const completion = await client.chat.completions.create({
  model: "ars-1",
  messages: [{ role: "user", content: "Continue the scene." }],
});
console.log(completion.choices[0].message.content);

Python

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ARSCELARE_API_KEY"],
    base_url="https://api.arscelare.ai/v1",
)

completion = client.chat.completions.create(
    model="ars-1",
    messages=[{"role": "user", "content": "Continue the scene."}],
)
print(completion.choices[0].message.content)