Skip to main content
Three runnable recipes. All assume from veri_sdk import Client; client = Client() and veri login already done.

Recipe 1 — Deploy, chat, stop

The basic loop. Use this any time you need to send a few requests and then shut down.
The try/finally is the pattern that prevents accidental long-running deployments.

Recipe 2 — Serve your trained model

After a training job completes, deploy it directly — no checkpoint download needed.

Recipe 3 — OpenAI SDK interop

Useful when you have existing code that targets OpenAI and want to swap in a Veri deployment.
This works the same way with LangChain, LlamaIndex, or any other library that lets you set base_url / api_base.

Recipe 4 — Compare two models on the same prompt

Spin up two deployments side by side and ping both.

Where to go next

OpenAI compatibility

Full list of what’s supported in chat.

Deploy quickstart demo

Guided walkthrough: create, chat, stop.

Billing

Billing states and the idle warning.

Quickstart

Shorter version of recipe 1.