v2
Initiate an Asynchronous request to generate text
This endpoint will immediately return with the UUID of the request for generation. This endpoint will always be accepted, even if there are no workers available currently to fulfill this request. Perhaps some will appear in the next 20 minutes. Asynchronous requests live for 20 minutes before being considered stale and being deleted.
post/v2/generate/text/async
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared. Required headers: apikey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
apikeystring required
The API Key corresponding to a registered user.
Client-Agentstring
The client name and version
X-Fieldsstring mask
An optional fields mask
Request body
Example request
{
"params": {
"n": 1,
"use_default_badwordsids": true
}
}Response
Generation Queued
Example response
{
"warnings": [
{
"code": "NoAvailableWorker"
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.