> ## Documentation Index
> Fetch the complete documentation index at: https://www.krea.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a style

> Update style properties. Currently supports updating the public visibility of a style you own.



## OpenAPI

````yaml https://api.krea.ai/openapi.json patch /styles/{id}
openapi: 3.1.0
info:
  title: Krea API
  version: v1
servers:
  - url: https://api.krea.ai
    description: Krea API
security:
  - bearerAuth: []
tags:
  - name: General
    description: Core API operations including job management and billing information
  - name: Krea
    description: Krea-owned generation models including Krea 2
  - name: Assets
    description: >-
      Asset management endpoints for uploading and managing images, videos,
      audio files, and 3D models
  - name: Styles
    description: Style (LoRA) generation and management endpoints
  - name: Node Apps
    description: Executing custom node apps built in our nodes tool
  - name: Image
    description: Image generation endpoints
  - name: Image Enhance
    description: Image enhance endpoints
  - name: Video
    description: Video generation endpoints
  - name: Video Enhance
    description: Video enhance and upscale endpoints
  - name: 3D
    description: 3D model generation and export endpoints
paths:
  /styles/{id}:
    patch:
      tags:
        - Styles
      summary: Update a style
      description: >-
        Update style properties. Currently supports updating the public
        visibility of a style you own.
      parameters:
        - in: path
          name: id
          schema:
            type: string
            description: A unique identifier for a style
            example: fe96535e-c85f-4795-8307-d0ad61f44172
          required: true
          description: A unique identifier for a style
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                public:
                  anyOf:
                    - type: boolean
                    - type: 'null'
                urls:
                  type: array
                  items:
                    type: string
                    maxLength: 1024
                    format: uri
                    description: >-
                      Can be an external URL, base64 data URI, or uploaded asset
                      URL.
                title:
                  type: string
                cover_url:
                  type: string
      responses:
        '200':
          description: Style updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier for the style
                  title:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: Name of the style
                  urls:
                    type: array
                    items:
                      type: string
                      maxLength: 1024
                      format: uri
                      description: >-
                        Can be an external URL, base64 data URI, or uploaded
                        asset URL.
                    description: Portrait-oriented preview URLs
                  public:
                    type: boolean
                    description: Whether the style is publicly visible
                  cover_url:
                    description: Cover image URL
                    anyOf:
                      - type: string
                        format: uri
                      - type: 'null'
                  prompt:
                    type: string
                    description: Suggested prompt for using this style
                  models:
                    description: Compatible model names (e.g., flux_dev, wan)
                    type: array
                    items:
                      type: string
                  owner:
                    anyOf:
                      - type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          name:
                            type: string
                          avatar_url:
                            anyOf:
                              - type: string
                                format: uri
                              - type: 'null'
                        required:
                          - id
                          - name
                        additionalProperties: false
                      - type: 'null'
                    description: Style creator info (null for Krea-official styles)
                  like_count:
                    type: number
                    description: Number of likes
                  created_at:
                    description: Creation timestamp
                    type: string
                required:
                  - id
                  - title
                  - urls
                  - public
                  - prompt
                  - owner
                  - like_count
                  - created_at
                additionalProperties: false
                description: Style response schema
        '400':
          description: No valid fields to update
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Style not found or you are not the owner
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      bearerFormat: Bearer
      type: http

````