ZaltharDocs

Get started

Quickstart

Create an account, upload a dataset, fine-tune a model and call it from code.

This guide takes you from an empty account to calling your own fine-tuned model. It takes a few minutes of your time, plus however long the training run takes.

1. Create an account

Sign up at app.zalthar.com. When you create your organisation you choose its data region. Datasets, checkpoints and models are stored in that region, and it cannot be changed once the organisation holds data. See Organisations and roles.

2. Add credits

Training and API calls are paid for from prepaid credits in USD. Open Billing and top up any amount from $10. While self-serve top-ups are being switched on, ask us to add credits. See Billing and spend controls.

3. Upload a dataset

Prepare a JSONL file with one conversation per line:

{"messages": [{"role": "system", "content": "You are Acme's support assistant."}, {"role": "user", "content": "My order arrived damaged."}, {"role": "assistant", "content": "Sorry about that. I can send a replacement today or refund you in full. Which would you prefer?"}]}
{"messages": [{"role": "user", "content": "Where is my parcel?"}, {"role": "assistant", "content": "Send me your order number and I will check the latest tracking scan."}]}

Open Datasets, choose Upload and drop the file in. The console validates every row and shows any problems by line number. When the dataset is Ready you can train on it. More in Dataset formats.

4. Start a training job

Open Training and choose New job:

  1. Pick the dataset.
  2. Pick a base model from the catalogue.
  3. Leave the default hyperparameters for your first run, or adjust them. See Hyperparameters.
  4. Review the cost estimate, optionally set a budget, and start the job.

The job page shows its status, the loss curve, live logs and the cost so far.

5. Create an API key

Open Settings → API keys and create a key with the inference scope. Copy it straight away: it is shown only once. Store it in an environment variable:

export ZALTHAR_API_KEY="zal-..."

6. Call your model

When the job succeeds, its model appears under Models with a slug like acme/support-triage. Call it with any OpenAI SDK by changing the base URL:

from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.zalthar.com/v1",
    api_key=os.environ["ZALTHAR_API_KEY"],
)

reply = client.chat.completions.create(
    model="acme/support-triage",
    messages=[{"role": "user", "content": "My order arrived damaged."}],
)
print(reply.choices[0].message.content)

Next: read Calling your model for streaming, timeouts and other details.