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

Request

  • Base URL: https://api.latted.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.latted.com/api/projects/{project_id}/assets/generate
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

project_idstring required

Response

Successful Response

successboolean

Changes

No recorded changes to this operation across all 20 revisions of this API.