API Platform

Prompt prediction. Inside your product.

Example
Conversation
User

Draft an announcement for our launch.

Assistant

Here is an introduction to the product and an invitation to try it.

Next prompt

Make it more concise and add a clear call to action.

Build your way.

Clone API

Call POST /v1/predictions from any backend. Use HTTP, the JavaScript server client or the Python SDK with your own interface.

API reference

Clone SDK

Add suggestions to your composer with React or a headless controller.

Explore Clone SDK

Two ways to suggest a prompt.

Next-prompt prediction

With an empty draft, next_prompt suggests what the user could ask after the current conversation. Show the result for review before sending.

Prediction guide

Prompt autocomplete

With a nonempty draft, complete_draft suggests a continuation. Use your own UI or Clone SDK for React and headless composers.

Add prompt suggestions