Launch A Server
Launch the server in your terminal and wait for it to initialize. Native encoder embedding architectures andgoogle/embeddinggemma-300m are detected automatically. Decoder-style embedding models still require --is-embedding.
Example
Using cURL
Example
Using Python Requests
Example
Using OpenAI Python Client
Example
Using Input IDs
SGLang also supportsinput_ids as input to get the embedding.
Example
Compact Base64 Responses
Setencoding_format to base64 when JSON arrays would dominate response size. The encoded value contains little-endian FP32 values and can be decoded by OpenAI-compatible clients.
Example
Example
