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

# /civitai/images/search

> Search Civitai community images

**Price:** 5 credits per 100 results



## OpenAPI

````yaml /openapi/developer-data.json post /api/civitai/images/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/civitai/images/search:
    post:
      tags:
        - /civitai
      summary: /civitai/images/search
      description: |-
        Search Civitai community images

        **Price:** 5 credits per 100 results
      operationId: __api_civitai_images_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CivitaiImageSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CivitaiImage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CivitaiImageSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        model_id:
          anyOf:
            - type: integer
            - type: 'null'
        model_version_id:
          anyOf:
            - type: integer
            - type: 'null'
        username:
          anyOf:
            - type: string
            - type: 'null'
        post_id:
          anyOf:
            - type: integer
            - type: 'null'
        nsfw:
          anyOf:
            - $ref: '#/components/schemas/CivitaiImageNsfw'
            - type: 'null'
        sort:
          anyOf:
            - $ref: '#/components/schemas/CivitaiImageSort'
            - type: 'null'
        period:
          anyOf:
            - $ref: '#/components/schemas/CivitaiPeriod'
            - type: 'null'
        count:
          type: integer
          minimum: 1
      type: object
      required:
        - count
    CivitaiImage:
      properties:
        '@type':
          type: string
          default: CivitaiImage
        id:
          type: integer
        url:
          anyOf:
            - type: string
            - type: 'null'
        blur_hash:
          anyOf:
            - type: string
            - type: 'null'
        width:
          anyOf:
            - type: integer
            - type: 'null'
        height:
          anyOf:
            - type: integer
            - type: 'null'
        nsfw_level:
          anyOf:
            - type: string
            - type: 'null'
        image_type:
          anyOf:
            - type: string
            - type: 'null'
        is_nsfw:
          type: boolean
          default: false
        browsing_level:
          anyOf:
            - type: integer
            - type: 'null'
        created_at:
          anyOf:
            - type: integer
            - type: 'null'
        post_id:
          anyOf:
            - type: integer
            - type: 'null'
        username:
          anyOf:
            - type: string
            - type: 'null'
        base_model:
          anyOf:
            - type: string
            - type: 'null'
        model_version_ids:
          items:
            type: integer
          type: array
          default: []
        cry_count:
          anyOf:
            - type: integer
            - type: 'null'
        laugh_count:
          anyOf:
            - type: integer
            - type: 'null'
        like_count:
          anyOf:
            - type: integer
            - type: 'null'
        dislike_count:
          anyOf:
            - type: integer
            - type: 'null'
        heart_count:
          anyOf:
            - type: integer
            - type: 'null'
        comment_count:
          anyOf:
            - type: integer
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    CivitaiImageNsfw:
      type: string
      enum:
        - None
        - Soft
        - Mature
        - X
    CivitaiImageSort:
      type: string
      enum:
        - Most Reactions
        - Most Comments
        - Most Collected
        - Newest
        - Oldest
    CivitaiPeriod:
      type: string
      enum:
        - AllTime
        - Year
        - Month
        - Week
        - Day
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````