OpenAI APIs · Schema

CreateEmbeddingRequest

Artificial IntelligenceEmbeddingsImage-GenerationLanguage ModelsSpeech

Properties

Name Type Description
input object Input text to embed, as a string or array of strings/tokens
model string ID of the model to use (e.g., text-embedding-ada-002, text-embedding-3-small, text-embedding-3-large)
encoding_format string The format to return the embeddings in
dimensions integer The number of dimensions the resulting output embeddings should have. Supported in text-embedding-3 and later models.
user string A unique identifier representing your end-user
View JSON Schema on GitHub

JSON Schema

openai-apis-createembeddingrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateEmbeddingRequest",
  "title": "CreateEmbeddingRequest",
  "type": "object",
  "required": [
    "model",
    "input"
  ],
  "properties": {
    "input": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        }
      ],
      "description": "Input text to embed, as a string or array of strings/tokens"
    },
    "model": {
      "type": "string",
      "description": "ID of the model to use (e.g., text-embedding-ada-002, text-embedding-3-small, text-embedding-3-large)",
      "examples": [
        "text-embedding-3-small"
      ]
    },
    "encoding_format": {
      "type": "string",
      "enum": [
        "float",
        "base64"
      ],
      "default": "float",
      "description": "The format to return the embeddings in"
    },
    "dimensions": {
      "type": "integer",
      "description": "The number of dimensions the resulting output embeddings should have. Supported in text-embedding-3 and later models."
    },
    "user": {
      "type": "string",
      "description": "A unique identifier representing your end-user"
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openai-apis-createembeddingrequest"
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.