Client SDKs
Client SDKs are for server-side applications that call JoyToken directly. They wrap the current public developer APIs (not Console management APIs) and add a bounded, automatic tool-calling loop on top.
Pick a language, install, set two environment variables, and make your first call in under five minutes.
Choose an SDK
Runnable example projects: TypeScript example · Go example.
What you can do
Every capability below links to a complete, copy-and-run example.
Streaming applies to Chat Completions, Responses, and Anthropic Messages. Image generation and editing are non-streaming.
How the tool-calling loop works
The client SDKs run a bounded tool-calling loop over the compatible APIs: when the model returns tool_calls, the SDK executes the matching local tools and feeds their results back automatically, repeating until the model returns a final message or the step limit is reached. The safe, zero-config calculator and datetime tools are injected by default.
See the full tool-calling reference for TypeScript or Go.
Required values
You only ever need two things, plus the protocol-specific base URL.
OpenAI
Anthropic
Base URL: JOY_TOKEN_OPENAI_BASE_URL from Environments.
