Xbasic

AI Functions

Description

AI integration function to prompt for text, perform image recognition, perform text to speech, perform speech transcription and image generation via API calls.

The AI functions settings and API keys are kept stored as Namedresources, the first argument to each AI function is the named resource

Name
Description
a5_ai_generate_image Function

Request an AI to generate image from text.

a5_ai_generate_speech Function

Request an AI text to speech modle to produce spoken audio from text.

a5_ai_prompt Function

Request an AI response for a text prompt .

a5_ai_prompt_with_files Function

Request an AI response for a text prompt with included files.

a5_ai_prompt_with_image Function

Request an AI response for a text prompt and reference image.

a5_ai_transcribe_speech Function

Request an AI transcription model to convert the audio file to a text transcription.