Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt

Use this file to discover all available pages before exploring further.

Method: client.CreateEmbedding(...)

Example

using AiStatsSdk;

var client = new AIStats(apiKey);
var response = await client.CreateEmbedding(new Dictionary<string, object>
{
    ["model"] = "openai/text-embedding-3-large",
    ["input"] = "Sample text"
});

Key parameters

  • model (required): Embedding model id (e.g., openai/text-embedding-3-large).
  • input (required): String or array of strings.
  • encoding_format: float (default) or base64.
  • dimensions: Optional integer to truncate embedding length (model-dependent).
  • user: Optional end-user tag.

Returns

Embedding payload (JSON)
Last modified on May 6, 2026