SDKs

There is no JouleCloud-specific SDK to learn. Because the API is OpenAI-compatible, you use the official OpenAI libraries and change only the base URL and key.

Official OpenAI libraries

Set the base URL to https://api.jouledns.com/v1 and your org key as the API key.

# pip install openai
import os
from openai import OpenAI

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

r = client.chat.completions.create(
    model="qwen2.5-7b-instruct",
    messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)

Other languages

Any OpenAI-compatible client works — Go, Ruby, Java, or a raw HTTP request. Point it at https://api.jouledns.com/v1 and send Authorization: Bearer <key>. See Chat Completions for the request and response shapes.