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

# Create embeddings

> Turn a string or a list of strings into embedding vectors (OpenAI-compatible).


## OpenAPI

```yaml openapi.json post /v1/embeddings
openapi: 3.1.0
info:
  title: Ocean One API
  version: 2.1.0
servers:
  - url: https://api.plungeai.com
paths:
  /v1/embeddings:
    post:
      summary: Embeddings (proxied to inference-gateway). Same guardrail enforcement as chat completions.
      security:
        - skOcean: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/EmbeddingsRequest"
      responses:
        "200":
          description: Embeddings result
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EmbeddingsResponse"
        "401":
          description: Missing/invalid sk-ocean- key
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "402":
          description: byok_required
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "403":
          description: model_not_allowed or content_blocked
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: rate_limit_exceeded or spend_cap_exceeded
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "503":
          description: money_plane_unavailable — INFERENCE_GATEWAY_SERVICE not bound on this tier
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  schemas:
    EmbeddingsRequest:
      type: object
      description: Money plane, sk-ocean- auth. Same guardrail/cache enforcement as chat completions.
      properties:
        model:
          type: string
        input:
          description: A string, or an array of strings
      required:
        - model
        - input
      additionalProperties: true
    EmbeddingsResponse:
      type: object
      properties:
        object:
          type: string
        data:
          type: array
          items:
            type: object
        model:
          type: string
        usage:
          type: object
      required:
        - object
        - data
        - model
    Error:
      type: object
      description: Standard error envelope. Every error response also carries an `X-Error-Code` response header equal to error.code, so a client branches on the header regardless of the negotiated body format (json | yaml | markdown | text). When the request created an execution, the `X-Execution-Id` response header is also set. Errors follow the negotiated format like success bodies.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
          additionalProperties: true
      required:
        - error
  securitySchemes:
    skOcean:
      type: http
      scheme: bearer
      description: sk-ocean- inference key (money plane, forwarded downstream)
```
