Skip to main content
Artifacts are designed to be refined iteratively. Once an artifact has been generated, there are two ways to edit it: 1. Prompt-Based Editing: Send the existing artifact content back to the API along with a new prompt describing the desired changes. The model processes the instructions and returns a modified version of the artifact—no need to regenerate from scratch. 2. Manual Editing: Allow users to directly edit the content of a rendered artifact on the frontend. By enabling this feature, an “Edit” button appears on the artifact, letting users modify text, titles, and images as if editing a document.

Guides in This Section

  • Prompt-Based Editing: Learn how to send existing artifact content back to the API with a new prompt to make modifications programmatically.
  • Manual Editing: Learn how to enable direct, in-place editing of artifacts on the frontend using C1 component props.