# Embed API (v2)

POST https://api.cohere.com/v2/embed
Content-Type: application/json

This endpoint returns text embeddings. An embedding is a list of floating point numbers that captures semantic information about the text that it represents.

Embeddings can be used to create text classifiers as well as empower semantic search. To learn more about embeddings, see the embedding page.

If you want to learn more how to use the embedding model, have a look at the [Semantic Search Guide](https://docs.cohere.com/docs/semantic-search).

Reference: https://docs.cohere.com/reference/embed

## OpenAPI Specification

```yaml
openapi: 3.1.1
info:
  title: Embed API (v2)
  version: endpoint_v2.embed
paths:
  /v2/embed:
    post:
      operationId: embed
      summary: Embed API (v2)
      description: >-
        This endpoint returns text embeddings. An embedding is a list of
        floating point numbers that captures semantic information about the text
        that it represents.


        Embeddings can be used to create text classifiers as well as empower
        semantic search. To learn more about embeddings, see the embedding page.


        If you want to learn more how to use the embedding model, have a look at
        the [Semantic Search
        Guide](https://docs.cohere.com/docs/semantic-search).
      tags:
        - - subpackage_v2
      parameters:
        - name: Authorization
          in: header
          description: >-
            Bearer authentication of the form `Bearer <token>`, where token is
            your auth token.
          required: true
          schema:
            type: string
        - name: X-Client-Name
          in: header
          description: |
            The name of the project that is making the request.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbedByTypeResponse'
        '400':
          description: >
            This error is returned when the request is not well formed. This
            could be because:
              - JSON is invalid
              - The request is missing required fields
              - The request contains an invalid combination of fields
          content: {}
        '401':
          description: >
            This error indicates that the operation attempted to be performed is
            not allowed. This could be because:
              - The api token is invalid
              - The user does not have the necessary permissions
          content: {}
        '403':
          description: >
            This error indicates that the operation attempted to be performed is
            not allowed. This could be because:
              - The api token is invalid
              - The user does not have the necessary permissions
          content: {}
        '404':
          description: >
            This error is returned when a resource is not found. This could be
            because:
              - The endpoint does not exist
              - The resource does not exist eg model id, dataset id
          content: {}
        '422':
          description: >
            This error is returned when the request is not well formed. This
            could be because:
              - JSON is invalid
              - The request is missing required fields
              - The request contains an invalid combination of fields
          content: {}
        '429':
          description: Too many requests
          content: {}
        '498':
          description: >
            This error is returned when a request or response contains a
            deny-listed token.
          content: {}
        '499':
          description: |
            This error is returned when a request is cancelled by the user.
          content: {}
        '500':
          description: >
            This error is returned when an uncategorised internal server error
            occurs.
          content: {}
        '501':
          description: >
            This error is returned when the requested feature is not
            implemented.
          content: {}
        '503':
          description: >
            This error is returned when the service is unavailable. This could
            be due to:
              - Too many users trying to access the service at the same time
          content: {}
        '504':
          description: >
            This error is returned when a request to the server times out. This
            could be due to:
              - An internal services taking too long to respond
          content: {}
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              type: object
              properties:
                texts:
                  type: array
                  items:
                    type: string
                  description: >-
                    An array of strings for the model to embed. Maximum number
                    of texts per call is `96`.
                images:
                  type: array
                  items:
                    type: string
                  description: >-
                    An array of image data URIs for the model to embed. Maximum
                    number of images per call is `1`.


                    The image must be a valid [data
                    URI](https://developer.mozilla.org/en-US/docs/Web/URI/Schemes/data).
                    The image must be in either `image/jpeg`, `image/png`,
                    `image/webp`, or `image/gif` format and has a maximum size
                    of 5MB.


                    Image embeddings are supported with Embed v3.0 and newer
                    models.
                model:
                  type: string
                  description: >-
                    ID of one of the available [Embedding
                    models](https://docs.cohere.com/docs/cohere-embed).
                input_type:
                  $ref: '#/components/schemas/EmbedInputType'
                inputs:
                  type: array
                  items:
                    $ref: '#/components/schemas/EmbedInput'
                  description: >-
                    An array of inputs for the model to embed. Maximum number of
                    inputs per call is `96`. An input can contain a mix of text
                    and image components.
                max_tokens:
                  type: integer
                  description: >-
                    The maximum number of tokens to embed per input. If the
                    input text is longer than this, it will be truncated
                    according to the `truncate` parameter.
                output_dimension:
                  type: integer
                  description: >-
                    The number of dimensions of the output embedding. This is
                    only available for `embed-v4` and newer models.

                    Possible values are `256`, `512`, `1024`, and `1536`. The
                    default is `1536`.
                embedding_types:
                  type: array
                  items:
                    $ref: '#/components/schemas/EmbeddingType'
                  description: >-
                    Specifies the types of embeddings you want to get back. Can
                    be one or more of the following types.


                    * `"float"`: Use this when you want to get back the default
                    float embeddings. Supported with all Embed models.

                    * `"int8"`: Use this when you want to get back signed int8
                    embeddings. Supported with Embed v3.0 and newer Embed
                    models.

                    * `"uint8"`: Use this when you want to get back unsigned
                    int8 embeddings. Supported with Embed v3.0 and newer Embed
                    models.

                    * `"binary"`: Use this when you want to get back signed
                    binary embeddings. Supported with Embed v3.0 and newer Embed
                    models.

                    * `"ubinary"`: Use this when you want to get back unsigned
                    binary embeddings. Supported with Embed v3.0 and newer Embed
                    models.

                    * `"base64"`: Use this when you want to get back base64
                    embeddings. Supported with Embed v3.0 and newer Embed
                    models.
                truncate:
                  $ref: >-
                    #/components/schemas/V2EmbedPostRequestBodyContentApplicationJsonSchemaTruncate
                  description: >-
                    One of `NONE|START|END` to specify how the API will handle
                    inputs longer than the maximum token length.


                    Passing `START` will discard the start of the input. `END`
                    will discard the end of the input. In both cases, input is
                    discarded until the remaining input is exactly the maximum
                    input token length for the model.


                    If `NONE` is selected, when the input exceeds the maximum
                    input token length an error will be returned.
                priority:
                  type: integer
                  default: 0
                  description: >-
                    Controls how early the request is handled. Lower numbers
                    indicate higher priority (default: 0, the highest). When the
                    system is under load, higher-priority requests are processed
                    first and are the least likely to be dropped.
              required:
                - model
                - input_type
components:
  schemas:
    EmbedInputType:
      type: string
      enum:
        - value: search_document
        - value: search_query
        - value: classification
        - value: clustering
        - value: image
    EmbedContentType:
      type: string
      enum:
        - value: text
        - value: image_url
    EmbedImageUrl:
      type: object
      properties:
        url:
          type: string
      required:
        - url
    EmbedImage:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/EmbedContentType'
        image_url:
          $ref: '#/components/schemas/EmbedImageUrl'
    EmbedText:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/EmbedContentType'
        text:
          type: string
    EmbedContent:
      oneOf:
        - $ref: '#/components/schemas/EmbedImage'
        - $ref: '#/components/schemas/EmbedText'
    EmbedInput:
      type: object
      properties:
        content:
          type: array
          items:
            $ref: '#/components/schemas/EmbedContent'
          description: >-
            An array of objects containing the input data for the model to
            embed.
      required:
        - content
    EmbeddingType:
      type: string
      enum:
        - value: float
        - value: int8
        - value: uint8
        - value: binary
        - value: ubinary
        - value: base64
    V2EmbedPostRequestBodyContentApplicationJsonSchemaTruncate:
      type: string
      enum:
        - value: NONE
        - value: START
        - value: END
      default: END
    EmbedByTypeResponseResponseType:
      type: string
      enum:
        - value: embeddings_floats
        - value: embeddings_by_type
    EmbedByTypeResponseEmbeddings:
      type: object
      properties:
        float:
          type: array
          items:
            type: array
            items:
              type: number
              format: double
          description: An array of float embeddings.
        int8:
          type: array
          items:
            type: array
            items:
              type: integer
          description: >-
            An array of signed int8 embeddings. Each value is between -128 and
            127.
        uint8:
          type: array
          items:
            type: array
            items:
              type: integer
          description: >-
            An array of unsigned int8 embeddings. Each value is between 0 and
            255.
        binary:
          type: array
          items:
            type: array
            items:
              type: integer
          description: >-
            An array of packed signed binary embeddings. The length of each
            binary embedding is 1/8 the length of the float embeddings of the
            provided model. Each value is between -128 and 127.
        ubinary:
          type: array
          items:
            type: array
            items:
              type: integer
          description: >-
            An array of packed unsigned binary embeddings. The length of each
            binary embedding is 1/8 the length of the float embeddings of the
            provided model. Each value is between 0 and 255.
        base64:
          type: array
          items:
            type: string
          description: >-
            An array of base64 embeddings. Each string is the result of
            appending the float embedding bytes together and base64 encoding
            that.
    Image:
      type: object
      properties:
        width:
          type: integer
          format: int64
          description: Width of the image in pixels
        height:
          type: integer
          format: int64
          description: Height of the image in pixels
        format:
          type: string
          description: Format of the image
        bit_depth:
          type: integer
          format: int64
          description: Bit depth of the image
      required:
        - width
        - height
        - format
        - bit_depth
    ApiMetaApiVersion:
      type: object
      properties:
        version:
          type: string
        is_deprecated:
          type: boolean
        is_experimental:
          type: boolean
      required:
        - version
    ApiMetaBilledUnits:
      type: object
      properties:
        images:
          type: number
          format: double
          description: |
            The number of billed images.
        input_tokens:
          type: number
          format: double
          description: |
            The number of billed input tokens.
        image_tokens:
          type: number
          format: double
          description: |
            The number of billed image tokens.
        output_tokens:
          type: number
          format: double
          description: |
            The number of billed output tokens.
        search_units:
          type: number
          format: double
          description: |
            The number of billed search units.
        classifications:
          type: number
          format: double
          description: |
            The number of billed classifications units.
    ApiMetaTokens:
      type: object
      properties:
        input_tokens:
          type: number
          format: double
          description: |
            The number of tokens used as input to the model.
        output_tokens:
          type: number
          format: double
          description: |
            The number of tokens produced by the model.
    ApiMeta:
      type: object
      properties:
        api_version:
          $ref: '#/components/schemas/ApiMetaApiVersion'
        billed_units:
          $ref: '#/components/schemas/ApiMetaBilledUnits'
        tokens:
          $ref: '#/components/schemas/ApiMetaTokens'
        cached_tokens:
          type: number
          format: double
          description: |
            The number of prompt tokens that hit the inference cache.
        warnings:
          type: array
          items:
            type: string
    EmbedByTypeResponse:
      type: object
      properties:
        response_type:
          $ref: '#/components/schemas/EmbedByTypeResponseResponseType'
        id:
          type: string
        embeddings:
          $ref: '#/components/schemas/EmbedByTypeResponseEmbeddings'
          description: >-
            An object with different embedding types. The length of each
            embedding type array will be the same as the length of the original
            `texts` array.
        texts:
          type: array
          items:
            type: string
          description: The text entries for which embeddings were returned.
        images:
          type: array
          items:
            $ref: '#/components/schemas/Image'
          description: The image entries for which embeddings were returned.
        meta:
          $ref: '#/components/schemas/ApiMeta'
      required:
        - id
        - embeddings

```

## SDK Code Examples

```go Texts
package main

import (
	"context"
	"log"
	"os"

	cohere "github.com/cohere-ai/cohere-go/v2"
	"github.com/cohere-ai/cohere-go/v2/client"
)

func main() {
	co := client.NewClient(client.WithToken(os.Getenv("CO_API_KEY")))

	resp, err := co.V2.Embed(
		context.TODO(),
		&cohere.V2EmbedRequest{
			Texts:          []string{"hello", "goodbye"},
			Model:          "embed-v4.0",
			InputType:      cohere.EmbedInputTypeSearchDocument,
			EmbeddingTypes: []cohere.EmbeddingType{cohere.EmbeddingTypeFloat},
		},
	)

	if err != nil {
		log.Fatal(err)
	}

	log.Printf("%+v", resp)
}

```

```typescript Texts
import { CohereClient } from 'cohere-ai';

const cohere = new CohereClient({});

(async () => {
  const embed = await cohere.v2.embed({
    texts: ['hello', 'goodbye'],
    model: 'embed-v4.0',
    inputType: 'classification',
    embeddingTypes: ['float'],
  });
  console.log(embed);
})();

```

```python Texts
import cohere

co = cohere.ClientV2()

text_inputs = [
    {
        "content": [
            {"type": "text", "text": "hello"},
            {"type": "text", "text": "goodbye"}
        ]
    },
]

response = co.embed(
    inputs=text_inputs,
    model="embed-v4.0",
    input_type="classification",
    embedding_types=["float"],
)
print(response)

```

```python Texts (async)
import cohere
import asyncio

co = cohere.AsyncClient()


async def main():
    response = await co.embed(
        texts=["hello", "goodbye"],
        model="embed-v4.0",
        input_type="classification",
    )
    print(response)


asyncio.run(main())

```

```java Texts
package embedv2post; /* (C)2024 */

import com.cohere.api.Cohere;
import com.cohere.api.resources.v2.requests.V2EmbedRequest;
import com.cohere.api.types.EmbedByTypeResponse;
import com.cohere.api.types.EmbedInputType;
import java.util.List;

public class EmbedPost {
  public static void main(String[] args) {
    Cohere cohere = Cohere.builder().clientName("snippet").build();

    EmbedByTypeResponse response =
        cohere
            .v2()
            .embed(
                V2EmbedRequest.builder()
                    .model("embed-v4.0")
                    .inputType(EmbedInputType.CLASSIFICATION)
                    .texts(List.of("hello", "goodbye"))
                    .build());

    System.out.println(response);
  }
}

```

```ruby Texts
require 'uri'
require 'net/http'

url = URI("https://api.cohere.com/v2/embed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"model\": \"embed-v4.0\",\n  \"input_type\": \"classification\",\n  \"texts\": [\n    \"hello\",\n    \"goodbye\"\n  ],\n  \"embedding_types\": [\n    \"float\"\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```php Texts
<?php

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.cohere.com/v2/embed', [
  'body' => '{
  "model": "embed-v4.0",
  "input_type": "classification",
  "texts": [
    "hello",
    "goodbye"
  ],
  "embedding_types": [
    "float"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Texts
var client = new RestClient("https://api.cohere.com/v2/embed");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"model\": \"embed-v4.0\",\n  \"input_type\": \"classification\",\n  \"texts\": [\n    \"hello\",\n    \"goodbye\"\n  ],\n  \"embedding_types\": [\n    \"float\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Texts
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "model": "embed-v4.0",
  "input_type": "classification",
  "texts": ["hello", "goodbye"],
  "embedding_types": ["float"]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cohere.com/v2/embed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

```go Images
package main

import (
	"context"
	"encoding/base64"
	"fmt"
	"io"
	"log"
	"net/http"
	"os"

	cohere "github.com/cohere-ai/cohere-go/v2"
	"github.com/cohere-ai/cohere-go/v2/client"
)

func main() {
	// Fetch the image
	resp, err := http.Get("https://cohere.com/favicon-32x32.png")
	if err != nil {
		log.Println("Error fetching the image:", err)
		return
	}
	defer resp.Body.Close()

	// Read the image content
	buffer, err := io.ReadAll(resp.Body)
	if err != nil {
		log.Println("Error reading the image content:", err)
		return
	}

	stringifiedBuffer := base64.StdEncoding.EncodeToString(buffer)
	contentType := resp.Header.Get("Content-Type")
	imageBase64 := fmt.Sprintf("data:%s;base64,%s", contentType, stringifiedBuffer)

	co := client.NewClient(client.WithToken(os.Getenv("CO_API_KEY")))

	embed, err := co.V2.Embed(
		context.TODO(),
		&cohere.V2EmbedRequest{
			Images:         []string{imageBase64},
			Model:          "embed-v4.0",
			InputType:      cohere.EmbedInputTypeImage,
			EmbeddingTypes: []cohere.EmbeddingType{cohere.EmbeddingTypeFloat},
		},
	)

	if err != nil {
		log.Fatal(err)
	}

	log.Printf("%+v", embed)
}

```

```typescript Images
import { CohereClient } from 'cohere-ai';

const cohere = new CohereClient({});

(async () => {
  const image = await fetch('https://cohere.com/favicon-32x32.png');
  const buffer = await image.arrayBuffer();
  const stringifiedBuffer = Buffer.from(buffer).toString('base64');
  const contentType = image.headers.get('content-type');
  const imageBase64 = `data:${contentType};base64,${stringifiedBuffer}`;

  const embed = await cohere.v2.embed({
    model: 'embed-v4.0',
    inputType: 'image',
    embeddingTypes: ['float'],
    images: [imageBase64],
  });
  console.log(embed);
})();

```

```python Images
import cohere
import requests
import base64

co = cohere.ClientV2()

image = requests.get("https://cohere.com/favicon-32x32.png")
stringified_buffer = base64.b64encode(image.content).decode("utf-8")
content_type = image.headers["Content-Type"]
image_base64 = f"data:{content_type};base64,{stringified_buffer}"

image_inputs = [
    {
        "content": [
            {
                "type": "image_url",
                "image_url": {"url": image_base64}
            }
        ]
    }
]

response = co.embed(
    model="embed-v4.0",
    input_type="image",
    embedding_types=["float"],
    inputs=image_inputs
)

print(response)

```

```java Images
package embedv2post; /* (C)2024 */

import com.cohere.api.Cohere;
import com.cohere.api.resources.v2.requests.V2EmbedRequest;
import com.cohere.api.types.EmbedByTypeResponse;
import com.cohere.api.types.EmbedInputType;
import com.cohere.api.types.EmbeddingType;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.util.Base64;
import java.util.List;

public class EmbedImagePost {
  public static void main(String[] args) {
    Cohere cohere = Cohere.builder().clientName("snippet").build();

    try {
      URI uri = URI.create("https://cohere.com/favicon-32x32.png");
      URL url = uri.toURL();
      HttpURLConnection connection = (HttpURLConnection) url.openConnection();
      connection.connect();

      InputStream inputStream = connection.getInputStream();
      byte[] buffer = inputStream.readAllBytes();
      inputStream.close();

      String imageBase64 =
          String.format(
              "data:%s;base64,%s",
              connection.getHeaderField("Content-Type"),
              Base64.getEncoder().encodeToString(buffer));

      EmbedByTypeResponse response =
          cohere
              .v2()
              .embed(
                  V2EmbedRequest.builder()
                      .model("embed-v4.0")
                      .inputType(EmbedInputType.IMAGE)
                      .images(List.of(imageBase64))
                      .embeddingTypes(List.of(EmbeddingType.FLOAT))
                      .build());

      System.out.println(response);
    } catch (MalformedURLException e) {
      System.err.println("Invalid URL: " + e.getMessage());
    } catch (IOException e) {
      System.err.println("I/O error: " + e.getMessage());
    }
  }
}

```

```ruby Images
require 'uri'
require 'net/http'

url = URI("https://api.cohere.com/v2/embed")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"model\": \"embed-v4.0\",\n  \"input_type\": \"image\",\n  \"images\": [\n    \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFwBBAQEBAQEBAQEBAYGBQYGCAcHBwcIDAkJCQkJDBMMDgwMDgwTERQQDxAUER4XFRUXHiIdGx0iKiUlKjQyNEREXP/CABEIAZABkAMBIgACEQEDEQH/xAAdAAEAAQQDAQAAAAAAAAAAAAAABwEFBggCAwQJ/9oACAEBAAAAAN/gAAAAAAAAAAAAAAAAAAAAA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Qd07iRsdBcPV3ucSkX9H9KP1O8naIBBBG410gsBh2K3MCDKNjrE/2tSLpuqDtIFKAqhRwA6y9GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q==\"\n  ],\n  \"embedding_types\": [\n    \"float\"\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```php Images
<?php

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.cohere.com/v2/embed', [
  'body' => '{
  "model": "embed-v4.0",
  "input_type": "image",
  "images": [
    "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFwBBAQEBAQEBAQEBAYGBQYGCAcHBwcIDAkJCQkJDBMMDgwMDgwTERQQDxAUER4XFRUXHiIdGx0iKiUlKjQyNEREXP/CABEIAZABkAMBIgACEQEDEQH/xAAdAAEAAQQDAQAAAAAAAAAAAAAABwEFBggCAwQJ/9oACAEBAAAAAN/gAAAAAAAA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p9OrIDAg8CKkTQd07iRsdBcPV3ucSkX9H9KP1O8naIBBBG410gsBh2K3MCDKNjrE/2tSLpuqDtIFKAqhRwA6y9GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q=="
  ],
  "embedding_types": [
    "float"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Images
var client = new RestClient("https://api.cohere.com/v2/embed");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"model\": \"embed-v4.0\",\n  \"input_type\": \"image\",\n  \"images\": [\n    \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFwBBAQEBAQEBAQEBAYGBQYGCAcHBwcIDAkJCQkJDBMMDgwMDgwTERQQDxAUER4XFRUXHiI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EKozJq3skjAaQaT/wOqv4NJdco3jj6bNtby3c8VtAulJIwVRWCYJb4PbKqqGnYDWSdpPcPLZ6V9HEmikxOxjAlQaUqL9Q7x5+2xgCrrmG8/p9OrIDAg8CKkTQd07iRsdBcPV3ucSkX9H9KP1O8naIBBBG410gsBh2K3MCDKNjrE/2tSLpuqDtIFKAqhRwA6y9GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q==\"\n  ],\n  \"embedding_types\": [\n    \"float\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Images
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "model": "embed-v4.0",
  "input_type": "image",
  "images": ["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFwBBAQEBAQEBAQEBAYGBQYGCAcHBwcIDAkJCQkJDBMMDgwMDgwTERQ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8xDeQBk4/FHduPtALEKozJq3skjAaQaT/wOqv4NJdco3jj6bNtby3c8VtAulJIwVRWCYJb4PbKqqGnYDWSdpPcPLZ6V9HEmikxOxjAlQaUqL9Q7x5+2xgCrrmG8/p9OrIDAg8CKkTQd07iRsdBcPV3ucSkX9H9KP1O8naIBBBG410gsBh2K3MCDKNjrE/2tSLpuqDtIFKAqhRwA6y9GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q=="],
  "embedding_types": ["float"]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cohere.com/v2/embed")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```