Create Chat
Creates a new chat using a user message, optional system context, and model configuration. Useful for prompting the model within the scope of a specific project.
Request body
Creates a new chat using a user message, optional system context, and model configuration. Useful for prompting the model within the scope of a specific project.
Provides system-level context or background for the chat. This is typically used to specify frameworks, tools, or development environments relevant to the task.
Determines the privacy setting of the chat. This can control whether the chat is visible only to the user, to team members, or is public.
Associates the chat with a specific project in your workspace. Helps organize and group related chats under a common project context.
Controls how the response is delivered.
- "sync": The response is returned immediately with the HTTP request.
- "async": Returns a message placeholder immediately; use getById to poll for completion status and final output.
- "experimental_stream": Returns content parts as Server-Sent Events for real-time streaming.
The ID of a design system to apply to this chat. Design systems provide consistent styling and components for generated UI.
Response
Success
A unique identifier for the chat.
Fixed value identifying this object as a chat.
Indicates whether the chat can be shared via public link.
Defines the visibility of the chat—private, team-only, or public.
An optional name assigned to the chat by the user.
Deprecated title field preserved for backward compatibility.
The ISO timestamp representing when the chat was created.
The ISO timestamp of the last update to the chat.
Indicates whether the chat is marked as a favorite.
The ID of the user who created the chat.
Optional ID of the v0 project associated with this chat.
Web URL to view this chat in the browser.
API URL to access this chat via the API.
The canonical URL to access this chat.
Deprecated demo URL used for previewing the chat result.
The main user prompt or instruction that started the chat.