Chat
Generate stateless multilingual assistant responses with the synchronous or asynchronous Python client.
Synchronous client
Pass a single prompt string to client.chat():
response.text is a convenience property returning the assistant's reply string. The full ChatMessage is also available via response.message or response.choices[0].message.
Multi-turn conversations
OrbitalsAI chat completions are stateless. Provide the full conversation history alternating between user and assistant turns, starting and ending with user:
You can also pass a list of ChatMessage objects:
System instructions
Pass instructions to establish application context and model behavior:
Async client
For asynchronous applications, use AsyncClient:
Response fields
ChatCompletion provides both convenience shortcuts and standard OpenAI-compatible fields:
response.text: Assistant reply text (str).response.message:ChatMessage(role="assistant", content=...).response.choices: List ofChatChoiceitems (withindex,message,finish_reason).response.usage:ChatUsagewithprompt_tokens,completion_tokens,total_tokens, andcost.response.model: Model identifier ("Perigee-1-text").response.id: Unique completion ID.
See the Chat guide, Chat API reference, and Errors and limits.