Hi Isaac, thanks for the clarification! I'm using the AI binding to call the @cf/openai/whisper-larg

Hi Isaac, thanks for the clarification! I'm using the AI binding to call the @cf/openai/whisper-large-v3-turbo model via env.AI.run in my Worker. Here’s a sample:

          try {
            console.log(`[BYPASS] Attempt 3: Using AI binding with raw bytes`);
            const aiTranscription = await this.env.AI.run('@cf/openai/whisper-large-v3-turbo', {
              audio: [...audioBytes], // Convert Uint8Array to regular array
              language: 'en',
            });
            
            


          try {
            console.log(`[BYPASS] Attempt 2: Using AI binding with base64`);
            const aiTranscription = await this.env.AI.run('@cf/openai/whisper-large-v3-turbo', {
              audio: base64Audio,
              language: 'en',
            });
                     


Despite the binding in wrangler.toml ([ai] binding = "AI"), I’m getting 401 Unauthorized errors. Could this be an account permission issue or a binding misconfiguration? Any suggestions to debug?
Was this page helpful?