v2
Submit generated text
This endpoint is used by registered workers only
post/v2/generate/text/submit
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 worker's owner API key.
X-Fieldsstring mask
An optional fields mask
Request body
Example request
{
"id": "00000000-0000-0000-0000-000000000000",
"generation": "R2",
"state": "ok",
"gen_metadata": [
{
"type": "censorship",
"value": "csam"
}
]
}Response
Generation Submitted
Example response
{
"reward": 10
}Changes
No recorded changes to this operation across all 2 revisions of this API.