# Invoke the model and print the response
result = co.embed(
    model=model_id,
    input_type=input_type,
    texts=texts,
    truncate=truncate,
)

print(result)
```

<Warning>
  Cohere's embed models don't support batch transform operations.
</Warning>

Note that we've released multimodal embeddings models that are able to handle images in addition to text. Find [more information here](https://docs.cohere.com/docs/multimodal-embeddings).

### Text Generation

You can use this code to invoke Cohere's Command models on Amazon SageMaker:

```python PYTHON 
import cohere

co = cohere.SagemakerClient(
    aws_region="us-east-1",
    aws_access_key="...",
    aws_secret_key="...",
    aws_session_token="...",
)