> ## 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.

# Search styles

> List styles with pagination and filtering. Returns public styles, user-created styles, or shared styles based on the filter parameter.



## OpenAPI

````yaml https://api.krea.ai/openapi.json get /styles
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:
    get:
      tags:
        - Styles
      summary: Search styles
      description: >-
        List styles with pagination and filtering. Returns public styles,
        user-created styles, or shared styles based on the filter parameter.
      parameters:
        - in: query
          name: cursor
          schema:
            type: string
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 1000
        - in: query
          name: ids
          schema:
            type: string
        - in: query
          name: liked
          schema:
            default: false
            type: boolean
        - in: query
          name: user
          schema:
            type: string
        - in: query
          name: model
          schema:
            type: string
        - in: query
          name: filter
          schema:
            default: all
            type: string
            enum:
              - all
              - user
              - community
              - krea
              - shared
              - unapproved
              - editor
              - gallery
              - public
      responses:
        '200':
          description: List of styles
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      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
                  next_cursor:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - items
                  - next_cursor
                additionalProperties: false
        '400':
          description: Invalid query parameters
          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
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      bearerFormat: Bearer
      type: http

````