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

# List public assets

> Search the public asset library; results contain thumbnails but omit original and full-size asset URLs.



## OpenAPI

````yaml openapi/byteplus-assets.yaml GET /assets/public
openapi: 3.1.0
info:
  title: BytePlus Assets API
  version: 1.0.0
  description: >-
    GENGEN reference for BytePlus asset groups, reusable assets, the public
    asset library, and real-person verification.
servers:
  - url: https://gengen.farm/api/gengen/v1
    description: Production
security:
  - bearerAuth: []
paths:
  /assets/public:
    get:
      summary: List public assets
      description: >-
        Search and page through the public asset library. The response omits
        original and full-size asset URLs.
      operationId: listPublicAssets
      parameters:
        - name: query
          in: query
          description: Optional fuzzy search across display text and metadata.
          schema:
            type: string
        - name: pageNumber
          in: query
          description: >-
            Page number starting at 1. Compatibility aliases are page, page_num,
            and page_number.
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: pageSize
          in: query
          description: Results per page. Compatibility aliases are limit and page_size.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 30
      responses:
        '200':
          description: A page of public asset summaries.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicAssetListResponse'
              example:
                items:
                  - assetId: asset-20260225015229-d77t9
                    thumbnailUrl: >-
                      https://blob.example.com/thumb_126a7ec05b7f0660f9525298.webp
                    title: United Kingdom 22-year-old male model
                    description: A model portrait
                    score: 100
                    metadata:
                      country: United Kingdom
                      age: 22
                      gender: male
                      occupation: Model
                      type: portrait
                pageNumber: 1
                pageSize: 30
                totalCount: 5234
                hasMore: true
                query: United Kingdom
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/UnexpectedError'
        default:
          $ref: '#/components/responses/UnexpectedError'
      x-codeSamples:
        - lang: bash
          label: List public assets
          source: |
            curl --request GET \
              --url 'https://gengen.farm/api/gengen/v1/assets/public?pageNumber=1&pageSize=30&query=United%20Kingdom' \
              --header 'Authorization: Bearer gengen_live_xxxxxxxxxxxxxxxx'
components:
  schemas:
    PublicAssetListResponse:
      type: object
      required:
        - items
        - pageNumber
        - pageSize
        - totalCount
        - hasMore
        - query
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/PublicAsset'
        pageNumber:
          type: integer
        pageSize:
          type: integer
        totalCount:
          type: integer
        hasMore:
          type: boolean
        query:
          type: string
      additionalProperties: false
    PublicAsset:
      type: object
      required:
        - assetId
        - thumbnailUrl
      properties:
        assetId:
          type: string
          description: >-
            Pass this ID to the get-asset operation only after a user opens or
            selects the public asset.
        thumbnailUrl:
          type: string
          format: uri
        title:
          type: string
        description:
          type: string
        score:
          type: number
        metadata:
          type: object
          additionalProperties: true
      additionalProperties: true
    Error:
      type: object
      properties:
        error_code:
          type: string
        error:
          type: string
        error_params:
          type: object
          additionalProperties: true
      additionalProperties: true
  responses:
    BadRequest:
      description: The request body or parameters are invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: The bearer token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The API key is not permitted to perform this operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnexpectedError:
      description: GENGEN could not complete the request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: GENGEN API key
      description: A workspace API key beginning with gengen_live_.

````