# Models

## The Model object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Model":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the model."},"type":{"type":"string","readOnly":true,"description":"Entity type."},"properties":{"$ref":"#/components/schemas/ModelProperties"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["id","type","metadata","properties"]},"ModelProperties":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"name":{"type":"string","description":"The name of the model."},"description":{"type":"string","description":"The description of the model."},"category":{"type":"string","enum":["text/nlp"],"description":"The type/category of the model."}},"required":["name","description","category"]},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The ModelProperties object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"ModelProperties":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"name":{"type":"string","description":"The name of the model."},"description":{"type":"string","description":"The description of the model."},"category":{"type":"string","enum":["text/nlp"],"description":"The type/category of the model."}},"required":["name","description","category"]}}}}
```

## The Prediction object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Prediction":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the model."},"type":{"type":"string","readOnly":true,"description":"Entity type."},"properties":{"$ref":"#/components/schemas/PredictionProperties"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["id","type","metadata","properties"]},"PredictionProperties":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"input":{"description":"The input required for the model to run the prediction. For NLP models this is plain text.","type":"string"},"collectionId":{"description":"ID of the collection","type":"string"},"collectionQuery":{"description":"Query for the collection","type":"string"},"options":{"type":"object","additionalProperties":{"type":"string"}},"additionalOutput":{"type":"object","readOnly":true,"additionalProperties":{"type":"string"}},"output":{"type":"string","readOnly":true,"description":"The output of the model."},"inputLengthInTokens":{"description":"Tokens for input","type":"integer","format":"int32"},"outputLengthInTokens":{"description":"Tokens for output","type":"integer","format":"int32"}},"required":["input"]},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The PredictionProperties object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"PredictionProperties":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"input":{"description":"The input required for the model to run the prediction. For NLP models this is plain text.","type":"string"},"collectionId":{"description":"ID of the collection","type":"string"},"collectionQuery":{"description":"Query for the collection","type":"string"},"options":{"type":"object","additionalProperties":{"type":"string"}},"additionalOutput":{"type":"object","readOnly":true,"additionalProperties":{"type":"string"}},"output":{"type":"string","readOnly":true,"description":"The output of the model."},"inputLengthInTokens":{"description":"Tokens for input","type":"integer","format":"int32"},"outputLengthInTokens":{"description":"Tokens for output","type":"integer","format":"int32"}},"required":["input"]}}}}
```

## The ModelsCollection object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"ModelsCollection":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"id":{"type":"string","description":"Unique Collection Identifier","readOnly":true},"type":{"type":"string","description":"Entity type","enum":["collection"]},"href":{"type":"string","description":"Resource URL"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Model"},"description":"The list of pretrained models available with the inference service."}},"required":["id","type","href","items"]},"Model":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the model."},"type":{"type":"string","readOnly":true,"description":"Entity type."},"properties":{"$ref":"#/components/schemas/ModelProperties"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["id","type","metadata","properties"]},"ModelProperties":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"name":{"type":"string","description":"The name of the model."},"description":{"type":"string","description":"The description of the model."},"category":{"type":"string","enum":["text/nlp"],"description":"The type/category of the model."}},"required":["name","description","category"]},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The ModelsPrediction object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"ModelsPrediction":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"type":{"type":"string","description":"The entity type","enum":["prediction"],"readOnly":true},"properties":{"$ref":"#/components/schemas/PredictionProperties"},"metadata":{"$ref":"#/components/schemas/MetadataWithDuration"}},"required":["type","metadata","properties"]},"PredictionProperties":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"input":{"description":"The input required for the model to run the prediction. For NLP models this is plain text.","type":"string"},"collectionId":{"description":"ID of the collection","type":"string"},"collectionQuery":{"description":"Query for the collection","type":"string"},"options":{"type":"object","additionalProperties":{"type":"string"}},"additionalOutput":{"type":"object","readOnly":true,"additionalProperties":{"type":"string"}},"output":{"type":"string","readOnly":true,"description":"The output of the model."},"inputLengthInTokens":{"description":"Tokens for input","type":"integer","format":"int32"},"outputLengthInTokens":{"description":"Tokens for output","type":"integer","format":"int32"}},"required":["input"]},"MetadataWithDuration":{"allOf":[{"$ref":"#/components/schemas/Metadata"},{"type":"object","readOnly":true,"properties":{"duration":{"type":"number","format":"float","readOnly":true,"description":"The time it took for the model to generate the output (in ms)."},"outputTokens":{"type":"number","readOnly":true,"description":"The length in tokens of the output generated by the model."},"inputTokens":{"type":"number","readOnly":true,"description":"The length in tokens of the input sent to the model."}}}]},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The ModelsPredictionBody object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"ModelsPredictionBody":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"type":{"type":"string","description":"The entity type","enum":["prediction"],"readOnly":true},"properties":{"$ref":"#/components/schemas/PredictionProperties"}},"required":["type","properties"]},"PredictionProperties":{"deprecated":true,"type":"object","description":"**Deprecated** – This schema will be removed on **2026-05-05**.\nPlease refer to the [Migration Guide](https://docs.ionos.com/cloud/ai/ai-model-hub/how-tos/migration-guide) \nfor instructions on how to migrate.\n","properties":{"input":{"description":"The input required for the model to run the prediction. For NLP models this is plain text.","type":"string"},"collectionId":{"description":"ID of the collection","type":"string"},"collectionQuery":{"description":"Query for the collection","type":"string"},"options":{"type":"object","additionalProperties":{"type":"string"}},"additionalOutput":{"type":"object","readOnly":true,"additionalProperties":{"type":"string"}},"output":{"type":"string","readOnly":true,"description":"The output of the model."},"inputLengthInTokens":{"description":"Tokens for input","type":"integer","format":"int32"},"outputLengthInTokens":{"description":"Tokens for output","type":"integer","format":"int32"}},"required":["input"]}}}}
```

## The Metadata object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The MetadataWithDuration object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"MetadataWithDuration":{"allOf":[{"$ref":"#/components/schemas/Metadata"},{"type":"object","readOnly":true,"properties":{"duration":{"type":"number","format":"float","readOnly":true,"description":"The time it took for the model to generate the output (in ms)."},"outputTokens":{"type":"number","readOnly":true,"description":"The length in tokens of the output generated by the model."},"inputTokens":{"type":"number","readOnly":true,"description":"The length in tokens of the input sent to the model."}}}]},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The MetadataQueryResult object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"MetadataQueryResult":{"allOf":[{"$ref":"#/components/schemas/Metadata"},{"type":"object","readOnly":true,"properties":{"duration":{"type":"number","format":"float","readOnly":true,"description":"The time it took for the model to generate the output (in ms)."},"inputTokens":{"type":"number","description":"The length in tokens of the input sent to the embedding model"}}}]},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The Error object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Error":{"type":"object","additionalProperties":false,"properties":{"httpStatus":{"type":"integer","description":"HTTP status code of the operation as specified by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6).\n"},"messages":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"errorCode":{"type":"string","description":"Internal error code.\n"},"message":{"type":"string","description":"Human readable explanation of the issue.\n"}}}}}}}}}
```

## The CollectionsList object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"CollectionsList":{"type":"object","properties":{"id":{"type":"string","description":"Unique Collection Identifier","readOnly":true},"type":{"type":"string","description":"Entity type","readOnly":true,"enum":["collection"]},"href":{"type":"string","description":"Resource URL"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Collection"},"description":"The list of available collections."}},"required":["id","type","href","items"]},"Collection":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the documents collection."},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"type":{"type":"string","enum":["collection"],"readOnly":true,"description":"Type of object"},"properties":{"$ref":"#/components/schemas/CollectionProperties"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"CollectionProperties":{"type":"object","description":"Collection properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the collection. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the collection, max 1024 chars."},"labels":{"type":"object","description":"The labels set for the collection.","additionalProperties":{"description":"The label value, max 256 chars."}},"documentsCount":{"type":"integer","description":"The number of documents in the collection."},"totalTokens":{"type":"integer","description":"The total size of all documents in the collection, in tokens."},"embedding":{"$ref":"#/components/schemas/Embedding"},"engine":{"$ref":"#/components/schemas/Engine"},"chunking":{"$ref":"#/components/schemas/Chunking"}}},"Embedding":{"type":"object","description":"Indicates information about the embedding model used by this collection","properties":{"model":{"type":"string","description":"Name of the model to use."}}},"Engine":{"type":"object","description":"Additional information about the database engine that user wants to use.","properties":{"db_type":{"type":"string","enum":["chromadb","pgvector"],"default":"chromadb","description":"Type of database to use. Defaults to chromadb."}}},"Chunking":{"type":"object","description":"Indicating if there should be a chunking strategy and if enabled,\nspecify parameters needed for the chosen strategy.\n","properties":{"enabled":{"type":"boolean","description":"Flag to indicate whether chunking is enabled.","default":false},"strategy":{"$ref":"#/components/schemas/Strategy"}}},"Strategy":{"type":"object","description":"Strategy object which will vary based on the type of strategy selected. \nIf enabled, the default strategy is \"fixed_size\" with the default values.\n* `fixed_size` It splits the text into chunk_size tokens\n","properties":{"name":{"type":"string","default":"fixed_size","description":"The name of the chunking strategy."},"config":{"type":"object","description":"Configuring chunk_size and chunk_overlap for the selected chunking strategy.","properties":{"chunk_size":{"type":"integer","description":"Size of each chunk when the strategy is \"fixed_size\".","minimum":128,"default":128},"chunk_overlap":{"type":"integer","description":"Overlap between consecutive chunks when the strategy is \"fixed_size\".","minimum":50,"default":50}}}}},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The CollectionDocumentsList object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"CollectionDocumentsList":{"type":"object","properties":{"id":{"type":"string","description":"Unique Collection Identifier","readOnly":true},"type":{"type":"string","description":"Entity type","enum":["collection"],"readOnly":true},"href":{"type":"string","description":"Resource URL","readOnly":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/Document"},"description":"The list of all documents in a collection"}}},"Document":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the document."},"type":{"type":"string","readOnly":true,"description":"Type of object","enum":["document"]},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"properties":{"$ref":"#/components/schemas/DocumentProperties"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"DocumentProperties":{"type":"object","description":"Document properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the document. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the document, max 1024 chars."},"contentType":{"type":"string","readOnly":false,"description":"The type of document, content-type values accepted.","enum":["text/plain"]},"content":{"type":"string","description":"The content of the document, base64 encoded. The maximum length of undecoded content is 65535 characters."},"labels":{"type":"object","description":"The labels set for the document.","additionalProperties":{"oneOf":[{"type":"string","maxLength":256,"description":"The label value, max 256 chars."},{"type":"boolean"},{"type":"number"}]}}}},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The CollectionDocumentsListCreate object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"CollectionDocumentsListCreate":{"type":"object","properties":{"id":{"type":"string","description":"Unique Collection Identifier","readOnly":true},"type":{"type":"string","description":"Entity type","enum":["collection"],"readOnly":true},"href":{"type":"string","description":"Resource URL","readOnly":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/DocumentCreate"},"description":"The list of all documents in a collection"}},"required":["type","items"]},"DocumentCreate":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the document."},"type":{"type":"string","readOnly":true,"description":"Type of object","enum":["document"]},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"properties":{"allOf":[{"$ref":"#/components/schemas/DocumentPropertiesCreate"},{"type":"object"}]},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"DocumentPropertiesCreate":{"type":"object","description":"Document properties.","properties":{"name":{"type":"string","description":"The name set for the document. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the document, max 1024 chars."},"contentType":{"type":"string","readOnly":false,"description":"The type of document, content-type values accepted.","enum":["text/plain"]},"content":{"type":"string","description":"The content of the document, base64 encoded. The maximum length of undecoded content is 65535 characters."},"labels":{"type":"object","description":"The labels set for the document.","additionalProperties":{"oneOf":[{"type":"string","maxLength":256,"description":"The label value, max 256 chars."},{"type":"boolean"},{"type":"number"}]}}},"required":["name","contentType","content"]},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The Document object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Document":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the document."},"type":{"type":"string","readOnly":true,"description":"Type of object","enum":["document"]},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"properties":{"$ref":"#/components/schemas/DocumentProperties"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"DocumentProperties":{"type":"object","description":"Document properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the document. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the document, max 1024 chars."},"contentType":{"type":"string","readOnly":false,"description":"The type of document, content-type values accepted.","enum":["text/plain"]},"content":{"type":"string","description":"The content of the document, base64 encoded. The maximum length of undecoded content is 65535 characters."},"labels":{"type":"object","description":"The labels set for the document.","additionalProperties":{"oneOf":[{"type":"string","maxLength":256,"description":"The label value, max 256 chars."},{"type":"boolean"},{"type":"number"}]}}}},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The DocumentCreate object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"DocumentCreate":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the document."},"type":{"type":"string","readOnly":true,"description":"Type of object","enum":["document"]},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"properties":{"allOf":[{"$ref":"#/components/schemas/DocumentPropertiesCreate"},{"type":"object"}]},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"DocumentPropertiesCreate":{"type":"object","description":"Document properties.","properties":{"name":{"type":"string","description":"The name set for the document. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the document, max 1024 chars."},"contentType":{"type":"string","readOnly":false,"description":"The type of document, content-type values accepted.","enum":["text/plain"]},"content":{"type":"string","description":"The content of the document, base64 encoded. The maximum length of undecoded content is 65535 characters."},"labels":{"type":"object","description":"The labels set for the document.","additionalProperties":{"oneOf":[{"type":"string","maxLength":256,"description":"The label value, max 256 chars."},{"type":"boolean"},{"type":"number"}]}}},"required":["name","contentType","content"]},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The DocumentProperties object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"DocumentProperties":{"type":"object","description":"Document properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the document. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the document, max 1024 chars."},"contentType":{"type":"string","readOnly":false,"description":"The type of document, content-type values accepted.","enum":["text/plain"]},"content":{"type":"string","description":"The content of the document, base64 encoded. The maximum length of undecoded content is 65535 characters."},"labels":{"type":"object","description":"The labels set for the document.","additionalProperties":{"oneOf":[{"type":"string","maxLength":256,"description":"The label value, max 256 chars."},{"type":"boolean"},{"type":"number"}]}}}}}}}
```

## The DocumentPropertiesCreate object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"DocumentPropertiesCreate":{"type":"object","description":"Document properties.","properties":{"name":{"type":"string","description":"The name set for the document. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the document, max 1024 chars."},"contentType":{"type":"string","readOnly":false,"description":"The type of document, content-type values accepted.","enum":["text/plain"]},"content":{"type":"string","description":"The content of the document, base64 encoded. The maximum length of undecoded content is 65535 characters."},"labels":{"type":"object","description":"The labels set for the document.","additionalProperties":{"oneOf":[{"type":"string","maxLength":256,"description":"The label value, max 256 chars."},{"type":"boolean"},{"type":"number"}]}}},"required":["name","contentType","content"]}}}}
```

## The Collection object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Collection":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the documents collection."},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"type":{"type":"string","enum":["collection"],"readOnly":true,"description":"Type of object"},"properties":{"$ref":"#/components/schemas/CollectionProperties"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"CollectionProperties":{"type":"object","description":"Collection properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the collection. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the collection, max 1024 chars."},"labels":{"type":"object","description":"The labels set for the collection.","additionalProperties":{"description":"The label value, max 256 chars."}},"documentsCount":{"type":"integer","description":"The number of documents in the collection."},"totalTokens":{"type":"integer","description":"The total size of all documents in the collection, in tokens."},"embedding":{"$ref":"#/components/schemas/Embedding"},"engine":{"$ref":"#/components/schemas/Engine"},"chunking":{"$ref":"#/components/schemas/Chunking"}}},"Embedding":{"type":"object","description":"Indicates information about the embedding model used by this collection","properties":{"model":{"type":"string","description":"Name of the model to use."}}},"Engine":{"type":"object","description":"Additional information about the database engine that user wants to use.","properties":{"db_type":{"type":"string","enum":["chromadb","pgvector"],"default":"chromadb","description":"Type of database to use. Defaults to chromadb."}}},"Chunking":{"type":"object","description":"Indicating if there should be a chunking strategy and if enabled,\nspecify parameters needed for the chosen strategy.\n","properties":{"enabled":{"type":"boolean","description":"Flag to indicate whether chunking is enabled.","default":false},"strategy":{"$ref":"#/components/schemas/Strategy"}}},"Strategy":{"type":"object","description":"Strategy object which will vary based on the type of strategy selected. \nIf enabled, the default strategy is \"fixed_size\" with the default values.\n* `fixed_size` It splits the text into chunk_size tokens\n","properties":{"name":{"type":"string","default":"fixed_size","description":"The name of the chunking strategy."},"config":{"type":"object","description":"Configuring chunk_size and chunk_overlap for the selected chunking strategy.","properties":{"chunk_size":{"type":"integer","description":"Size of each chunk when the strategy is \"fixed_size\".","minimum":128,"default":128},"chunk_overlap":{"type":"integer","description":"Overlap between consecutive chunks when the strategy is \"fixed_size\".","minimum":50,"default":50}}}}},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The CollectionUpdate object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"CollectionUpdate":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the documents collection."},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"type":{"type":"string","enum":["collection"],"readOnly":true,"description":"Type of object"},"properties":{"$ref":"#/components/schemas/CollectionPropertiesUpdate"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"CollectionPropertiesUpdate":{"type":"object","description":"Collection properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the collection. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the collection, max 1024 chars."},"labels":{"type":"object","description":"The labels set for the collection.","additionalProperties":{"description":"The label value, max 256 chars."}}}},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The CollectionCreate object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"CollectionCreate":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the documents collection."},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"type":{"type":"string","enum":["collection"],"readOnly":true,"description":"Type of object"},"properties":{"allOf":[{"$ref":"#/components/schemas/CollectionPropertiesCreate"},{"type":"object"}]},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"CollectionPropertiesCreate":{"type":"object","description":"Collection properties.","properties":{"name":{"type":"string","description":"The name set for the collection. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the collection, max 1024 chars."},"labels":{"type":"object","description":"The labels set for the collection.","additionalProperties":{"description":"The label value, max 256 chars."}},"embedding":{"$ref":"#/components/schemas/Embedding"},"engine":{"$ref":"#/components/schemas/Engine"},"chunking":{"$ref":"#/components/schemas/Chunking"}},"required":["name"]},"Embedding":{"type":"object","description":"Indicates information about the embedding model used by this collection","properties":{"model":{"type":"string","description":"Name of the model to use."}}},"Engine":{"type":"object","description":"Additional information about the database engine that user wants to use.","properties":{"db_type":{"type":"string","enum":["chromadb","pgvector"],"default":"chromadb","description":"Type of database to use. Defaults to chromadb."}}},"Chunking":{"type":"object","description":"Indicating if there should be a chunking strategy and if enabled,\nspecify parameters needed for the chosen strategy.\n","properties":{"enabled":{"type":"boolean","description":"Flag to indicate whether chunking is enabled.","default":false},"strategy":{"$ref":"#/components/schemas/Strategy"}}},"Strategy":{"type":"object","description":"Strategy object which will vary based on the type of strategy selected. \nIf enabled, the default strategy is \"fixed_size\" with the default values.\n* `fixed_size` It splits the text into chunk_size tokens\n","properties":{"name":{"type":"string","default":"fixed_size","description":"The name of the chunking strategy."},"config":{"type":"object","description":"Configuring chunk_size and chunk_overlap for the selected chunking strategy.","properties":{"chunk_size":{"type":"integer","description":"Size of each chunk when the strategy is \"fixed_size\".","minimum":128,"default":128},"chunk_overlap":{"type":"integer","description":"Overlap between consecutive chunks when the strategy is \"fixed_size\".","minimum":50,"default":50}}}}},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The CollectionProperties object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"CollectionProperties":{"type":"object","description":"Collection properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the collection. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the collection, max 1024 chars."},"labels":{"type":"object","description":"The labels set for the collection.","additionalProperties":{"description":"The label value, max 256 chars."}},"documentsCount":{"type":"integer","description":"The number of documents in the collection."},"totalTokens":{"type":"integer","description":"The total size of all documents in the collection, in tokens."},"embedding":{"$ref":"#/components/schemas/Embedding"},"engine":{"$ref":"#/components/schemas/Engine"},"chunking":{"$ref":"#/components/schemas/Chunking"}}},"Embedding":{"type":"object","description":"Indicates information about the embedding model used by this collection","properties":{"model":{"type":"string","description":"Name of the model to use."}}},"Engine":{"type":"object","description":"Additional information about the database engine that user wants to use.","properties":{"db_type":{"type":"string","enum":["chromadb","pgvector"],"default":"chromadb","description":"Type of database to use. Defaults to chromadb."}}},"Chunking":{"type":"object","description":"Indicating if there should be a chunking strategy and if enabled,\nspecify parameters needed for the chosen strategy.\n","properties":{"enabled":{"type":"boolean","description":"Flag to indicate whether chunking is enabled.","default":false},"strategy":{"$ref":"#/components/schemas/Strategy"}}},"Strategy":{"type":"object","description":"Strategy object which will vary based on the type of strategy selected. \nIf enabled, the default strategy is \"fixed_size\" with the default values.\n* `fixed_size` It splits the text into chunk_size tokens\n","properties":{"name":{"type":"string","default":"fixed_size","description":"The name of the chunking strategy."},"config":{"type":"object","description":"Configuring chunk_size and chunk_overlap for the selected chunking strategy.","properties":{"chunk_size":{"type":"integer","description":"Size of each chunk when the strategy is \"fixed_size\".","minimum":128,"default":128},"chunk_overlap":{"type":"integer","description":"Overlap between consecutive chunks when the strategy is \"fixed_size\".","minimum":50,"default":50}}}}}}}}
```

## The CollectionPropertiesUpdate object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"CollectionPropertiesUpdate":{"type":"object","description":"Collection properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the collection. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the collection, max 1024 chars."},"labels":{"type":"object","description":"The labels set for the collection.","additionalProperties":{"description":"The label value, max 256 chars."}}}}}}}
```

## The CollectionPropertiesCreate object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"CollectionPropertiesCreate":{"type":"object","description":"Collection properties.","properties":{"name":{"type":"string","description":"The name set for the collection. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the collection, max 1024 chars."},"labels":{"type":"object","description":"The labels set for the collection.","additionalProperties":{"description":"The label value, max 256 chars."}},"embedding":{"$ref":"#/components/schemas/Embedding"},"engine":{"$ref":"#/components/schemas/Engine"},"chunking":{"$ref":"#/components/schemas/Chunking"}},"required":["name"]},"Embedding":{"type":"object","description":"Indicates information about the embedding model used by this collection","properties":{"model":{"type":"string","description":"Name of the model to use."}}},"Engine":{"type":"object","description":"Additional information about the database engine that user wants to use.","properties":{"db_type":{"type":"string","enum":["chromadb","pgvector"],"default":"chromadb","description":"Type of database to use. Defaults to chromadb."}}},"Chunking":{"type":"object","description":"Indicating if there should be a chunking strategy and if enabled,\nspecify parameters needed for the chosen strategy.\n","properties":{"enabled":{"type":"boolean","description":"Flag to indicate whether chunking is enabled.","default":false},"strategy":{"$ref":"#/components/schemas/Strategy"}}},"Strategy":{"type":"object","description":"Strategy object which will vary based on the type of strategy selected. \nIf enabled, the default strategy is \"fixed_size\" with the default values.\n* `fixed_size` It splits the text into chunk_size tokens\n","properties":{"name":{"type":"string","default":"fixed_size","description":"The name of the chunking strategy."},"config":{"type":"object","description":"Configuring chunk_size and chunk_overlap for the selected chunking strategy.","properties":{"chunk_size":{"type":"integer","description":"Size of each chunk when the strategy is \"fixed_size\".","minimum":128,"default":128},"chunk_overlap":{"type":"integer","description":"Overlap between consecutive chunks when the strategy is \"fixed_size\".","minimum":50,"default":50}}}}}}}}
```

## The QueryRequest object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"QueryRequest":{"type":"object","properties":{"query":{"type":"string","description":"The string used to query the vector database.","minLength":1},"limit":{"type":"integer","default":10,"description":"The maximum number of matches to return."}},"required":["query"]}}}}
```

## The QueryResult object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"QueryResult":{"type":"object","properties":{"type":{"type":"string","enum":["result"],"readOnly":true,"description":"Type of object"},"properties":{"$ref":"#/components/schemas/QueryResultProperties"},"metadata":{"$ref":"#/components/schemas/MetadataQueryResult"}},"required":["type","metadata","properties"]},"QueryResultProperties":{"type":"object","description":"Query result properties.","properties":{"matches":{"type":"array","items":{"type":"object","properties":{"score":{"type":"number","description":"The match score. Lower values indicate better matches.\n"},"document":{"$ref":"#/components/schemas/Document"}}}}},"required":["matches"]},"Document":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the document."},"type":{"type":"string","readOnly":true,"description":"Type of object","enum":["document"]},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"properties":{"$ref":"#/components/schemas/DocumentProperties"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"DocumentProperties":{"type":"object","description":"Document properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the document. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the document, max 1024 chars."},"contentType":{"type":"string","readOnly":false,"description":"The type of document, content-type values accepted.","enum":["text/plain"]},"content":{"type":"string","description":"The content of the document, base64 encoded. The maximum length of undecoded content is 65535 characters."},"labels":{"type":"object","description":"The labels set for the document.","additionalProperties":{"oneOf":[{"type":"string","maxLength":256,"description":"The label value, max 256 chars."},{"type":"boolean"},{"type":"number"}]}}}},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}},"MetadataQueryResult":{"allOf":[{"$ref":"#/components/schemas/Metadata"},{"type":"object","readOnly":true,"properties":{"duration":{"type":"number","format":"float","readOnly":true,"description":"The time it took for the model to generate the output (in ms)."},"inputTokens":{"type":"number","description":"The length in tokens of the input sent to the embedding model"}}}]}}}}
```

## The QueryResultProperties object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"QueryResultProperties":{"type":"object","description":"Query result properties.","properties":{"matches":{"type":"array","items":{"type":"object","properties":{"score":{"type":"number","description":"The match score. Lower values indicate better matches.\n"},"document":{"$ref":"#/components/schemas/Document"}}}}},"required":["matches"]},"Document":{"type":"object","properties":{"id":{"type":"string","readOnly":true,"description":"The unique identifier of the document."},"type":{"type":"string","readOnly":true,"description":"Type of object","enum":["document"]},"href":{"type":"string","readOnly":true,"description":"Resource URL"},"properties":{"$ref":"#/components/schemas/DocumentProperties"},"metadata":{"$ref":"#/components/schemas/Metadata"}},"required":["properties"]},"DocumentProperties":{"type":"object","description":"Document properties.","minProperties":1,"properties":{"name":{"type":"string","description":"The name set for the document. should have a length between 3 and 256 characters,\nshould start and ends with an alphanumeric character, can only contain alphanumeric\ncharacters or hyphens, should not contain two consecutive periods and should not\nbe a valid IPv4 address.\n","minLength":3,"maxLength":256},"description":{"type":"string","description":"The description set for the document, max 1024 chars."},"contentType":{"type":"string","readOnly":false,"description":"The type of document, content-type values accepted.","enum":["text/plain"]},"content":{"type":"string","description":"The content of the document, base64 encoded. The maximum length of undecoded content is 65535 characters."},"labels":{"type":"object","description":"The labels set for the document.","additionalProperties":{"oneOf":[{"type":"string","maxLength":256,"description":"The label value, max 256 chars."},{"type":"boolean"},{"type":"number"}]}}}},"Metadata":{"type":"object","description":"Metadata of the resource.","readOnly":true,"properties":{"lastModifiedDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."},"createdDate":{"type":"string","readOnly":true,"format":"date-time","description":"The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'."}}}}}}
```

## The Chunking object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Chunking":{"type":"object","description":"Indicating if there should be a chunking strategy and if enabled,\nspecify parameters needed for the chosen strategy.\n","properties":{"enabled":{"type":"boolean","description":"Flag to indicate whether chunking is enabled.","default":false},"strategy":{"$ref":"#/components/schemas/Strategy"}}},"Strategy":{"type":"object","description":"Strategy object which will vary based on the type of strategy selected. \nIf enabled, the default strategy is \"fixed_size\" with the default values.\n* `fixed_size` It splits the text into chunk_size tokens\n","properties":{"name":{"type":"string","default":"fixed_size","description":"The name of the chunking strategy."},"config":{"type":"object","description":"Configuring chunk_size and chunk_overlap for the selected chunking strategy.","properties":{"chunk_size":{"type":"integer","description":"Size of each chunk when the strategy is \"fixed_size\".","minimum":128,"default":128},"chunk_overlap":{"type":"integer","description":"Overlap between consecutive chunks when the strategy is \"fixed_size\".","minimum":50,"default":50}}}}}}}}
```

## The Strategy object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Strategy":{"type":"object","description":"Strategy object which will vary based on the type of strategy selected. \nIf enabled, the default strategy is \"fixed_size\" with the default values.\n* `fixed_size` It splits the text into chunk_size tokens\n","properties":{"name":{"type":"string","default":"fixed_size","description":"The name of the chunking strategy."},"config":{"type":"object","description":"Configuring chunk_size and chunk_overlap for the selected chunking strategy.","properties":{"chunk_size":{"type":"integer","description":"Size of each chunk when the strategy is \"fixed_size\".","minimum":128,"default":128},"chunk_overlap":{"type":"integer","description":"Overlap between consecutive chunks when the strategy is \"fixed_size\".","minimum":50,"default":50}}}}}}}}
```

## The Embedding object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Embedding":{"type":"object","description":"Indicates information about the embedding model used by this collection","properties":{"model":{"type":"string","description":"Name of the model to use."}}}}}}
```

## The Engine object

```json
{"openapi":"3.0.3","info":{"title":"IONOS Cloud - AI Model Hub API","version":"1.0.0"},"components":{"schemas":{"Engine":{"type":"object","description":"Additional information about the database engine that user wants to use.","properties":{"db_type":{"type":"string","enum":["chromadb","pgvector"],"default":"chromadb","description":"Type of database to use. Defaults to chromadb."}}}}}}
```
