Repository navigation
@tanstack/ai-openrouter: transcription adapter for /api/v1/audio/transcriptions #1985
mosaleh-dev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
OpenRouter now serves speech-to-text on
POST /api/v1/audio/transcriptions(e.g.
elevenlabs/scribe-v2,openai/gpt-4o-mini-transcribe,openai/whisper-large-v3-turbo),but
@tanstack/ai-openrouter(1.0.1) has no transcription adapter, sogenerateTranscription()can't run on an OpenRouter key.
Using
createOpenaiTranscriptionwith an OpenRouterbaseURLalmost works, but its model typeonly takes OpenAI ids, and the response's
usage.costis dropped.Request: a
createOpenRouterTranscription(model, apiKey)adapter, like the existing text/image/video ones.The pinned
@openrouter/sdk(0.13.20) already exposes the transcription operation.Docs: https://openrouter.ai/docs/guides/overview/multimodal/stt
All reactions