Generate Asset

Generate an asset for a project using AI image generation. Accepts optional reference images and a text prompt. The asset name is generated asynchronously using an LLM if not provided.

Args: background_tasks: FastAPI background tasks project_id: Project ID to associate the asset with prompt: Text description of the asset to generate name: Optional name for the asset (will be generated from prompt if not provided) files: Optional list of reference images current_user: Authenticated user db: Database session

Returns: Generated asset data with image URL

post/api/projects/{project_id}/assets/generate

Path parameters

project_idstring required

Response

Successful Response

successboolean

Changes

No recorded changes to this endpoint across all 1 revision of this API.