generation
Autocomplete a sentence
Predict how a partially written sentence continues. Send the trailing text the user has typed as query (200 characters maximum) and the tool returns the predicted continuation. Requires an API key with autocomplete enabled; other keys get an explicit error back.
post/api/v1/complete
Request
- Base URL: https://api.sapling.ai
- URL: https://api.sapling.ai/api/v1/complete
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.sapling.ai/oauth/authorize, token URL https://api.sapling.ai/oauth/token, scopes: sapling:api)
- none
Request body
Response
Successful response. Field-level schemas and examples: https://sapling.ai/docs/api/autocomplete/ An empty JSON array is returned when no completion is available (prediction failed or was shorter than the minimum length).
Changes
No recorded changes to this operation across all 1 revision of this API.