Create an assistant with the API or an SDK
To create an assistant, callcreate with a name and, optionally, instructions, metadata, and a region:
name: A name for the assistant, unique within the project.instructions: A directive the assistant applies to every response it gives.metadata: Optional key-value pairs, up to 16 KB, that help you organize assistants.region: Where the assistant is deployed,us(default) oreu. You can’t change it later.
Instructions (maximum size 16 KB) are included in every chat API call. Longer instructions increase input token costs for each request and consume more of the LLM’s context window, reducing available space for retrieved context and conversation history.
Check when the assistant is ready
The Python SDK waits until the assistant is ready before it returns. The Node.js SDK and the API return right away, while the assistant’s status is stillInitializing. To find out when it’s ready, get the status of the assistant.