Skip to content
API Reference

Multimodal & Retrieval APIs ​

Complete endpoint reference for image generation/editing, audio synthesis/transcription, RAG embeddings/reranking, and asynchronous video generation.

Images Generation & Editing ​

POSThttps://api.vanix.io/v1/images/generations
POSThttps://api.vanix.io/v1/images/edits
Interactive Try ItPOST /v1/images/generations
ParameterTypeDescription
modelstringe.g., gpt-image-1, flux-pro, imagen-3
promptstringDetailed visual description
sizestring1024x1024, 1536x1024, 1024x1536
qualitystringlow, medium, high, or auto
nintegerNumber of output images (default 1)

Embeddings & Rerank ​

POSThttps://api.vanix.io/v1/embeddings
POSThttps://api.vanix.io/v1/rerank
Interactive Try ItPOST /v1/embeddings
bash
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) ​

POSThttps://api.vanix.io/v1/audio/speech
POSThttps://api.vanix.io/v1/audio/transcriptions
POSThttps://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-data with file, model, optional language, and response_format (json, text, srt, vtt, verbose_json).

Asynchronous Video Tasks ​

POSThttps://api.vanix.io/v1/videos
GEThttps://api.vanix.io/v1/videos/{task_id}
GEThttps://api.vanix.io/v1/videos/{task_id}/content

Submit 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.

Vanix AI Unified Model Gateway · https://api.vanix.io