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

# Embeddings

> Examples of creating embeddings with SynapsAI Cloud

Our embeddings endpoint is compatible with the OpenAI API, supporting the same `v1/embeddings` format.

Here is an example of creating embeddings:

<CodeGroup>
  ```python title="Python" theme={null}
  from synapsai import SynapsAI

  model = SynapsAI("your-api-key")

  response = model.embeddings.create(
      model="model-id", # The model ID of the model you want to use
      input=["Hello, how are you?", "Hello, how are you?"]
  )
  ```

  ```curl title="cURL" theme={null}
  curl -X POST https://api.synapsai.cloud/v1/embeddings \
    -H "Authorization: Bearer $SYNAPSAI_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
          "model": "model-id", 
          "input": ["Hello, how are you?", "Hello, how are you?"]
      }'
  ```
</CodeGroup>

You can also try the embeddings endpoint using the [Playground](https://platform.synapsai.cloud/playground). For deeper insights into the embeddings endpoint, see our [API reference](https://docs.synapsai.cloud/api-reference/generate-embeddings).
