> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateEmbeddingsRequest - Go SDK

> CreateEmbeddingsRequest type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

Embeddings request input

## Fields

| Field            | Type                                                                                                                           | Required             | Description                                              | Example                                     |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------- | -------------------------------------------------------- | ------------------------------------------- |
| `Dimensions`     | `*int64`                                                                                                                       | :heavy\_minus\_sign: | The number of dimensions for the output embeddings       | 1536                                        |
| `EncodingFormat` | [\*operations.EncodingFormat](/client-sdks/go/api-reference/operations/encodingformat)                                         | :heavy\_minus\_sign: | The format of the output embeddings                      | float                                       |
| `Input`          | [operations.InputUnion](/client-sdks/go/api-reference/operations/inputunion)                                                   | :heavy\_check\_mark: | Text, token, or multimodal input(s) to embed             | The quick brown fox jumps over the lazy dog |
| `InputType`      | `*string`                                                                                                                      | :heavy\_minus\_sign: | The type of input (e.g. search\_query, search\_document) | search\_query                               |
| `Model`          | `string`                                                                                                                       | :heavy\_check\_mark: | The model to use for embeddings                          | openai/text-embedding-3-small               |
| `Provider`       | optionalnullable.OptionalNullable\[[components.ProviderPreferences](/client-sdks/go/api-reference/models/providerpreferences)] | :heavy\_minus\_sign: | N/A                                                      | `{"allow_fallbacks": true}`                 |
| `User`           | `*string`                                                                                                                      | :heavy\_minus\_sign: | A unique identifier for the end-user                     | user-1234                                   |
