# Embeddings & Audio (/docs/api/gateway/embeddings-audio)

Vector embeddings, speech-to-text, text-to-speech and the ephemeral tokens the realtime WebSocket requires.

Embeddings and audio follow the OpenAI shapes. `POST /v1/tokens` mints the short-lived token a browser must pass as `?key=` when opening `wss://ai.codai.ro/v1/realtime` — a raw `codai_` key in the query string is refused (close code 4401). See the [embeddings & audio guide](../../gateway/embeddings-audio.mdx) for worked examples.

<OpenAPIPage document="./openapi/en/gateway.yaml" operations={[{path: '/v1/embeddings',method: 'post'},{path: '/v1/audio/transcriptions',method: 'post'},{path: '/v1/audio/speech',method: 'post'},{path: '/v1/tokens',method: 'post'}]} />
