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

# Describe Image

> Describes an image with the library's image description configuration, so that administrators can preview descriptions before saving instructions. Requires library administrator access, and tenant administrator access to choose the LLM profile. The tenant must have image description enabled; the library need not.



## OpenAPI

````yaml https://document-assistant.us.aodocs.app/openapi.json post /assistant/api/v1/tenants/{tenant}/libraries/{library_id}/images:describe
openapi: 3.1.0
info:
  title: Document Assistant API
  description: |
    <p>
      The Document Assistant API enables developers to integrate document-based assistant
      functionalities into their applications using AODocs.
    </p>
    <p>
      The first step is to enable AIDA (AODocs Intelligent Document Assistant) in your tenant.
      The support team will provide you with the necessary information on how to get started.
    </p>
    <p>
      The second step is to enable AIDA on libraries. You need to be an administrator of the
      library to do this.<br />
      AIDA can answer questions only from those documents that are in an AIDA enabled
      library.<br />
      We create a vector store index for these documents. This can take some time. The get
      library API provides the status of the indexation and an estimate of the time
      remaining.<br />
      The content of the index is automatically kept up-to-date near real time with the
      content changes.
    </p>
    <p>
      The third step is to ask questions based on the AODocs documents.<br />
      AIDA automatically filters the results based on the user's permissions.
    </p>
    <p>
      <strong>Authentication:</strong> All API endpoints require a valid OAuth2 token in the
      Authorization header. Ensure the client ID of the OAuth2 token is whitelisted in AODocs.
    </p>
  version: 1.1.0
servers:
  - url: https://document-assistant.us.aodocs.app
    description: Production US
  - url: https://document-assistant.eu.aodocs.app
    description: Production EU
security: []
paths:
  /assistant/api/v1/tenants/{tenant}/libraries/{library_id}/images:describe:
    post:
      tags:
        - image_description
      summary: Describe Image
      description: >-
        Describes an image with the library's image description configuration,
        so that administrators can preview descriptions before saving
        instructions. Requires library administrator access, and tenant
        administrator access to choose the LLM profile. The tenant must have
        image description enabled; the library need not.
      operationId: >-
        describe_image_assistant_api_v1_tenants__tenant__libraries__library_id__images_describe_post
      parameters:
        - name: tenant
          in: path
          required: true
          schema:
            type: string
            description: The domain of the customer
            examples:
              - example.com
            title: Tenant
          description: The domain of the customer
        - name: library_id
          in: path
          required: true
          schema:
            type: string
            description: The id of the library
            title: Library Id
          description: The id of the library
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_describe_image_assistant_api_v1_tenants__tenant__libraries__library_id__images_describe_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageDescriptionPreview'
        '400':
          description: The image, instructions or LLM profile is invalid
        '403':
          description: Access is denied, or the tenant has it disabled
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: A quota or the provider's rate limit is reached
        '503':
          description: Quota storage or the model is unavailable
        '504':
          description: The model did not answer in time
      security:
        - HTTPBearer: []
components:
  schemas:
    Body_describe_image_assistant_api_v1_tenants__tenant__libraries__library_id__images_describe_post:
      properties:
        image:
          type: string
          contentMediaType: application/octet-stream
          title: Image
          description: The image, at most 20 MiB
        instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Instructions
          description: Draft instructions that replace the configured ones
        llm_profile_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Llm Profile Id
          description: An image description LLM profile ID; tenant administrators only
      type: object
      required:
        - image
      title: >-
        Body_describe_image_assistant_api_v1_tenants__tenant__libraries__library_id__images_describe_post
    ImageDescriptionPreview:
      properties:
        status:
          $ref: '#/components/schemas/ImageStatus'
          description: DONE, SKIPPED or FAILED
        reason:
          anyOf:
            - $ref: '#/components/schemas/ImageReason'
            - type: 'null'
          description: Why the image was skipped or failed; null when DONE
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: The description; null unless DONE
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
          description: The model that described the image
        promptHash:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompthash
          description: The hash of the prompt configuration
        language:
          type: string
          title: Language
          description: The language of the description
        cached:
          type: boolean
          title: Cached
          description: Whether the description came from the cache
      type: object
      required:
        - status
        - reason
        - description
        - model
        - promptHash
        - language
        - cached
      title: ImageDescriptionPreview
      description: The description of one image.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ImageStatus:
      type: string
      enum:
        - DONE
        - SKIPPED
        - FAILED
      title: ImageStatus
      description: The status reported for one image.
    ImageReason:
      type: string
      enum:
        - DISABLED
        - MODEL_UNAVAILABLE
        - DECORATIVE
        - TOO_SMALL
        - TOO_LARGE
        - UNSUPPORTED_FORMAT
        - EXPIRED
        - HASH_MISMATCH
        - INVALID_IMAGE
        - INVALID_OUTPUT
        - PROVIDER_ERROR
        - POOL_ERROR
        - QUOTA
      title: ImageReason
      description: The reason reported for one image, or stored on an item.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.