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

# 임베딩

> OpenAI Embeddings 형식. text-embedding-3-small은 1536차원 벡터를 반환합니다.

플레이그라운드에 토큰을 넣으면 실제 요청을 보낼 수 있습니다. 일반 호출과 똑같이 과금됩니다.


## OpenAPI

````yaml openapi/xhuoapi.json POST /embeddings
openapi: 3.1.0
info:
  title: XHuoAPI
  version: 1.0.0
  description: >-
    OpenAI-compatible gateway for Chinese and global AI models. Endpoints tested
    on 2026-10-19.
servers:
  - url: https://api.xhuoapi.ai/v1
security:
  - bearerAuth: []
paths:
  /embeddings:
    post:
      summary: Embeddings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              properties:
                model:
                  type: string
                  example: text-embedding-3-small
                input:
                  oneOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                  example: Hello
            example:
              model: text-embedding-3-small
              input: Hello
      responses:
        '200':
          description: Embedding vectors
        '401':
          description: Missing or invalid token
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Token from https://api.xhuoapi.ai

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.