cURL
curl --request POST \ --url https://api.faces.sh/v1/compile/documents \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "label": "<string>", "content": "<string>", "perspective": "first-person" } '
{ "document_id": "<string>", "model": "<string>", "label": "<string>", "source": "<string>", "version": 123, "content": "<string>", "token_count": 123, "tokens_used": 123, "tokens_limit": 123, "synced": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Submit a new document for a model. Token count is a preview — charged at sync.
first-person
third-person
Successful Response
Shared shape for submit, get, edit responses.