---
title: "AIGatewayEmbeddingsModelConfig"
url: "https://nov18-dev.movespot.fyi/apis/konnect-ai-gateway-dev-0/versions/eaabd2fa-a9d5-44cc-b086-e210c9c21bf3/schemas/AIGatewayEmbeddingsModelConfig"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-ai-gateway-dev-0/versions/eaabd2fa-a9d5-44cc-b086-e210c9c21bf3.md

# AIGatewayEmbeddingsModelConfig

Configuration for an embeddings model.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect AI Gateway
  version: 0.0.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    AIGatewayAzureEmbeddingsModelConfig:
      description: Azure-specific configuration for a model.
      type: object
      properties:
        name:
          description: The name of the embeddings model.
          type: string
        upstream_url:
          description: The URL of the embeddings model.
          type: string
        type:
          type: string
          enum:
            - azure
        deployment_id:
          description: The Azure deployment ID for the model.
          type: string
        api_version:
          description: The Azure OpenAI API version to use.
          type: string
          default: 2023-05-15
      additionalProperties: false
      required:
        - name
        - upstream_url
        - type
    AIGatewayBedrockEmbeddingsModelConfig:
      description: AWS Bedrock-specific configuration for a model.
      type: object
      properties:
        name:
          description: The name of the embeddings model.
          type: string
        upstream_url:
          description: The URL of the embeddings model.
          type: string
        type:
          type: string
          enum:
            - bedrock
        batch_bucket_prefix:
          description: S3 bucket prefix for batch inference jobs.
          type: string
        embeddings_normalize:
          description: Whether to normalize embedding vectors in the response.
          type: boolean
          default: false
        performance_config_latency:
          description: Latency performance configuration for the model invocation.
          type: string
        video_output_s3_uri:
          description: S3 URI for storing video generation outputs.
          type: string
      additionalProperties: false
      required:
        - name
        - upstream_url
        - type
    AIGatewayGeminiEmbeddingsModelConfig:
      description: Google Gemini-specific configuration for a model.
      type: object
      properties:
        name:
          description: The name of the embeddings model.
          type: string
        upstream_url:
          description: The URL of the embeddings model.
          type: string
        type:
          type: string
          enum:
            - gemini
        location_id:
          description: The Google Cloud location ID for the model endpoint.
          type: string
        api_endpoint:
          description: The custom API endpoint for the Gemini model.
          type: string
      additionalProperties: false
      required:
        - name
        - upstream_url
        - type
    AIGatewayHuggingfaceEmbeddingsModelConfig:
      description: Hugging Face-specific configuration for a model.
      type: object
      properties:
        name:
          description: The name of the embeddings model.
          type: string
        upstream_url:
          description: The URL of the embeddings model.
          type: string
        type:
          type: string
          enum:
            - huggingface
        use_cache:
          description: Whether to use the Hugging Face inference cache.
          type: boolean
          default: false
        wait_for_model:
          description: Whether to wait for the model to load if it is not ready.
          type: boolean
          default: false
      additionalProperties: false
      required:
        - name
        - upstream_url
        - type
    AIGatewayEmbeddingsModelConfig:
      description: Configuration for an embeddings model.
      discriminator:
        propertyName: type
        mapping:
          azure: "#/components/schemas/AIGatewayAzureEmbeddingsModelConfig"
          bedrock: "#/components/schemas/AIGatewayBedrockEmbeddingsModelConfig"
          gemini: "#/components/schemas/AIGatewayGeminiEmbeddingsModelConfig"
          huggingface: "#/components/schemas/AIGatewayHuggingfaceEmbeddingsModelConfig"
      oneOf:
        - $ref: "#/components/schemas/AIGatewayAzureEmbeddingsModelConfig"
        - $ref: "#/components/schemas/AIGatewayBedrockEmbeddingsModelConfig"
        - $ref: "#/components/schemas/AIGatewayGeminiEmbeddingsModelConfig"
        - $ref: "#/components/schemas/AIGatewayHuggingfaceEmbeddingsModelConfig"
```
