- Deploy a model with the matching pipeline task.
- Create an API key scoped to that model.
- Set your API key:
export SYNAPSAI_API_KEY="your-api-key" - Replace
model-idwith your deployment’s model ID from the dashboard.
Examples
Text generation
Chat completions, completions, and streaming.
Tool calling
Function calling with chat completions.
Embeddings
Generate vector embeddings for text.
Images
Generation, editing, detection, segmentation, and analysis.
Audio
Text-to-speech, speech-to-text, and translation.
Videos
Text-to-video and image-to-video generation.
Classification
Text, image, audio, and video classification — including zero-shot.
Rerank
Rerank documents by relevance to a query.
Fill mask
Masked language modeling predictions.
Feature extraction
Extract hidden-state features from inputs.

