Prompt API

Full access to the core language model API with configuration and tool use.

1

Configuration

Pre-declare expected inputs and outputs so the browser downloads required adapters during creation.

Initial Prompts (History)
Tools (Function Calling)
No tools defined.
Advanced Session Configuration
Use Abort Signal for Cancellations
2

Check Availability

View Initialization Code
3

Create Session

Initialize the session with the configuration defined above to start interacting with the model.

View Session Creation Code
4

The Input

5

Execution

View Execution Code
Execution Output
Click prompt to generate output.