Properties
| Name | Type | Description |
|---|---|---|
| model | string | ID of the model to use. You can use the List Models API to see all available models, or see the Model overview for descriptions. |
| input | string | Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input to |
| encoding_format | string | The format to return the embeddings in. Can be either float or base64. Defaults to float. |
| dimensions | integer | The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models. |
| user | string | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "CreateEmbeddingRequest",
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "ID of the model to use. You can use the List Models API to see all available models, or see the Model overview for descriptions."
},
"input": {
"type": "string",
"description": "Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model."
},
"encoding_format": {
"type": "string",
"description": "The format to return the embeddings in. Can be either float or base64. Defaults to float."
},
"dimensions": {
"type": "integer",
"description": "The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models."
},
"user": {
"type": "string",
"description": "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openai-embeddings-create-embedding-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.