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

# Native OpenAI Format

> 将文本转换为向量嵌入



## OpenAPI

````yaml post /v1/embeddings
openapi: 3.1.0
info:
  title: UToken API
  version: 1.0.0
  description: Complete UToken API Reference Documentation
servers:
  - url: https://utoken.yoostudio.ai
    description: Production
security: []
tags:
  - name: Images / Native Gemini Format
  - name: Images / Native OpenAI Format
  - name: Images / Qwen OpenAI Compatible Format
  - name: Realtime Voice
  - name: Content Moderation
  - name: Text Embeddings
  - name: Unimplemented / Fine-tuning
  - name: Unimplemented / File Management
  - name: Models / List Models
  - name: Chat Completions
  - name: Chat Completions / Native Gemini Format
  - name: Chat Completions / Native OpenAI Format
  - name: Text Completions
  - name: Video Generation
  - name: Video Generation / Sora Format
  - name: Video Generation / Jimeng (Dreamina) Format
  - name: Video Generation / Kling AI Format
  - name: Document Reranking
  - name: Audio Processing
  - name: Audio Processing / Native OpenAI Format
paths:
  /v1/embeddings:
    post:
      tags:
        - Text Embeddings
      summary: Native OpenAI Format
      description: Converts text into vector embeddings
      operationId: createembedding
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              properties:
                model:
                  type: string
                  examples:
                    - text-embedding-ada-002
                input:
                  oneOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                  description: Text to embed
                encoding_format:
                  type: string
                  enum:
                    - float
                    - base64
                  default: float
                dimensions:
                  type: integer
                  description: Output vector dimensions
              x-apifox-orders:
                - model
                - input
                - encoding_format
                - dimensions
      responses:
        '200':
          description: Success - Embedding Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    examples:
                      - list
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        object:
                          type: string
                          examples:
                            - embedding
                        index:
                          type: integer
                        embedding:
                          type: array
                          items:
                            type: number
                      x-apifox-orders:
                        - object
                        - index
                        - embedding
                  model:
                    type: string
                  usage:
                    type: object
                    properties:
                      prompt_tokens:
                        type: integer
                      total_tokens:
                        type: integer
                    x-apifox-orders:
                      - prompt_tokens
                      - total_tokens
                x-apifox-orders:
                  - object
                  - data
                  - model
                  - usage
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Use Bearer Token authentication
        Format: Authorization: Bearer sk-xxxxxx

````