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

# Create Collection

> Create a collection on a provider.

The model string is fixed at creation: items added here and
/v3/universal-ai calls against this collection all run on its provider.
Returns the collection id to use in item operations and inference calls.



## OpenAPI

````yaml https://api.edenai.run/v3/docs/openapi.json post /v3/universal-ai/collections
openapi: 3.1.0
info:
  title: Eden AI API V3
  version: 3.0.0
servers:
  - url: https://api.edenai.run
    description: Production server
security: []
paths:
  /v3/universal-ai/collections:
    post:
      tags:
        - collections
      summary: Create Collection
      description: |-
        Create a collection on a provider.

        The model string is fixed at creation: items added here and
        /v3/universal-ai calls against this collection all run on its provider.
        Returns the collection id to use in item operations and inference calls.
      operationId: create_collection_v3_universal_ai_collections_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCollectionRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - AuthBearer: []
components:
  schemas:
    CreateCollectionRequest:
      properties:
        model:
          type: string
          minLength: 1
          title: Model
          description: >-
            Model string the collection binds to, as
            'feature/subfeature/provider' (e.g.
            'image/face_recognition/amazon'). Fixed at creation: item operations
            and /v3/universal-ai calls against this collection all run on that
            provider.
        name:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Name
          description: Optional human-readable name for the collection.
      type: object
      required:
        - model
      title: CreateCollectionRequest
      description: Body for creating a collection.
    CollectionResponse:
      properties:
        collection_id:
          type: string
          format: uuid
          title: Collection Id
          description: >-
            Client-facing collection id; use it in item operations and in
            /v3/universal-ai calls that take a collection_id input.
        model:
          type: string
          title: Model
          description: '''feature/subfeature/provider'' string the collection is bound to.'
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Collection name, if any.
      type: object
      required:
        - collection_id
        - model
      title: CollectionResponse
      description: A collection owned by the authenticated user.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    AuthBearer:
      type: http
      scheme: bearer

````