Multimodal & Retrieval APIs
Complete endpoint reference for image generation/editing, audio synthesis/transcription, RAG embeddings/reranking, and asynchronous video generation.
Images Generation & Editing
POST
https://api.vanix.io/v1/images/generationsPOST
https://api.vanix.io/v1/images/edits| Parameter | Type | Description |
|---|---|---|
model | string | e.g., gpt-image-1, flux-pro, imagen-3 |
prompt | string | Detailed visual description |
size | string | 1024x1024, 1536x1024, 1024x1536 |
quality | string | low, medium, high, or auto |
n | integer | Number of output images (default 1) |
Embeddings & Rerank
POST
https://api.vanix.io/v1/embeddingsPOST
https://api.vanix.io/v1/rerankbash
curl https://api.vanix.io/v1/rerank \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $VANIX_API_KEY" \
-d '{
"model": "rerank-v3.5",
"query": "Vanix AI authentication header for Anthropic",
"top_n": 2,
"documents": [
"Anthropic Messages uses x-api-key and anthropic-version headers.",
"Embeddings return float arrays from POST /v1/embeddings."
]
}'Audio (TTS, STT & Translation)
POST
https://api.vanix.io/v1/audio/speechPOST
https://api.vanix.io/v1/audio/transcriptionsPOST
https://api.vanix.io/v1/audio/translations- TTS accepts JSON (
model,voice,input,response_format) and streams raw audio bytes (mp3,opus,aac,flac,wav). - STT / Translation accept
multipart/form-datawithfile,model, optionallanguage, andresponse_format(json,text,srt,vtt,verbose_json).
Asynchronous Video Tasks
POST
https://api.vanix.io/v1/videosGET
https://api.vanix.io/v1/videos/{task_id}GET
https://api.vanix.io/v1/videos/{task_id}/contentSubmit a video job, poll GET /v1/videos/{task_id} until status === "completed", then download the final asset via /content. See the Video & Async Tasks Guide for polling patterns.