Nhúng
API origin:
https://api.openaihub.net. Chọn đúng nhóm API và model. Thông số dưới đây là bản tham chiếu kỹ thuật; chưa phải kết quả kiểm thử từng endpoint bằng tài khoản của bạn.
OpenAPI Specification
Phần tiêu đề “OpenAPI Specification”openapi: 3.0.1info: title: '' description: '' version: 1.0.0paths: /v1beta/models/gemini-embedding-001:embedContent: post: summary: Nhúng deprecated: false description: >- https://ai.google.dev/gemini-api/docs/embeddings?hl=zh-cn#rest_3 Tài liệu chính thức operationId: gemini_v1beta_embedding_001_embed_content tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Trò chuyện/Gemini/Định dạng gốc - Gemini v1beta parameters: - name: Content-Type in: header description: Loại nội dung của phần thân yêu cầu, thường là application/json required: false example: application/json schema: type: string requestBody: content: application/json: schema: type: object required: - content properties: content: type: object properties: parts: type: array items: type: object properties: text: type: string description: Vui lòng cung cấp nội dung văn bản cần dịch. x-apifox-orders: - text x-apidog-orders: - text description: >- Danh sách các phần nội dung; có thể bao gồm văn bản, inline_data / inlineData, v.v. description: Nội dung cần nhúng. x-apifox-orders: - parts x-apidog-orders: - parts output_dimensionality: type: integer description: Tùy chọn giảm số chiều của biểu diễn nhúng đầu ra. taskType: type: string description: Loại tác vụ tùy chọn mà embedding sẽ được sử dụng cho. refName: PostV1betaModelsGeminiEmbedding001EmbedContentRequest x-apifox-orders: - content - output_dimensionality - taskType x-apidog-orders: - content - output_dimensionality - taskType examples: example_single: value: content: parts: - text: Ý nghĩa của cuộc sống là gì? output_dimensionality: 768 taskType: SEMANTIC_SIMILARITY summary: example_single description: nhúng văn bản responses: '200': description: '' content: application/json: schema: type: object properties: embeddings: type: object description: Danh sách các vectơ nhúng x-apidog-orders: [] x-apifox-orders: - embeddings x-apidog-orders: - embeddings examples: example: summary: example value: embedding: values: - -0.0296398 - -0.010636787 - 0.012426536 - -0.043735605 - -0.012861362 headers: {} x-apidog-name: '' '400': description: Yêu cầu không hợp lệ hoặc xác thực thất bại content: application/json: schema: type: object required: - error properties: error: type: object required: - message - type properties: message: type: string description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu) type: type: string description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error examples: - new_api_error x-apifox-orders: - message - type x-apidog-orders: - message - type refName: NewApiError x-apifox-orders: - error x-apidog-orders: - error examples: example: summary: example value: error: message: >- Yêu cầu không hợp lệ (mã yêu cầu: 20260805120000123456789AbCdEfGh) type: new_api_error headers: {} x-apidog-name: Yêu cầu không hợp lệ hoặc xác thực thất bại '401': description: Khóa API bị thiếu hoặc không hợp lệ content: application/json: schema: type: object required: - error properties: error: type: object required: - message - type properties: message: type: string description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu) type: type: string description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error examples: - new_api_error x-apifox-orders: - message - type x-apidog-orders: - message - type refName: NewApiError x-apifox-orders: - error x-apidog-orders: - error examples: example: summary: example value: error: message: >- Mã thông báo không hợp lệ (request id: 20260805120000123456789AbCdEfGh) type: new_api_error headers: {} x-apidog-name: Khóa API bị thiếu hoặc không hợp lệ security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Trò chuyện/Gemini/Định dạng gốc x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208845-runcomponents: schemas: {} securitySchemes: {}servers: - url: https://api.openaihub.net description: Prod Envsecurity: []