Solana x402 USDC-Settled Semantic Vector Embedding Generator
generate_x402_vector_embeddingsGenerates normalized high-dimensional semantic vector embeddings settled via Solana SPL USDC ('x402' protocol headers) for decentralized RAG pipelines. Use when computing text embeddings paid via Solana USDC x402 signatures rather than Bitcoin Lightning; for extracting discrete JSON entities from unstructured text, use extract_structured_json_entities instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'text' ('encoding_format' defaults to 'float_array'), supports '?demo=true' or x402 (10 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input text string or document chunk to convert into a normalized embedding vector. | |
| encoding_format | No | Vector serialization format; defaults to 'float_array' when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Embedding model executed ('gemini-embedding-2'). | |
| embedding | Yes | Normalized floating-point vector array. | |
| dimensions | Yes | Number of float dimensions in the returned vector. | |
| normalized | Yes | Always true; vectors are L2-normalized to unit length. |